Skip to content

Commit

Permalink
Exclude delibris and edoweb-articles RPB-232
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Feb 6, 2025
1 parent df6478e commit 17bcc7a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 1 addition & 3 deletions conf/output/test-output-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "Article" ],
"rpbId" : "929t112200",
"id" : "https://lobid.org/resources/929t112200",
"hbzId" : "CT003010348",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down Expand Up @@ -73,9 +74,6 @@
},
"type" : [ "Contribution" ]
} ],
"containedIn" : [ {
"id" : "https://lobid.org/resources/CT003010348#!"
} ],
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 456",
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-68551",
Expand Down
4 changes: 1 addition & 3 deletions conf/output/test-output-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "Article" ],
"rpbId" : "929t112201",
"id" : "https://lobid.org/resources/929t112201",
"hbzId" : "CT003010543",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down Expand Up @@ -73,9 +74,6 @@
},
"type" : [ "Contribution" ]
} ],
"containedIn" : [ {
"id" : "https://lobid.org/resources/CT003010543#!"
} ],
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 380",
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70507",
Expand Down
4 changes: 1 addition & 3 deletions conf/output/test-output-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "Article" ],
"rpbId" : "929t112202",
"id" : "https://lobid.org/resources/929t112202",
"hbzId" : "CT003010542",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down Expand Up @@ -73,9 +74,6 @@
},
"type" : [ "Contribution" ]
} ],
"containedIn" : [ {
"id" : "https://lobid.org/resources/CT003010542#!"
} ],
"bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 378",
"fulltextOnline" : [ {
"id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70495",
Expand Down
6 changes: 4 additions & 2 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,10 @@ end

if any_equal("type[]", "Article")
if exists("hbzId")
paste("containedIn[].$append.id","~https://lobid.org/resources/","hbzId","~#!", join_char:"")
remove_field("hbzId")
unless any_match("hbzId","CT.*") # exclude delibris and edoweb. See: https://jira.hbz-nrw.de/browse/RPB-232?focusedId=330532&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-330532
paste("containedIn[].$append.id","~https://lobid.org/resources/","hbzId","~#!", join_char:"")
remove_field("hbzId")
end
end
end

Expand Down

0 comments on commit 17bcc7a

Please sign in to comment.