From bb46ed9b320a95e053c7c7183f254de1a1ab815b Mon Sep 17 00:00:00 2001 From: Jens Wille Date: Fri, 12 May 2023 13:35:04 +0200 Subject: [PATCH] Exclude IZ-activated CZ resources from union catalogue. (#1754) Presence in NWBib was made dependent on presence in Alma NZ with 3a84d88 (see also hbz/nwbib#613). --- .../alma/fix/relatedRessourcesAndLinks.fix | 16 ++++++++++++---- .../resources/alma-fix/99370682219806441.json | 5 ----- .../resources/alma-fix/99370694196806441.json | 12 ------------ .../resources/alma-fix/99370699582506441.json | 5 ----- .../resources/alma-fix/99370738710506441.json | 5 ----- .../resources/alma-fix/99370746459806441.json | 5 ----- .../resources/alma-fix/99370763433806441.json | 5 ----- .../resources/alma-fix/99370763882706441.json | 5 ----- .../resources/alma-fix/99371107766906441.json | 5 ----- .../resources/alma-fix/99371123630706441.json | 5 ----- .../resources/alma-fix/99371447897606441.json | 5 ----- .../resources/alma-fix/99371449208306441.json | 5 ----- web/test/tests/IndexIntegrationTest.java | 2 +- 13 files changed, 13 insertions(+), 67 deletions(-) diff --git a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix index a3fc585da..2ec85f782 100644 --- a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix +++ b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix @@ -337,13 +337,21 @@ set_array("inCollection[]") # hbz NZ -do list(path:"MBD ","var":"$i") - if any_equal("$i.M", "49HBZ_NETWORK") - add_field("inCollection[].$append.id", "http://lobid.org/organisations/DE-655#!") - add_field("inCollection[].$last.label", "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone") +if any_equal("MBD .M", "49HBZ_NETWORK") + if any_match("POR .A", ".*") + add_field("@inNZ", "true") + else + unless any_match("035 .a", "^\\(EXLCZ\\).*") + add_field("@inNZ", "true") + end end end +if exists("@inNZ") + add_field("inCollection[].$append.id", "http://lobid.org/organisations/DE-655#!") + add_field("inCollection[].$last.label", "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone") +end + # zdb if exists("zdbId") diff --git a/src/test/resources/alma-fix/99370682219806441.json b/src/test/resources/alma-fix/99370682219806441.json index e14d91141..af83a1621 100644 --- a/src/test/resources/alma-fix/99370682219806441.json +++ b/src/test/resources/alma-fix/99370682219806441.json @@ -70,11 +70,6 @@ "id" : "http://nbn-resolving.de/urn:nbn:de:bsz:14-qucosa2-386112", "label" : "urn:nbn:de:bsz:14-qucosa2-386112" } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", "label" : "Deutsch" diff --git a/src/test/resources/alma-fix/99370694196806441.json b/src/test/resources/alma-fix/99370694196806441.json index d79309c14..e77319a5f 100644 --- a/src/test/resources/alma-fix/99370694196806441.json +++ b/src/test/resources/alma-fix/99370694196806441.json @@ -64,22 +64,10 @@ }, { "id" : "http://worldcat.org/oclc/802544307", "label" : "OCLC Ressource" - }, { - "id" : "http://nwbib.de/99370694196806441#!", - "label" : "NWBib-Ressource" }, { "id" : "http://nbn-resolving.de/urn:nbn:de:hbz:5:2-53272", "label" : "urn:nbn:de:hbz:5:2-53272" } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - }, { - "id" : "http://lobid.org/resources/HT014176012#!", - "label" : "Nordrhein-Westfälische Bibliographie (NWBib)", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", "label" : "Deutsch" diff --git a/src/test/resources/alma-fix/99370699582506441.json b/src/test/resources/alma-fix/99370699582506441.json index d0244cc1f..8e3a4a4e3 100644 --- a/src/test/resources/alma-fix/99370699582506441.json +++ b/src/test/resources/alma-fix/99370699582506441.json @@ -67,11 +67,6 @@ "related" : [ { "issn" : "2190-0574" } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", "label" : "Deutsch" diff --git a/src/test/resources/alma-fix/99370738710506441.json b/src/test/resources/alma-fix/99370738710506441.json index 60195b643..d347b6c28 100644 --- a/src/test/resources/alma-fix/99370738710506441.json +++ b/src/test/resources/alma-fix/99370738710506441.json @@ -66,11 +66,6 @@ "related" : [ { "isbn" : [ "9789004297982", "9004297987" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "extent" : "1 online resource (398 pages)", "abstract" : [ "In A Comparative Appraisal of Normative Power Ville Sinkkonen constructs a three-pronged analytical framework for the analysis of normative power, a theoretical concept recently associated with studying the international role of the European Union. This toolkit allows him to compare the foreign policy conduct of the EU and the United States in the context of the January 25th, 2011 Revolution in Egypt along three dimensions: ‘norms and identity’, ‘means’ and ‘paradoxes’. These components permit an in-depth analysis of Western norm promotion in the midst of the upheaval, building on a large pool of source documents. The monograph broadens the remit of normative power through its empirical bent, comparative research set-up and focus on a swiftly unfolding revolution/transition complex. In the process, the prevalent discourse of the EU as a benign international actor is subjected to rigorous analytical scrutiny." ], "natureOfContent" : [ { diff --git a/src/test/resources/alma-fix/99370746459806441.json b/src/test/resources/alma-fix/99370746459806441.json index d98ee7639..8d3b5d62a 100644 --- a/src/test/resources/alma-fix/99370746459806441.json +++ b/src/test/resources/alma-fix/99370746459806441.json @@ -69,11 +69,6 @@ "related" : [ { "isbn" : [ "9780444533999", "0444533990" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/eng", "label" : "Englisch" diff --git a/src/test/resources/alma-fix/99370763433806441.json b/src/test/resources/alma-fix/99370763433806441.json index d4d3606b9..9a455e0de 100644 --- a/src/test/resources/alma-fix/99370763433806441.json +++ b/src/test/resources/alma-fix/99370763433806441.json @@ -69,11 +69,6 @@ "related" : [ { "isbn" : [ "9780271084749", "027108474X" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "extent" : "1 online resource", "abstract" : [ "\"Explores how superhero comics, with their creative fusions of fantasy and realism, provide a flexible visual form for engaging issues of disability and intersectional identity (race, class, gender, sexuality) as well as for imagining and valuing different physical and cognitive ways of being in the world\"--Provided by publisher." ], "subject" : [ { diff --git a/src/test/resources/alma-fix/99370763882706441.json b/src/test/resources/alma-fix/99370763882706441.json index 8acd5bb80..bcc4f1254 100644 --- a/src/test/resources/alma-fix/99370763882706441.json +++ b/src/test/resources/alma-fix/99370763882706441.json @@ -65,11 +65,6 @@ }, { "isbn" : [ "9789027237019", "9027237018" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/eng", "label" : "Englisch" diff --git a/src/test/resources/alma-fix/99371107766906441.json b/src/test/resources/alma-fix/99371107766906441.json index 857f7e82a..c0e5c107b 100644 --- a/src/test/resources/alma-fix/99371107766906441.json +++ b/src/test/resources/alma-fix/99371107766906441.json @@ -62,11 +62,6 @@ "related" : [ { "issn" : "2471-5506" } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "extent" : "1 online resource", "note" : [ "The research and policy journal of the World Congress of Families." ], "natureOfContent" : [ { diff --git a/src/test/resources/alma-fix/99371123630706441.json b/src/test/resources/alma-fix/99371123630706441.json index f2edb2d25..3336b8e22 100644 --- a/src/test/resources/alma-fix/99371123630706441.json +++ b/src/test/resources/alma-fix/99371123630706441.json @@ -74,11 +74,6 @@ "note" : [ "Print version (hardback):" ], "isbn" : [ "9783631660126", "363166012X" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", "label" : "Deutsch" diff --git a/src/test/resources/alma-fix/99371447897606441.json b/src/test/resources/alma-fix/99371447897606441.json index 8cc3db5e2..732794fe7 100644 --- a/src/test/resources/alma-fix/99371447897606441.json +++ b/src/test/resources/alma-fix/99371447897606441.json @@ -100,11 +100,6 @@ "related" : [ { "isbn" : [ "9780702075599", "0702075590" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "extent" : "1 online resource (ix, 357 pages) : illustrations (chiefly color)", "note" : [ "Revised edition of: Wheater's basic pathology : a text, atlas, and review of histopathology / [edited by] Barbara Young, William Stewart, and Geraldine O'Dowd. 5th ed. ©2011." ], "abstract" : [ "This concise introduction to pathology covers basic pathological mechanisms and offers a detailed review of systems pathology, making it a complete, effective review for today's readers. Hundreds of high-quality images-many new to this edition-illustrate common entities, and associated captions provide key pathological points. Reader-friendly text clarifies basic and complex information, helping you understand challenging concepts more easily. Wheater's Pathology is an excellent companion resource for users of Wheater's Functional Histology, 6th Edition, offering a comparison of normal histology with the pathological changes in disease. Contains a new chapter, Introduction to Pathology and Techniques, that provides more background information on histology techniques, immunohistochemistry, molecular tests and digital pathology. Contains new, full-color illustrations that depict additional pathological entities and update classifications. Includes quick-reference features such as keys to the lettering in images at the bottom of each page and fully revised clinical boxes with clinical-pathological correlations that explain the relevance of the pathological processes underlying common diseases and their complications. Summarizes key points with chapter reviews at the end of each section. -- Publisher" ], diff --git a/src/test/resources/alma-fix/99371449208306441.json b/src/test/resources/alma-fix/99371449208306441.json index 7d55df8f6..ad77bbccd 100644 --- a/src/test/resources/alma-fix/99371449208306441.json +++ b/src/test/resources/alma-fix/99371449208306441.json @@ -60,11 +60,6 @@ "related" : [ { "isbn" : [ "9781784714864", "1784714860" ] } ], - "inCollection" : [ { - "id" : "http://lobid.org/organisations/DE-655#!", - "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", - "type" : [ "Collection" ] - } ], "extent" : "1 online resource (528 pages)", "note" : [ "Includes index." ], "abstract" : [ "This Handbook covers the accounts, by practitioners and observers, of the ways in which policy is formed around problems, how these problems are recognized and understood, and how diverse participants come to be involved in addressing them. H.K. Colebatch and Robert Hoppe draw together a range of original contributions from experts in the field to illuminate the ways in which policies are formed and how they shape the process of governing. The Handbook on Policy, Process and Governing covers not only the activities of government, but also the contributions of other stakeholders, and the ways in which a wide range of participants contribute to the formation of public policy. It explores the tensions involved in the policy process between: innovative choice and stable practice, authoritative decision and negotiated order, and agreed activity and announced goals. The scholar's focus on the analysis of activity and the practitioner's interest in the achievement of outcomes are brought together in this timely book, making it a valuable read for public policy scholars and practitioners alike." ], diff --git a/web/test/tests/IndexIntegrationTest.java b/web/test/tests/IndexIntegrationTest.java index f8ff2190e..ca8d6ab71 100644 --- a/web/test/tests/IndexIntegrationTest.java +++ b/web/test/tests/IndexIntegrationTest.java @@ -65,7 +65,7 @@ public static Collection data() { { "publication.startDate:1993", /*->*/ 2 }, { "publication.location:Berlin AND publication.startDate:1993", /*->*/ 1 }, { "publication.location:Berlin AND publication.startDate:[1992 TO 2017]", /*->*/ 6 }, - { "inCollection.id:\"http\\://lobid.org/organisations/DE-655#\\!\"", /*->*/ 116 }, + { "inCollection.id:\"http\\://lobid.org/organisations/DE-655#\\!\"", /*->*/ 105 }, { "inCollection.id:NWBib", /*->*/ 0 }, { "publication.publishedBy:Quedenfeldt", /*->*/ 2 }, { "publication.publishedBy:Quedenfeld", /*->*/ 2 },