Skip to content

Commit

Permalink
Prefer $n over $c for callNumber #1803
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 20, 2023
1 parent fc7a1fe commit cc6588e
Show file tree
Hide file tree
Showing 14 changed files with 161 additions and 161 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/alma/fix/item.fix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ do list(path:"ITM ", "var": "$i")
add_field( "hasItem[].$append.test","")
add_field("hasItem[].$last.label", "lobid Bestandsressource")
set_array("hasItem[].$last.type[]", "Item","PhysicalObject")
copy_field("$i.c", "hasItem[].$last.callNumber")
copy_field("$i.n", "hasItem[].$last.callNumber")
unless exists("hasItem[].$last.callNumber")
copy_field("$i.n", "hasItem[].$last.callNumber")
copy_field("$i.c", "hasItem[].$last.callNumber")
end
copy_field("$i.b", "hasItem[].$last.serialNumber")
paste("hasItem[].$last.currentLocation", "$i.w", "~/", "$i.x")
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "P = A 1985",
"callNumber" : "P = P I 15",
"serialNumber" : "02922183",
"currentLocation" : "R0001 / 00000000",
"heldBy" : {
Expand All @@ -145,7 +145,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "P = A 1985",
"callNumber" : "P = P I 15",
"serialNumber" : "02922177",
"currentLocation" : "R0001 / 00000000",
"heldBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "KKe 133",
"callNumber" : "BBZ 2656",
"serialNumber" : "06542653",
"currentLocation" : "R0002 / 00002000",
"heldBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990053976760206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"hasItem" : [ {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "67 P 23",
"callNumber" : "67P23_d",
"serialNumber" : "1148014-10",
"currentLocation" : "D0001 / D30",
"heldBy" : {
Expand Down
56 changes: 28 additions & 28 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "497335801",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -213,7 +213,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "497047701",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -225,7 +225,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -236,7 +236,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496523801",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -248,7 +248,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496976701",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -260,7 +260,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -271,7 +271,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -282,7 +282,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -293,7 +293,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -304,7 +304,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -315,7 +315,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -326,7 +326,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -337,7 +337,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -348,7 +348,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496805001",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -360,7 +360,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -371,7 +371,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "497056301",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -383,7 +383,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496725001",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -395,7 +395,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -406,7 +406,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "497168401",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -418,7 +418,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496626601",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -430,7 +430,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -441,7 +441,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"serialNumber" : "496523701",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
Expand All @@ -453,7 +453,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -464,7 +464,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -475,7 +475,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -486,7 +486,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -497,7 +497,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -508,7 +508,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "rei z 3",
"callNumber" : "rei/z0003",
"currentLocation" : "X0001 / 93L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990075429930206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "G 32.89/1934,4",
"callNumber" : "Per. 2968/1934,4",
"serialNumber" : "702586422107",
"currentLocation" : "R0003 / 00001000",
"heldBy" : {
Expand Down
14 changes: 7 additions & 7 deletions src/test/resources/alma-fix/990109712970206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -291,7 +291,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -302,7 +302,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -313,7 +313,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -324,7 +324,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -335,7 +335,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "zy 1432",
"callNumber" : "zy/1432",
"currentLocation" : "X0001 / 00L",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
Expand All @@ -358,7 +358,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "ZD 7791",
"callNumber" : "ZD 7791-13",
"serialNumber" : "6-00746409-0",
"currentLocation" : "ZB / ZB_FHM2",
"heldBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990126276700206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "deu 503-109",
"callNumber" : "deu 503-109a",
"serialNumber" : "C372365",
"currentLocation" : "RL002 / FHULD",
"heldBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990167595410206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "KMB/K COBAN, 7 1980",
"callNumber" : "KMB/K COBAN, 7 1980",
"serialNumber" : "KMB/1980.7637",
"currentLocation" : "K6001 / 00020050",
"heldBy" : {
Expand Down
Loading

0 comments on commit cc6588e

Please sign in to comment.