Skip to content

Commit

Permalink
Add fulltextOnline in lobid transformation (RPB-37)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Oct 25, 2023
1 parent ff07a7c commit e79350f
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 3 deletions.
6 changes: 5 additions & 1 deletion conf/output/test-output-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,9 @@
},
"type" : [ "Contribution" ]
} ],
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 380"
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 380",
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70507",
"label" : "urn:nbn:de:hbz:061:1-70507"
} ]
}
6 changes: 5 additions & 1 deletion conf/output/test-output-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,9 @@
},
"type" : [ "Contribution" ]
} ],
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 378"
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 378",
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70495",
"label" : "urn:nbn:de:hbz:061:1-70495"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,9 @@
"label" : "Sonstige"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-24485",
"label" : "urn:nbn:de:hbz:061:2-24485"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,9 @@
"label" : "Sonstige"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-1643",
"label" : "urn:nbn:de:hbz:061:2-1643"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-4.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@
"label" : "Illustrator"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-1616",
"label" : "urn:nbn:de:hbz:061:2-1616"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-57.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,9 @@
"label" : "Sonstige"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-42026",
"label" : "urn:nbn:de:hbz:061:1-42026"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-6.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,9 @@
"label" : "Autor/in"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-536",
"label" : "urn:nbn:de:hbz:061:2-536"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-7.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,9 @@
"label" : "Autor/in"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-1456",
"label" : "urn:nbn:de:hbz:061:2-1456"
} ]
}
4 changes: 4 additions & 0 deletions conf/output/test-output-8.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@
"label" : "Illustrator"
},
"type" : [ "Contribution" ]
} ],
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:2-1602",
"label" : "urn:nbn:de:hbz:061:2-1602"
} ]
}
13 changes: 12 additions & 1 deletion conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,17 @@ elsif exists ("f709")
end
replace_all("bibliographicCitation","¬","")

retain( "type[]", "contribution[]", "extent", "hasItem[]", "responsibilityStatement[]", "language[]", "medium[]", "subject[]", "title", "hbzId", "oclcNumber[]", "otherTitleInformation[]", "natureOfContent[]", "publication[]", "sameAs[]", "describedBy", "@context", "id", "zdbId", "spatial[]", "inCollection[]", "rpbId", "schoeneNummer", "bibliographicCitation", "isPartOf[]", "note[]")
# fulltextOnline

do list(path:"f90[]", "var": "$i")
if all_equal("$i.n90", "Volltext")
set_array("fulltextOnline[]")
copy_field("$i.f90_", "fulltextOnline[].$append.id")
copy_field("$i.f90_", "fulltextOnline[].$last.label")
replace_all("fulltextOnline[].$last.label", "https://nbn-resolving.org/", "")
end
end

retain( "type[]", "contribution[]", "extent", "hasItem[]", "responsibilityStatement[]", "language[]", "medium[]", "subject[]", "title", "hbzId", "oclcNumber[]", "otherTitleInformation[]", "natureOfContent[]", "publication[]", "sameAs[]", "describedBy", "@context", "id", "zdbId", "spatial[]", "inCollection[]", "rpbId", "schoeneNummer", "bibliographicCitation", "isPartOf[]", "note[]", "fulltextOnline[]")

vacuum()

0 comments on commit e79350f

Please sign in to comment.