Skip to content

Commit

Permalink
Fix inCollection for RPB #1814
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jul 7, 2023
1 parent 31c4178 commit e3bbd21
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ end

do list(path:"084??", "var":"$i")
if any_equal("$i.2","rpb")
if any_match("$j","^rpbr.*|\\d{3}") # exclude LBZ Notations
if any_match("$i.a","^rpbr.*|\\d{3}") # exclude LBZ Notations
add_field("inCollection[].$append.id", "http://lobid.org/resources/HT013494180#!")
add_field("inCollection[].$last.label", "Rheinland-Pfälzische Bibliographie")
end
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"subject" : [ {
"notation" : "200",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
"id" : "https://nwbib.de/journals",
"label" : "Laufend ausgewertete NWBib-Zeitschriften",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990136041660206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
"id" : "http://lobid.org/resources/HT014846970#!",
"label" : "Zeitschriftendatenbank (ZDB)",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"successor" : [ {
"label" : "Blick aktuell / Verbandsgemeinde Vallendar. Verbandsgemeinde Vallendar",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990173811970206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990204246530206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
"id" : "http://lobid.org/resources/HT014176012#!",
"label" : "Nordrhein-Westfälische Bibliographie (NWBib)",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990204253490206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
"id" : "http://lobid.org/resources/HT016925914#!",
"label" : "Edoweb Rheinland-Pfalz",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990206060640206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
"id" : "http://lobid.org/resources/HT014176012#!",
"label" : "Nordrhein-Westfälische Bibliographie (NWBib)",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/organisations/ZDB-117-VRE#!",
"label" : "V&R eLibrary / EBooks",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990210667610206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
"id" : "http://lobid.org/resources/HT016925914#!",
"label" : "Edoweb Rheinland-Pfalz",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990217495840206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
"id" : "http://lobid.org/resources/HT016925914#!",
"label" : "Edoweb Rheinland-Pfalz",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/991005935279706485.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
"id" : "http://lobid.org/resources/HT014846970#!",
"label" : "Zeitschriftendatenbank (ZDB)",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"successor" : [ {
"label" : "Bildung und Beruf.",
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/99372423490706441.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT013494180#!",
"label" : "Rheinland-Pfälzische Bibliographie",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
Expand Down

0 comments on commit e3bbd21

Please sign in to comment.