Skip to content

Commit c6b3dc7

Browse files
committedMar 13, 2025
Merge branch 'rpb-251-externalRecords' of https://github.com/hbz/rpb into main
Resolves https://jira.hbz-nrw.de/browse/RPB-251
2 parents bf493c0 + 4df4a16 commit c6b3dc7

16 files changed

+20
-56
lines changed
 

‎app/controllers/nwbib/Application.java

+2
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,8 @@ private static JsonNode mergeRecords(JsonNode transformedJson, JsonNode lobidJso
10281028
MapType mapType = TypeFactory.defaultInstance().constructMapType(Map.class, String.class, Object.class);
10291029
Map<String, Object> transformedMap = objectMapper.readValue(transformedJson.toString(), mapType);
10301030
Map<String, Object> lobidMap = objectMapper.readValue(lobidJson.toString(), mapType);
1031+
lobidMap.remove("describedBy");
1032+
transformedMap.put("hbzId", lobidMap.get("hbzId"));
10311033
transformedMap.remove("type");
10321034
transformedMap.keySet().forEach(key -> {
10331035
Object transformedObject = transformedMap.get(key);

‎conf/output/test-output-34.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"type" : [ "Collection" ],
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
19-
"title" : "SWR-3-Clubmagazin : 1998,1(Sept.) -",
20-
"publication" : [ {
21-
"type" : [ "PublicationEvent" ]
22-
} ]
19+
"title" : "SWR-3-Clubmagazin : 1998,1(Sept.) -"
2320
}

‎conf/output/test-output-36.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "On : SWF 3, das Magazin : 1992 - 1998,2",
20-
"note" : [ "Damit Erscheinen eingest. - Forts. u.d.T.: SWR-3-Clubmagazin" ],
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"note" : [ "Damit Erscheinen eingest. - Forts. u.d.T.: SWR-3-Clubmagazin" ]
2421
}

‎conf/output/test-output-38.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "Die Zeitschrift : der Südwestrundfunk und seine Programme. Rheinland-Pfalz : 1998,1(Sept.) - 2001,9(Sept.)",
20-
"note" : [ "Forts. u.d.T.: Doppelpfeil" ],
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"note" : [ "Forts. u.d.T.: Doppelpfeil" ]
2421
}

‎conf/output/test-output-40.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"type" : [ "Collection" ],
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
19-
"title" : "Flieg und flatter : Aktuelles aus der Vogelschutzwarte : Ausg. 1.1997(Dez.) -",
20-
"publication" : [ {
21-
"type" : [ "PublicationEvent" ]
22-
} ]
19+
"title" : "Flieg und flatter : Aktuelles aus der Vogelschutzwarte : Ausg. 1.1997(Dez.) -"
2320
}

‎conf/output/test-output-42.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "Der Rasenspieler : das Journal zur Saison ... : Nachgewiesen 1998/99(1998) - 2000/01; 2001/02 - 2002/03",
20-
"note" : [ "Damit Erscheinen eingest." ],
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"note" : [ "Damit Erscheinen eingest." ]
2421
}

‎conf/output/test-output-44.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "'s Derfsche : Ebertsheim-Rodenbach, das Dorf im Grünen : 1998,Apr.",
20-
"note" : [ "Mit dieser Ausg. Erscheinen eingest." ],
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"note" : [ "Mit dieser Ausg. Erscheinen eingest." ]
2421
}

‎conf/output/test-output-48.json

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
"title" : "Geheimnisvolle Tierwelten : am Flüsschen Wied gesehen und photographiert ; [Kalender] 2011",
1313
"extent" : "[14] Bl. : überw. Ill. ; 210 x 297 mm",
1414
"responsibilityStatement" : [ "von Erich Oetz" ],
15-
"publication" : [ {
16-
"type" : [ "PublicationEvent" ]
17-
} ],
1815
"subject" : [ {
1916
"id" : "http://purl.org/lobid/rpb#n848000",
2017
"label" : "Fotografie",

‎conf/output/test-output-51.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "Aktuell : das Krankenhaus in Ihrer Region : Nachgewiesen 2010 - 2012,1",
20-
"note" : [ "Nachfolger: Kaleidoskop. 2012 -" ],
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"note" : [ "Nachfolger: Kaleidoskop. 2012 -" ]
2421
}

‎conf/output/test-output-53.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"type" : [ "Collection" ],
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
19-
"title" : "Clubzeitung : Nachgewiesen 2006,2 -",
20-
"publication" : [ {
21-
"type" : [ "PublicationEvent" ]
22-
} ]
19+
"title" : "Clubzeitung : Nachgewiesen 2006,2 -"
2320
}

‎conf/output/test-output-60.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"type" : [ "Collection" ],
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
19-
"title" : "Rhein-Zeitung : unabhängige Tageszeitung : 66.2011,77(1.Apr.) -",
20-
"publication" : [ {
21-
"type" : [ "PublicationEvent" ]
22-
} ]
19+
"title" : "Rhein-Zeitung : unabhängige Tageszeitung : 66.2011,77(1.Apr.) -"
2320
}

‎conf/output/test-output-75.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "Piffche-Bahnfahrt durch Rheinhessen : [1]",
20-
"extent" : "240 Seiten : Illustrationen",
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"extent" : "240 Seiten : Illustrationen"
2421
}

‎conf/output/test-output-76.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
1919
"title" : "Piffche-Bahnfahrt durch Rheinhessen : 2",
20-
"extent" : "256 Seiten : Illustrationen",
21-
"publication" : [ {
22-
"type" : [ "PublicationEvent" ]
23-
} ]
20+
"extent" : "256 Seiten : Illustrationen"
2421
}

‎conf/output/test-output-78.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"type" : [ "Collection" ],
1717
"label" : "Rheinland-Pfälzische Bibliographie"
1818
} ],
19-
"title" : "Bibliographie zu den Jahrbüchern des Kreises Daun : 1973/90 (1990) -",
20-
"publication" : [ {
21-
"type" : [ "PublicationEvent" ]
22-
} ]
19+
"title" : "Bibliographie zu den Jahrbüchern des Kreises Daun : 1973/90 (1990) -"
2320
}

‎conf/output/test-output-79.json

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
} ],
1212
"title" : "Einfluss von Lesetermin und Mostbehandlung auf die Alterung von Weißwein, am Beispiel von Vitis vinifera L. cv. Riesling.",
1313
"responsibilityStatement" : [ "Aus f39x: Geisenheim: Ges. zur Förderung der Forschungsanst. Geisenheim 2013." ],
14-
"publication" : [ {
15-
"type" : [ "PublicationEvent" ]
16-
} ],
1714
"subject" : [ {
1815
"type" : [ "ComplexSubject" ],
1916
"label" : "Most | Lebensmittelverarbeitung | Riesling | Chemie | Wein | Weinlese | Lebensmittelqualität",

‎conf/rpb-titel-to-lobid.fix

+6-2
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,15 @@ end
190190
# replace_all("pub.startDate","^\\[(\\d{4})\\]","$1")
191191
set_array("pub.publishedBy[]")
192192
copy_field("publishedBy", "pub.publishedBy[].$append")
193-
set_array("pub.type[]")
194-
add_field("pub.type[].$append", "PublicationEvent")
195193
set_array("publication[]")
196194
move_field("pub", "publication[]")
197195

196+
# Type nur bei tatsächlich befüllten Einträgen setzen:
197+
vacuum()
198+
do list_as("pub": "publication[]")
199+
set_array("pub.type[]", "PublicationEvent")
200+
end
201+
198202
# ------- "zdbId" -------
199203

200204
if any_equal("type", "Mehrt. Mono (ÜO)")

0 commit comments

Comments
 (0)
Please sign in to comment.