Skip to content

Commit

Permalink
Ignore 856 without subfield u for fulltextOnline (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Jan 15, 2024
1 parent 0454db5 commit babb2e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 14 additions & 12 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -272,22 +272,24 @@ end
set_array("fulltextOnline[]")

do list(path: "8564?", "var":"$i")
unless any_match("$i.u",".*(doi.org|nbn-resolving).*")
if all_equal("$i.z", "kostenfrei") # kostenfrei, added Digitalisierung not only Verlag or Agentur as filter
if all_match("$i.x", "Verlag|Agentur|Digitalisierung")
if exists("$i.u")
unless any_match("$i.u",".*(doi.org|nbn-resolving).*")
if all_equal("$i.z", "kostenfrei") # kostenfrei, added Digitalisierung not only Verlag or Agentur as filter
if all_match("$i.x", "Verlag|Agentur|Digitalisierung")
copy_field("$i.x", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
end
if all_match("$i.x", ".*(Archivierte Online|EZB|Online-Ausg|Resolving-System|Volltext).*")
copy_field("$i.x", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
if all_match("$i.3", "^[vV][oO][lL].*") # Volltext
copy_field("$i.3", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
end
if all_match("$i.x", ".*(Archivierte Online|EZB|Online-Ausg|Resolving-System|Volltext).*")
copy_field("$i.x", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
if all_match("$i.3", "^[vV][oO][lL].*") # Volltext
copy_field("$i.3", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
end
end
end

# doi for fullTextOnline and sameAs
Expand Down
2 changes: 0 additions & 2 deletions src/test/resources/alma-fix/99370970534006441.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
"fulltextOnline" : [ {
"label" : "Archivierte Online-Ressource",
"id" : "https://www.edoweb-rlp.de/resource/edoweb:7042958"
}, {
"label" : "Volltext"
}, {
"id" : "https://nbn-resolving.de/urn:nbn:de:hbz:929:02-edoweb:70429580",
"label" : "URN-Link"
Expand Down

0 comments on commit babb2e2

Please sign in to comment.