Skip to content

Commit

Permalink
Add publication #1374
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Aug 12, 2022
1 parent fde5ca6 commit 34b6252
Show file tree
Hide file tree
Showing 79 changed files with 634 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/resources/alma/fix/titleRelatedFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,32 @@ replace_all("otherTitleInformation[].*","\\s?[./]\\s?$","")
set_array("edition[]")
copy_field("250 .a","edition[].$append")
replace_all("edition[].*","\\s?[./]\\s?$","")

# 260 - Publication, Distribution, etc. (Imprint) (R) - Subfield: $a (R), $b (R), $c (R)
# 264 - Production, Publication, Distribution, Manufacture, and Copyright Notice (R) - Subfield: $a (R), $b (R), $c (R)

set_array("publication[]")
do list(path:"260[ 23] |264[ 23][ 1]", "var":"$i")
add_field("publication[].$append.test","")
paste("publication[].$last.publicationHistory", "$i.c")
replace_all("$i.c", "[\\[|\\]|ca. |c ]", "")
if any_match("$i.c","^(\\d{4}).")
paste("publication[].$last.startDate", "$i.c")
end
if any_match("$i.c",".*-(\\d{4})$")
paste("publication[].$last.endDate", "$i.c")
end
# TODO is there a way to distinguish PublicationEvent and SecondaryPublicationEvent?
set_array("publication[].$last.type[]","PublicationEvent")
set_array("publication[].$last.location[]")
copy_field("$i.a", "publication[].$last.location[].$append")
set_array("publication[].$last.publishedBy[]")
copy_field("$i.b", "publication[].$last.publishedBy[].$append")
end

replace_all("publication[].*.startDate", "^(\\d{4}).", "$1")
replace_all("publication[].*.endDate", ".*-(\\d{4})$", "$1")

replace_all("publication[].*.location[].*", "^\\[|\\]$", "")

replace_all("publication[].*.publishedBy[].*", "^[©]|\\s?[,.:;/=]?$", "")
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(CKB)2550000000015245.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Equivalents of the axiom of choice",
"alternativeTitle" : [ "Studies in Logic and the Foundations of Mathematics" ],
"publication" : [ {
"publicationHistory" : "2000",
"startDate" : "2000",
"endDate" : "2000",
"type" : [ "PublicationEvent" ],
"location" : [ "Burlington :" ],
"publishedBy" : [ "Elsevier Science" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/99370746459806441",
"label" : "Webseite der hbz-Ressource 99370746459806441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(CKB)2940000000001369.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"title" : "BUW-Output",
"alternativeTitle" : [ "BUW-Output", "BUW-Output", "Output" ],
"otherTitleInformation" : [ "Forschungsmagazin = Research bulletin / Universität Wuppertal ; hrsg. im Auftrag des Rektorates" ],
"publication" : [ {
"publicationHistory" : "2009-",
"startDate" : "2009",
"endDate" : "2009-",
"type" : [ "PublicationEvent" ],
"location" : [ "Wuppertal" ],
"publishedBy" : [ "BUW" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/99370699582506441",
"label" : "Webseite der hbz-Ressource 99370699582506441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(CKB)4100000010077918.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Uncanny bodies",
"otherTitleInformation" : [ "superhero comics and disability" ],
"publication" : [ {
"publicationHistory" : "2019",
"startDate" : "2019",
"endDate" : "2019",
"type" : [ "PublicationEvent" ],
"location" : [ "University Park, Pennsylvania :" ],
"publishedBy" : [ "The Pennsylvania State University Press" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/99370763433806441",
"label" : "Webseite der hbz-Ressource 99370763433806441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(CKB)5280000000199164.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"title" : "Kirche weltweit",
"alternativeTitle" : [ "Kirche weltweit", "Mitteilungsblatt des Leipziger Missionswerkes der Evangelisch-Lutherischen Landeskirchen Mecklenburgs, Sachsens, Thüringens" ],
"otherTitleInformation" : [ "Mitteilungsblatt des Leipziger Missionswerkes der Evangelisch-Lutherischen Landeskirche Sachsens und der Evangelischen Kirche in Mitteldeutschland" ],
"publication" : [ {
"publicationHistory" : "2006-",
"startDate" : "2006",
"endDate" : "2006-",
"type" : [ "PublicationEvent" ],
"location" : [ "Leipzig", "[Dresden]" ],
"publishedBy" : [ "Evangelisch-Lutherisches Missionswerk Leipzig e.V. (LMW)", "SLUB" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/99370682219806441",
"label" : "Webseite der hbz-Ressource 99370682219806441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-6)1523217-49hbz_ulm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"titleOfSubSeries" : "Bd. 63",
"title" : "Bayerische Vorgeschichtsblätter, Bd. 63",
"otherTitleInformation" : [ "BVbl" ],
"publication" : [ {
"publicationHistory" : "1998",
"startDate" : "1998",
"endDate" : "1998",
"type" : [ "PublicationEvent" ],
"location" : [ "München" ],
"publishedBy" : [ "Beck" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/991000688209706449",
"label" : "Webseite der hbz-Ressource 991000688209706449",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)BT000003404.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"titleOfSubSeries" : "2: Nordrhein-Westfalen, Niedersachsen-Süd : mit Ortsverzeichnis",
"title" : "Deutschland, 2: Nordrhein-Westfalen, Niedersachsen-Süd : mit Ortsverzeichnis",
"edition" : [ "10.[Aufl., Ausg.] 1993/94" ],
"publication" : [ {
"publicationHistory" : "1993",
"startDate" : "1993",
"endDate" : "1993",
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin [u.a.]" ],
"publishedBy" : [ "Reise- u. Verkehrsverl" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990110509950206441",
"label" : "Webseite der hbz-Ressource 990110509950206441",
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/alma-fix/(DE-605)BT000041593.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"almaMmsId" : "990110881770206441",
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Das Portrait einer Region: Kreis Coesfeld",
"publication" : [ {
"publicationHistory" : "1983",
"startDate" : "1983",
"endDate" : "1983",
"type" : [ "PublicationEvent" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990110881770206441",
"label" : "Webseite der hbz-Ressource 990110881770206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT000161712.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"almaMmsId" : "990001412590206441",
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Handwörterbuch des Volksschulwesens",
"publication" : [ {
"publicationHistory" : "1920",
"startDate" : "1920",
"endDate" : "1920",
"type" : [ "PublicationEvent" ],
"location" : [ "Leipzig [u.a.]" ],
"publishedBy" : [ "Teubner" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990001412590206441",
"label" : "Webseite der hbz-Ressource 990001412590206441",
Expand Down
15 changes: 15 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT000312236.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
"almaMmsId" : "990053976760206441",
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Physik in der Schule",
"publication" : [ {
"publicationHistory" : "1964-2000",
"startDate" : "19642000",
"endDate" : "2000",
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin" ],
"publishedBy" : [ "Pädagogischer Zeitschriftenverl" ]
}, {
"publicationHistory" : "nfngs",
"startDate" : "nfngs",
"endDate" : "nfngs",
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin" ],
"publishedBy" : [ "Verl. Volk & Wissen" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990053976760206441",
"label" : "Webseite der hbz-Ressource 990053976760206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT001039253.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Federnnormen",
"edition" : [ "2., geänd. Aufl., Stand d.abgedr. Normen: Januar 1974" ],
"publication" : [ {
"publicationHistory" : "1974",
"startDate" : "1974",
"endDate" : "1974",
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin [u.a.]" ],
"publishedBy" : [ "Beuth" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990059571560206441",
"label" : "Webseite der hbz-Ressource 990059571560206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT002619538.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"title" : "Annual bulletin of transport statistics for Europe and North America",
"alternativeTitle" : [ "Bulletin annuel de statistiques des transports pour l'Europe et l'Amérique du Nord", "Ežegodnyj bjulleten' statistiki transporta dlja Evropy i Severnoj Ameriki", "Annual bulletin of transport statistics for Europe", "Bulletin annuel de statistiques de transports européens", "Ežegodnyj bjulleten' evropejskoj statistiki transporta" ],
"otherTitleInformation" : [ "= Bulletin annuel de statistiques des transports pour l'Europe et l'Amérique du Nord = Ežegodnyj bjulleten' statistiki transporta dlja Evropy i Severnoj Ameriki" ],
"publication" : [ {
"publicationHistory" : "1955-2004",
"startDate" : "19552004",
"endDate" : "2004",
"type" : [ "PublicationEvent" ],
"location" : [ "Genève [u.a.]" ],
"publishedBy" : [ "UN" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990054215550206441",
"label" : "Webseite der hbz-Ressource 990054215550206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT003109553.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "What should political theory be now?",
"otherTitleInformation" : [ "Essays from the Shambaugh Conference on Political Theory" ],
"publication" : [ {
"publicationHistory" : "1983",
"startDate" : "1983",
"endDate" : "1983",
"type" : [ "PublicationEvent" ],
"location" : [ "Albany, N. Y." ],
"publishedBy" : [ "State Univ. of New York Pr" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990011470300206441",
"label" : "Webseite der hbz-Ressource 990011470300206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT003176544.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"title" : "Reisen in Deutschland, Band 2: Reisegebiete in Berlin (West), Bremen, Hamburg, Nordrhein-Westfalen, Niedersachsen, Rheinland-Pfalz, Saarland, Schleswig-Holstein",
"alternativeTitle" : [ "Reisen in Deutschland / 2" ],
"otherTitleInformation" : [ "deutsches Handbuch für Fremdenverkehr" ],
"publication" : [ {
"publicationHistory" : "1966-1984",
"startDate" : "19661984",
"endDate" : "1984",
"type" : [ "PublicationEvent" ],
"location" : [ "Darmstadt" ],
"publishedBy" : [ "Jaeger" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990054301770206441",
"label" : "Webseite der hbz-Ressource 990054301770206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT003538502.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "American federalism: the third century",
"edition" : [ "1. print" ],
"publication" : [ {
"publicationHistory" : "1990",
"startDate" : "1990",
"endDate" : "1990",
"type" : [ "PublicationEvent" ],
"location" : [ "Newbury Park [u.a.]" ],
"publishedBy" : [ "Sage" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990063549080206441",
"label" : "Webseite der hbz-Ressource 990063549080206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT003864492.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Charlie Chaplin",
"edition" : [ "Reprint ed. [d. Ausg.] New York, Schuman, 1951" ],
"publication" : [ {
"publicationHistory" : "1972",
"startDate" : "1972",
"endDate" : "1972",
"type" : [ "PublicationEvent" ],
"location" : [ "New York" ],
"publishedBy" : [ "Arno Press [u.a.]" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990014830510206441",
"label" : "Webseite der hbz-Ressource 990014830510206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT004285445.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Erleben - Verstehen - Lernen",
"otherTitleInformation" : [ "Klavierschule für Erwachsene" ],
"publication" : [ {
"publicationHistory" : "1989",
"startDate" : "1989",
"endDate" : "1989",
"type" : [ "PublicationEvent" ],
"location" : [ "Wilhelmshaven" ],
"publishedBy" : [ "Heinrichshofen" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990016782920206441",
"label" : "Webseite der hbz-Ressource 990016782920206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT004764408.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "The threatened world of fish",
"otherTitleInformation" : [ "proceedings of the Seventh International Ichthyology Congress ; The Hague (The Netherlands), August 26 - 30, 1991" ],
"publication" : [ {
"publicationHistory" : "1992",
"startDate" : "1992",
"endDate" : "1992",
"type" : [ "PublicationEvent" ],
"location" : [ "Baarn" ],
"publishedBy" : [ "Escher" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990065341720206441",
"label" : "Webseite der hbz-Ressource 990065341720206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT005207972.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"title" : "Labor economics",
"otherTitleInformation" : [ "wages, employment, and trade unionism" ],
"edition" : [ "3. ed" ],
"publication" : [ {
"publicationHistory" : "1976",
"startDate" : "1976",
"endDate" : "1976",
"type" : [ "PublicationEvent" ],
"location" : [ "Homewood, Ill." ],
"publishedBy" : [ "Irwin" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990021367710206441",
"label" : "Webseite der hbz-Ressource 990021367710206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT005271161.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Sowjetisches Verwaltungsrecht",
"otherTitleInformation" : [ "allg. Teil" ],
"publication" : [ {
"publicationHistory" : "1954",
"startDate" : "1954",
"endDate" : "1954",
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin" ],
"publishedBy" : [ "Dt. Zentralverl" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990021974470206441",
"label" : "Webseite der hbz-Ressource 990021974470206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT006855611.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Das gelbe Rechenbuch",
"otherTitleInformation" : [ "für Ingenieure, Naturwissenschaftler und Mathematiker ; Rechenverfahren der höheren Mathematik in Einzelschritten erklärt ; mit vielen ausführlich gerechneten Beispielen" ],
"publication" : [ {
"publicationHistory" : "1995-",
"startDate" : "1995",
"endDate" : "1995-",
"type" : [ "PublicationEvent" ],
"location" : [ "Dortmund" ],
"publishedBy" : [ "Furlan" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990050000600206441",
"label" : "Webseite der hbz-Ressource 990050000600206441",
Expand Down
7 changes: 7 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT008389117.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"title" : "Chines.-deutsches Wörterbuch für den Dialect der Hakka",
"alternativeTitle" : [ "Chinesisch-deutsches Wörterbuch für den Dialect der Hakka", "Kejia zidian" ],
"otherTitleInformation" : [ "= Kejia-zidian" ],
"publication" : [ {
"publicationHistory" : "1875-80?",
"startDate" : "187580?",
"endDate" : "1875-80?",
"type" : [ "PublicationEvent" ],
"location" : [ "[o.O.]" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990033263300206441",
"label" : "Webseite der hbz-Ressource 990033263300206441",
Expand Down
7 changes: 7 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT008733617.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Teutsche Poemata vnd Aristarchos",
"edition" : [ "[Mikrofiche-Ausg.]" ],
"publication" : [ {
"publicationHistory" : "1624",
"startDate" : "1624",
"endDate" : "1624",
"type" : [ "PublicationEvent" ],
"location" : [ "Strassburg" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990035016180206441",
"label" : "Webseite der hbz-Ressource 990035016180206441",
Expand Down
5 changes: 5 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT009719670.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Le cinéma de la vie",
"otherTitleInformation" : [ "extraits de films de Eric Rohmer" ],
"publication" : [ {
"type" : [ "PublicationEvent" ],
"location" : [ "Paris" ],
"publishedBy" : [ "Hatier/Didier" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990051552280206441",
"label" : "Webseite der hbz-Ressource 990051552280206441",
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/alma-fix/(DE-605)HT009965981.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"@context" : "http://lobid.org/resources/context.jsonld",
"title" : "Köln find' ich gut!",
"otherTitleInformation" : [ "ein Bilder-Suchspiel für die ganze Familie" ],
"publication" : [ {
"publicationHistory" : "1998",
"startDate" : "1998",
"endDate" : "1998",
"type" : [ "PublicationEvent" ],
"location" : [ "Köln" ],
"publishedBy" : [ "Emons" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990041403870206441",
"label" : "Webseite der hbz-Ressource 990041403870206441",
Expand Down
Loading

0 comments on commit 34b6252

Please sign in to comment.