Skip to content

Commit

Permalink
Adjust the regex for the URN pattern match #2034
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Jul 24, 2024
1 parent e346e1d commit 77424ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/alma/fix/identifiers.fix
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ end
# 856 - Electronic Location and Access (R) - Subfield: $u (R) $3 (NR)
# 1. Indicator: 4 = HTTP
do list(path:"8564?", "var":"$i")
if all_match("$i.u", "^http[s]?:\\/\\/nbn-resolving.(de|org)\\/(.*)")
if all_match("$i.u", "^.*[/=]urn:nbn.*")
copy_field("$i.u", "urn[].$append")
replace_all("urn[].$last", "^http[s]?:\\/\\/nbn-resolving.(de|org)\\/(.*)", "$2")
replace_all("urn[].$last", "(^http.+)(urn:.+$)", "$2")
end
end

Expand Down

0 comments on commit 77424ec

Please sign in to comment.