Skip to content

Commit

Permalink
Delete >> and << in supplement.label #1989
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 16, 2024
1 parent 5bb8991 commit e4b0ca3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ end

replace_all("supplement[].*.id","^\\(DE-605\\)(.*)$","http://lobid.org/resources/$1#!")
replace_all("supplement[].*.id","^\\(DE-600\\)(.*)$","http://lobid.org/resources/ZDB-$1#!")
replace_all("supplement[].*.label","<<|>>","")

# isPartOf
# it describes the relation between a published ressource and its superordinate series or collection.
Expand Down
16 changes: 8 additions & 8 deletions src/test/resources/alma-fix/990054089950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@
} ],
"supplement" : [ {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel. Buchmarkt ...",
"label" : "Der Spiegel. Buchmarkt ...",
"id" : "http://lobid.org/resources/ZDB-2901050-0#!"
}, {
"note" : [ "Beil.:" ],
"label" : "Uni-Spiegel",
"id" : "http://lobid.org/resources/ZDB-1478534-1#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel <Hamburg> / Chronik .... Chronik ...",
"label" : "Der Spiegel <Hamburg> / Chronik .... Chronik ...",
"id" : "http://lobid.org/resources/ZDB-2693519-3#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel <Hamburg> / Job. Job",
"label" : "Der Spiegel <Hamburg> / Job. Job",
"id" : "http://lobid.org/resources/ZDB-2716809-8#!"
}, {
"note" : [ "Supplement" ],
Expand All @@ -122,7 +122,7 @@
"id" : "http://lobid.org/resources/ZDB-2841326-X#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel. Biografie",
"label" : "Der Spiegel. Biografie",
"id" : "http://lobid.org/resources/ZDB-2840235-2#!"
}, {
"note" : [ "Supplement" ],
Expand All @@ -138,7 +138,7 @@
"id" : "http://lobid.org/resources/ZDB-3049164-2#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel",
"label" : "Der Spiegel",
"id" : "http://lobid.org/resources/ZDB-2857424-2#!"
}, {
"note" : [ "Supplement" ],
Expand All @@ -150,15 +150,15 @@
"id" : "http://lobid.org/resources/ZDB-2910739-8#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel. Wissen. Extra",
"label" : "Der Spiegel. Wissen. Extra",
"id" : "http://lobid.org/resources/ZDB-2927774-7#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel. Futura",
"label" : "Der Spiegel. Futura",
"id" : "http://lobid.org/resources/ZDB-2946278-2#!"
}, {
"note" : [ "Supplement" ],
"label" : "<<Der>> Spiegel. Coaching",
"label" : "Der Spiegel. Coaching",
"id" : "http://lobid.org/resources/ZDB-2936210-6#!"
}, {
"note" : [ "Supplement" ],
Expand Down

0 comments on commit e4b0ca3

Please sign in to comment.