Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude records with only suppressed holdings/items/portfolios from "DigiBib hbz Verbundkatalog" collection. #2078

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/main/resources/alma/fix/item.fix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ set_array("@ITM-H") # Helper element for creating Holding from HOL ("Physikalisc
do list(path:"ITM ", "var": "$i")
paste("$i.supressedLocation", "$i.M", "~+", "$i.x",join_char:"")
lookup("$i.supressedLocation","suppressedLocations",delete:"true")
unless exists("$i.supressedLocation") # Test if location is suppressed with mapping provided by the libraries.
if exists("$i.supressedLocation") # Test if location is suppressed with mapping provided by the libraries.
add_field("@suppressed", "true")
else
add_field("@unsuppressed", "true")
set_hash( "hasItem[].$append")
add_field("hasItem[].$last.label", "lobid Bestandsressource")
set_array("hasItem[].$last.type[]", "Item","PhysicalObject")
Expand Down Expand Up @@ -31,7 +34,10 @@ do list(path: "HOL ", "var": "$i")
if exists("$H52.b")
paste("$H52.supressedLocation", "$i.M", "~+", "$H52.c",join_char:"")
lookup("$H52.supressedLocation","suppressedLocations",delete:"true")
unless exists("$H52.supressedLocation") # Test if location is suppressed with mapping provided by the libraries.
if exists("$H52.supressedLocation") # Test if location is suppressed with mapping provided by the libraries.
add_field("@suppressed", "true")
else
add_field("@unsuppressed", "true")
set_hash( "hasItem[].$append")
add_field("hasItem[].$last.label", "lobid Bestandsressource")
set_array("hasItem[].$last.type[]", "Item","PhysikalischerTitel")
Expand All @@ -55,6 +61,11 @@ do list(path: "HOL ", "var": "$i")
end

do list(path:"POR ", "var": "$i")
if none_equal("$i.b", "Not Available")
add_field("@unsuppressed", "true")
else
add_field("@suppressed", "true")
end
copy_field("$i.M","@HOL-M_POR-M.$append")
# entity for every POR .a without POR .A
unless any_match("$i.a",".*6441$") # filter out hbz
Expand Down
11 changes: 9 additions & 2 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,15 @@ set_array("inCollection[]")
# digiBib hbz Vk

if any_equal("MBD .M", "49HBZ_NETWORK")
add_field("inCollection[].$append.id", "https://nrw.digibib.net/search/hbzvk/")
add_field("inCollection[].$last.label", "DigiBib hbz Verbundkatalog")
if exists("@suppressed")
if exists("@unsuppressed")
add_field("inCollection[].$append.id", "https://nrw.digibib.net/search/hbzvk/")
add_field("inCollection[].$last.label", "DigiBib hbz Verbundkatalog")
end
else
add_field("inCollection[].$append.id", "https://nrw.digibib.net/search/hbzvk/")
add_field("inCollection[].$last.label", "DigiBib hbz Verbundkatalog")
end
if any_match("POR .A", ".*")
add_field("@inNZ", "true")
else
Expand Down
Loading