Skip to content

Commit

Permalink
Remove superfluous characters from publ-location
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Jan 16, 2024
1 parent bf167cd commit 936b918
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/main/resources/alma/fix/titleRelatedFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ do list(path: "publication[]", "var": "$i")
replace_all("$i.startDate", ".*?([01]\\d{3}|20\\d{2}).*", "$1")
replace_all("$i.endDate", ".*-[ ]?([01]\\d{3}|20\\d{2})$", "$1")
replace_all("$i.location[].*", "^\\[(.*)\\]$", "$1")
replace_all("$i.location[].*", "\\s?[,:;]$", "")
replace_all("$i.publishedBy[].*", "^[©]|\\s?[,:;/=]?$", "")
uniq("$i.location[]")
end
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/991002103529706485.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"publication" : [ {
"startDate" : "2021",
"type" : [ "PublicationEvent" ],
"location" : [ "München :" ],
"location" : [ "München" ],
"publishedBy" : [ "Ernst Reinhardt Verlag" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370678063606441.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"alternativeTitle" : [ "A.B.I.-Technik" ],
"publication" : [ {
"type" : [ "PublicationEvent" ],
"location" : [ "Berlin, Germany :" ],
"location" : [ "Berlin, Germany" ],
"publishedBy" : [ "De Gruyter" ],
"publicationHistory" : "Began in 1981.",
"frequency" : [ {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370690532406441.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"publication" : [ {
"startDate" : "2022",
"type" : [ "PublicationEvent" ],
"location" : [ "Germany :" ],
"location" : [ "Germany" ],
"publishedBy" : [ "Vandenhoeck & Ruprecht" ],
"frequency" : [ {
"id" : "http://marc21rdf.info/terms/continuingfre#a",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370738710506441.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publication" : [ {
"startDate" : "2015",
"type" : [ "PublicationEvent" ],
"location" : [ "Leiden, The Netherlands :" ],
"location" : [ "Leiden, The Netherlands" ],
"publishedBy" : [ "Brill/Nijhoff" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370746459806441.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publication" : [ {
"startDate" : "2000",
"type" : [ "PublicationEvent" ],
"location" : [ "Burlington :" ],
"location" : [ "Burlington" ],
"publishedBy" : [ "Elsevier Science" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370763433806441.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publication" : [ {
"startDate" : "2019",
"type" : [ "PublicationEvent" ],
"location" : [ "University Park, Pennsylvania :" ],
"location" : [ "University Park, Pennsylvania" ],
"publishedBy" : [ "The Pennsylvania State University Press" ]
} ],
"describedBy" : {
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/99371107766906441.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title" : "The natural family",
"publication" : [ {
"type" : [ "PublicationEvent" ],
"location" : [ "Rockford, Illinois :" ],
"location" : [ "Rockford, Illinois" ],
"publishedBy" : [ "The International Organization for the Family" ],
"publicationHistory" : "Began with volume 30, number 3 (2016).",
"frequency" : [ {
Expand All @@ -14,7 +14,7 @@
} ]
}, {
"type" : [ "PublicationEvent" ],
"location" : [ "Rockford, IL :" ],
"location" : [ "Rockford, IL" ],
"publishedBy" : [ "Howard Center for Family, Religion & Society" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99371123630706441.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"publication" : [ {
"startDate" : "2015",
"type" : [ "PublicationEvent" ],
"location" : [ "Frankfurt am Main, [Germany] :" ],
"location" : [ "Frankfurt am Main, [Germany]" ],
"publishedBy" : [ "Peter Lang Edition" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99371147104906441.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publication" : [ {
"startDate" : "2021",
"type" : [ "PublicationEvent" ],
"location" : [ "Vilnius :" ],
"location" : [ "Vilnius" ],
"publishedBy" : [ "Vilnius University Press" ],
"publicationHistory" : "Began with: Vol. 91 (2021).",
"frequency" : [ {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99371447897606441.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"publication" : [ {
"startDate" : "2019",
"type" : [ "PublicationEvent" ],
"location" : [ "Edinburgh :" ],
"location" : [ "Edinburgh" ],
"publishedBy" : [ "Elsevier" ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99371449208306441.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"publication" : [ {
"startDate" : "2018",
"type" : [ "PublicationEvent" ],
"location" : [ "Northampton, MA :" ],
"location" : [ "Northampton, MA" ],
"publishedBy" : [ "Edward Elgar Pub., Inc." ]
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99372680948006441.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"publication" : [ {
"startDate" : "2013",
"type" : [ "PublicationEvent" ],
"location" : [ "Cambridge :" ],
"location" : [ "Cambridge" ],
"publishedBy" : [ "Polity" ]
} ],
"describedBy" : {
Expand Down

0 comments on commit 936b918

Please sign in to comment.