From 6761244caaa40d55f3213897572e0fdd2fd27b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Tue, 20 Jun 2023 09:40:27 +0200 Subject: [PATCH] Add stockNumber #1670 --- src/main/resources/alma/alma.fix | 1 + src/main/resources/alma/fix/identifiers.fix | 5 +++++ src/main/resources/labels/context-labels.json | 6 ++++++ src/test/resources/alma-fix/990016782920206441.json | 1 + src/test/resources/alma-fix/990122511970206441.json | 1 + src/test/resources/alma-fix/990123613330206441.json | 1 + src/test/resources/alma-fix/990139686910206441.json | 1 + src/test/resources/alma-fix/990198383780206441.json | 1 + src/test/resources/alma-fix/990209515320206441.json | 1 + src/test/resources/alma-fix/990209817770206441.json | 1 + src/test/resources/alma-fix/990210237770206441.json | 1 + src/test/resources/alma-fix/990210285400206441.json | 1 + src/test/resources/alma-fix/990223521400206441.json | 1 + 13 files changed, 22 insertions(+) diff --git a/src/main/resources/alma/alma.fix b/src/main/resources/alma/alma.fix index 0d1ce031e..827a0b743 100644 --- a/src/main/resources/alma/alma.fix +++ b/src/main/resources/alma/alma.fix @@ -73,6 +73,7 @@ retain( "seeAlso[]", "shortTitle[]", "spatial[]", + "stockNumber[]", "subject[]", "successor[]", "supplement[]", diff --git a/src/main/resources/alma/fix/identifiers.fix b/src/main/resources/alma/fix/identifiers.fix index 16bc1435b..1d7b839f8 100644 --- a/src/main/resources/alma/fix/identifiers.fix +++ b/src/main/resources/alma/fix/identifiers.fix @@ -148,3 +148,8 @@ replace_all("zdbId", " ","-") # CZ entries have incorrect spaces sometimes in th copy_field("almaMmsId","rpbId") lookup("rpbId","almaMmsId2rpbId",delete:"true") replace_all("rpbId", "^RPB","") + +set_array("stockNumber[]") +do list(path:"028??", "var":"$i") + copy_field("$i.a", "stockNumber[].$append") +end diff --git a/src/main/resources/labels/context-labels.json b/src/main/resources/labels/context-labels.json index ae71ff126..0adb5358f 100644 --- a/src/main/resources/labels/context-labels.json +++ b/src/main/resources/labels/context-labels.json @@ -747,5 +747,11 @@ "multilangLabel": {}, "name": "bibliographicLevel", "uri": "http://purl.org/lobid/lv#bibliographicLevel" + }, + { + "label": "Bestellnummer", + "multilangLabel": {}, + "name": "stockNumber", + "uri": "http://purl.org/lobid/lv#stockNumber" } ] diff --git a/src/test/resources/alma-fix/990016782920206441.json b/src/test/resources/alma-fix/990016782920206441.json index dbf2287c7..1ac04923d 100644 --- a/src/test/resources/alma-fix/990016782920206441.json +++ b/src/test/resources/alma-fix/990016782920206441.json @@ -5,6 +5,7 @@ "deprecatedUri" : "http://lobid.org/resources/HT004285445#!", "ismn" : [ "M204421206" ], "oclcNumber" : [ "1068203015" ], + "stockNumber" : [ "N 2120" ], "title" : "Erleben - Verstehen - Lernen", "otherTitleInformation" : [ "Klavierschule für Erwachsene" ], "publication" : [ { diff --git a/src/test/resources/alma-fix/990122511970206441.json b/src/test/resources/alma-fix/990122511970206441.json index 02514093e..3069167af 100644 --- a/src/test/resources/alma-fix/990122511970206441.json +++ b/src/test/resources/alma-fix/990122511970206441.json @@ -3,6 +3,7 @@ "almaMmsId" : "990122511970206441", "hbzId" : "TT000075751", "deprecatedUri" : "http://lobid.org/resources/TT000075751#!", + "stockNumber" : [ "CDA66941/2" ], "title" : "Complete folk song arrangements", "publication" : [ { "startDate" : "1994", diff --git a/src/test/resources/alma-fix/990123613330206441.json b/src/test/resources/alma-fix/990123613330206441.json index 930ac8c70..b85ed478c 100644 --- a/src/test/resources/alma-fix/990123613330206441.json +++ b/src/test/resources/alma-fix/990123613330206441.json @@ -3,6 +3,7 @@ "almaMmsId" : "990123613330206441", "hbzId" : "TT000166861", "deprecatedUri" : "http://lobid.org/resources/TT000166861#!", + "stockNumber" : [ "FC 57" ], "title" : "Die Sonnenblume [Medienkombination], Tonkassette", "otherTitleInformation" : [ "99 Lieder für Kinder ; Grundschule" ], "publication" : [ { diff --git a/src/test/resources/alma-fix/990139686910206441.json b/src/test/resources/alma-fix/990139686910206441.json index 453be5cda..7abda63a6 100644 --- a/src/test/resources/alma-fix/990139686910206441.json +++ b/src/test/resources/alma-fix/990139686910206441.json @@ -3,6 +3,7 @@ "almaMmsId" : "990139686910206441", "hbzId" : "HT014525099", "deprecatedUri" : "http://lobid.org/resources/HT014525099#!", + "stockNumber" : [ "29 511 3" ], "title" : "Kantaten Ostern, Pfingsten", "otherTitleInformation" : [ "Christ lag in Todesbanden BWV 4 ; Ein Herz, da seinen Jesum lebend weiß BWV 134 ; Erschallet, ihr Lieder BWV 172 ; Also hat Gott die Welt geliebt BWV 68" ], "publication" : [ { diff --git a/src/test/resources/alma-fix/990198383780206441.json b/src/test/resources/alma-fix/990198383780206441.json index 02ba9d908..682cc6e99 100644 --- a/src/test/resources/alma-fix/990198383780206441.json +++ b/src/test/resources/alma-fix/990198383780206441.json @@ -5,6 +5,7 @@ "deprecatedUri" : "http://lobid.org/resources/HT017775049#!", "isbn" : [ "393724039X", "9783937240398" ], "oclcNumber" : [ "1106740171" ], + "stockNumber" : [ "944187" ], "title" : "Jana und das Weihnachtsgeheimnis", "otherTitleInformation" : [ "Adventskalender-Geschichten für Kinder ; Hörbuch" ], "publication" : [ { diff --git a/src/test/resources/alma-fix/990209515320206441.json b/src/test/resources/alma-fix/990209515320206441.json index 569d324ef..7065a1921 100644 --- a/src/test/resources/alma-fix/990209515320206441.json +++ b/src/test/resources/alma-fix/990209515320206441.json @@ -4,6 +4,7 @@ "hbzId" : "HT018781534", "deprecatedUri" : "http://lobid.org/resources/HT018781534#!", "ismn" : [ "9790001200165" ], + "stockNumber" : [ "ED 22009", "56 522" ], "title" : "Momento capriccioso", "alternativeTitle" : [ "Für Violine, Horn (in F) und Klavier" ], "otherTitleInformation" : [ "for violin, French horn (in F) and piano ; (1969)" ], diff --git a/src/test/resources/alma-fix/990209817770206441.json b/src/test/resources/alma-fix/990209817770206441.json index cde4df506..bd24d7f05 100644 --- a/src/test/resources/alma-fix/990209817770206441.json +++ b/src/test/resources/alma-fix/990209817770206441.json @@ -5,6 +5,7 @@ "deprecatedUri" : "http://lobid.org/resources/HT018811791#!", "isbn" : [ "9783837510607", "3837510603" ], "oclcNumber" : [ "1074460311" ], + "stockNumber" : [ "Best.-Nr.: 21060" ], "title" : "Wissensquiz Ruhrgebiet", "publication" : [ { "startDate" : "2013", diff --git a/src/test/resources/alma-fix/990210237770206441.json b/src/test/resources/alma-fix/990210237770206441.json index 7abfa67d8..3de768365 100644 --- a/src/test/resources/alma-fix/990210237770206441.json +++ b/src/test/resources/alma-fix/990210237770206441.json @@ -4,6 +4,7 @@ "hbzId" : "HT018853619", "deprecatedUri" : "http://lobid.org/resources/HT018853619#!", "isbn" : [ "9783702410223", "3702410228" ], + "stockNumber" : [ "UE 18 105" ], "title" : "Ich bin der Welt abhanden gekommen", "otherTitleInformation" : [ "für 16 Stimmen : (1983)" ], "publication" : [ { diff --git a/src/test/resources/alma-fix/990210285400206441.json b/src/test/resources/alma-fix/990210285400206441.json index 776e09a5f..5f5f9f6e9 100644 --- a/src/test/resources/alma-fix/990210285400206441.json +++ b/src/test/resources/alma-fix/990210285400206441.json @@ -3,6 +3,7 @@ "almaMmsId" : "990210285400206441", "hbzId" : "HT018857620", "deprecatedUri" : "http://lobid.org/resources/HT018857620#!", + "stockNumber" : [ "107 157" ], "title" : "European Concert 1992", "publication" : [ { "startDate" : "2010", diff --git a/src/test/resources/alma-fix/990223521400206441.json b/src/test/resources/alma-fix/990223521400206441.json index a0e42fa51..74a334928 100644 --- a/src/test/resources/alma-fix/990223521400206441.json +++ b/src/test/resources/alma-fix/990223521400206441.json @@ -5,6 +5,7 @@ "deprecatedUri" : "http://lobid.org/resources/HT019631849#!", "isbn" : [ "9783836263702", "383626370X" ], "oclcNumber" : [ "1028021052" ], + "stockNumber" : [ "Bestellnummer: 459/06370" ], "title" : "Einstieg in JavaScript", "edition" : [ "3., aktualisierte Auflage" ], "publication" : [ {