Skip to content

Commit

Permalink
Add hbzId based on updated lookup table (RPB-184, RPB-256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 10, 2025
1 parent 800d925 commit b704290
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions conf/output/test-output-33.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982373",
"id" : "https://lobid.org/resources/107t982373",
"hbzId" : "HT012717208",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-35.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982374",
"id" : "https://lobid.org/resources/107t982374",
"hbzId" : "HT012468298",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-37.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982375",
"id" : "https://lobid.org/resources/107t982375",
"hbzId" : "HT009003593",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-39.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982376",
"id" : "https://lobid.org/resources/107t982376",
"hbzId" : "HT012715281",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-41.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982377",
"id" : "https://lobid.org/resources/107t982377",
"hbzId" : "HT012715409",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-43.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982378",
"id" : "https://lobid.org/resources/107t982378",
"hbzId" : "HT012715308",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-45.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"rpbId" : "107t982379",
"id" : "https://lobid.org/resources/107t982379",
"hbzId" : "HT003194201",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
16 changes: 8 additions & 8 deletions conf/output/test-output-strapi.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions conf/rpb-titel-to-strapi.fix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# reject()
# end
# end
# do once()
# put_filemap("https://github.com/hbz/lookup-tables/raw/master/data/almaMmsId2rpbId.tsv",
# "rpbId2almaMmsId", "key_column": "1", "value_column": "0", "sep_char": "\t")
# end
do once()
put_filemap("https://github.com/hbz/lookup-tables/raw/master/data/almaMmsId2rpbId.tsv",
"rpbId2hbzId", "expected_columns": "4", "key_column": "1", "value_column": "2", "sep_char": "\t")
end
# paste("inLobid", "rpbId", "join_char": "")
# lookup("inLobid", "rpbId2almaMmsId", "delete": "true")
# if exists("inLobid")
Expand Down Expand Up @@ -73,6 +73,9 @@ do put_macro("add_item")
end

move_field("f00_", "rpbId")
copy_field("rpbId", "hbzId")
prepend("hbzId", "RPB")
lookup("hbzId", "rpbId2hbzId", "delete": "true")
move_field("f01_", "numbering")
call_macro("to_bool", from: "f14_", to: "doNotIndex")
move_field("f18_", "inCollection")
Expand Down

0 comments on commit b704290

Please sign in to comment.