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 IZ-activated CZ resources from union catalogue #1754

Closed
blackwinter opened this issue May 12, 2023 · 6 comments · Fixed by #1755
Closed

Exclude IZ-activated CZ resources from union catalogue #1754

blackwinter opened this issue May 12, 2023 · 6 comments · Fixed by #1755
Assignees
Milestone

Comments

@blackwinter
Copy link
Member

blackwinter commented May 12, 2023

The filter condition from #1677 needs to be refined: IZs can activate resources from the CZ, which then automatically generate records in the NZ for technical reasons; these are different from centrally managed CZ resources and should be excluded from the union catalogue.

Example: 99370694196806441

@blackwinter blackwinter added this to the DigiBib milestone May 12, 2023
@blackwinter blackwinter self-assigned this May 12, 2023
@TobiasNx
Copy link
Contributor

Please set a conditional that the following if the title is part of NZ

if any_equal("inCollection[].*.id", "http://lobid.org/organisations/DE-655#!") # only assign hbz NZ records and filter out CZ oder IZ records
do list(path:"084 ", "var":"$i")
if any_equal("$i.2","nwbib")
unless any_equal("inCollection[].*.id","http://lobid.org/resources/HT014176012#!")
add_field("inCollection[].$append.id", "http://lobid.org/resources/HT014176012#!")
add_field("inCollection[].$last.label", "Nordrhein-Westfälische Bibliographie (NWBib)")
end
end
end
do list(path:"960??", "var":"$i")
if any_contain("$i.n","NWBib")
unless any_equal("inCollection[].*.id","http://lobid.org/resources/HT014176012#!")
add_field("inCollection[].$append.id", "http://lobid.org/resources/HT014176012#!")
add_field("inCollection[].$last.label", "Nordrhein-Westfälische Bibliographie (NWBib)")
end
end
end
if any_equal("inCollection[].*.id", "http://lobid.org/resources/HT014176012#!")
paste("sameAs[].$append.id","~http://nwbib.de/", "almaMmsId", "~#!",join_char:"")
add_field("sameAs[].$last.label","NWBib-Ressource")
end
end

@TobiasNx
Copy link
Contributor

TobiasNx commented May 12, 2023

=> if any_equals("inCollection[].*.id","http://lobid.org/organisations/DE-655#!")

solves technically the duplicate in nwbib: hbz/nwbib#613 (comment)
but does not deletes the duplicate in lobid. => for this we should check how we want to proceed.

@blackwinter
Copy link
Member Author

Please set a conditional that the following if the title is part of NZ

This was already done in - unrelated? - commit 3a84d88.

blackwinter added a commit that referenced this issue May 12, 2023
blackwinter added a commit that referenced this issue May 12, 2023
Presence in NWBib was made dependent on presence in Alma NZ with 3a84d88 (see also hbz/nwbib#613).
blackwinter added a commit that referenced this issue May 12, 2023
blackwinter added a commit that referenced this issue May 12, 2023
Presence in NWBib was made dependent on presence in Alma NZ with 3a84d88 (see also hbz/nwbib#613).
@dr0i
Copy link
Member

dr0i commented May 12, 2023

Reopened to check if Monday's deployment is successful.

@dr0i dr0i reopened this May 12, 2023
@blackwinter
Copy link
Member Author

👍 Thanks!

@dr0i
Copy link
Member

dr0i commented May 15, 2023

Close this as completed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants