Skip to content

Commit

Permalink
Restore inSeries -> isPartOf transformation for all types (RPB-256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 25, 2025
1 parent 0605edd commit 2484877
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conf/output/test-output-57.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"isPartOf" : [ {
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Salto"
} ],
"numbering" : "[13]"
} ],
"rpbId" : "929t112198",
"id" : "https://lobid.org/resources/929t112198",
"hbzId" : "HT015954631",
Expand Down
6 changes: 6 additions & 0 deletions conf/output/test-output-85.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"isPartOf" : [ {
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "DuMont aktiv"
} ]
} ],
"rpbId" : "929t160199",
"id" : "https://lobid.org/resources/929t160199",
"hbzId" : "HT018859168",
Expand Down
6 changes: 6 additions & 0 deletions conf/output/test-output-90.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"isPartOf" : [ {
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Beiträge zur Geschichte und Kultur der Stadt Wittlich"
} ]
} ],
"rpbId" : "121t970621",
"id" : "https://lobid.org/resources/121t970621",
"isbn" : [ "3-9802913-8-3" ],
Expand Down
7 changes: 7 additions & 0 deletions conf/output/test-output-91.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "MultiVolumeBook" ],
"isPartOf" : [ {
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Bad Emser Hefte"
} ],
"numbering" : "..."
} ],
"rpbId" : "929t163432",
"id" : "https://lobid.org/resources/929t163432",
"hbzId" : "HT003729454",
Expand Down
7 changes: 7 additions & 0 deletions conf/output/test-output-96.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"isPartOf" : [ {
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Serie Musik"
} ],
"numbering" : "8309"
} ],
"rpbId" : "107t110017",
"id" : "https://lobid.org/resources/107t110017",
"isbn" : [ "978-3-254-08309-8" ],
Expand Down
2 changes: 2 additions & 0 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ if any_equal("type", "Band")
copy_field("inSeries[].*", "isPartOf[].$append") # Strapi: inSeries[] (Gesamttitel) -> isPartOf
copy_field("volumeIn", "isPartOf[].$append") # Strapi volumeIn (Bandangaben) -> isPartOf
copy_field("f20u", "isPartOf[].$last.label") # label is in f20u
else
move_field("inSeries[]", "isPartOf[]")
end

# For all types: lobid structure
Expand Down

0 comments on commit 2484877

Please sign in to comment.