Skip to content

Commit

Permalink
Use numbering from Strapi volumeIn for lobid isPartOf (RPB-256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 21, 2025
1 parent e8b75f1 commit c485837
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions conf/output/test-output-92.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://rpb.lobid.org/929t163432",
"label" : "Bad Emser Hefte"
"label" : "Bad Emser Hefte ; 76"
} ],
"numbering" : "76"
"numbering" : "1 (1989)"
} ],
"rpbId" : "929t163432b1",
"id" : "https://lobid.org/resources/929t163432b1",
Expand Down
4 changes: 2 additions & 2 deletions conf/output/test-output-93.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://rpb.lobid.org/929t163432",
"label" : "Bad Emser Hefte"
"label" : "Bad Emser Hefte ; 77"
} ],
"numbering" : "77"
"numbering" : "2 ([1989])"
} ],
"rpbId" : "929t163432b2",
"id" : "https://lobid.org/resources/929t163432b2",
Expand Down
4 changes: 2 additions & 2 deletions conf/output/test-output-94.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://rpb.lobid.org/929t163432",
"label" : "Bad Emser Hefte"
"label" : "Bad Emser Hefte ; 78"
} ],
"numbering" : "78"
"numbering" : "3 ([1989])"
} ],
"rpbId" : "929t163432b3",
"id" : "https://lobid.org/resources/929t163432b3",
Expand Down
6 changes: 3 additions & 3 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ if any_equal("type", "Band")
# Set up superordinate ID: use the volume ID, remove the numbering part:
copy_field("volumeIn.value", "isPartOf[].$last.hasSuperordinate[].$append.id")
copy_field("superordinateLabel", "isPartOf[].$last.hasSuperordinate[].$last.label")
copy_field("tempNumbering", "isPartOf[].$last.numbering")
unless exists("isPartOf[].$last.numbering")
copy_field("volumeIn.numbering", "isPartOf[].$last.numbering")
if exists("tempNumbering")
paste("isPartOf[].$last.hasSuperordinate[].$last.label", "superordinateLabel", "~;", "tempNumbering")
end
copy_field("volumeIn.numbering", "isPartOf[].$last.numbering")
# disable after Allegro import until here ^
end

Expand Down

0 comments on commit c485837

Please sign in to comment.