Skip to content

Commit

Permalink
Adjust the regex for fixing zdbId #2093
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Nov 6, 2024
1 parent 4153cf7 commit b061787
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/identifiers.fix
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ end
# clean up ZDB
replace_all("zdbId", "\\(DE-600\\)","")
replace_all("zdbId", "\\(DE-599\\)ZDB","")
replace_all("zdbId", " ","-") # CZ entries have incorrect spaces sometimes in the zdbId, we need to replace them with "-".
replace_all("zdbId", "(\\d{1,7})-* ?-*([Xx\\d])","$1-$2") # CZ entries have incorrect whitespaces sometimes in the zdbId, we need to adjust them so only one "-" separates the first group of numbers from the last number.


copy_field("almaMmsId","rpbId")
Expand Down
Loading

0 comments on commit b061787

Please sign in to comment.