Skip to content

Commit

Permalink
Inspect reason for missing lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Sep 25, 2023
1 parent c2e348b commit 4291810
Show file tree
Hide file tree
Showing 89 changed files with 2,751 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/resources/alma/alma.fix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ include ("./fix/contribution.fix")
vacuum()
retain(
"@context",
"ITM ",
"abstract[]",
"almaMmsId",
"alternateGraphicRepresentation[]",
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ end

do put_macro("opacLink")
copy_field("$i.@iz", "$i.@opacLinkZdbId")
lookup("$i.@opacLinkZdbId","isil2opac_zdbId", delete:"true")
lookup("$i.@opacLinkZdbId","isil2opac_zdbId")
split_field("$i.@opacLinkZdbId","\\{zdbid\\}")
copy_field("$i.@iz", "$i.@opacLinkHbzId")
lookup("$i.@opacLinkHbzId","isil2opac_hbzId", delete:"true")
lookup("$i.@opacLinkHbzId","isil2opac_hbzId")
split_field("$i.@opacLinkHbzId","\\{hbzId\\}")
if exists("[email protected]")
paste("hasItem[].$last.opacLink","[email protected]","zdbId","[email protected]",join_char:"")
Expand Down
42 changes: 42 additions & 0 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
{
"ITM " : {
"H" : "22135518560006463",
"x" : "11",
"f" : "BOOK",
"v" : "11",
"p" : "20",
"X" : "System",
"U" : "1984-08-31 12:59:00 Europe/Berlin",
"Y" : "2022-07-14 11:46:36 Europe/Berlin",
"h" : "false",
"n" : "ICM1034",
"M" : "49HBZ_PAD",
"s" : "1",
"d" : "8",
"V" : "import",
"b" : "ICM1034",
"a" : "23135518530006463",
"t" : "8",
"R" : "Maintenance count: 001",
"W" : "1984-08-31 02:00:00 Europe/Berlin",
"u" : "P0001",
"w" : "P0001",
"@iz" : "DE-466",
"@opacLinkZdbId" : "23135518530006463",
"@opacLinkHbzId" : "23135518530006463",
"@sublibraryIsil" : "DE-466"
},
"@context" : "http://lobid.org/resources/context.jsonld",
"almaMmsId" : "990001412590206441",
"hbzId" : "HT000161712",
Expand Down Expand Up @@ -114,6 +141,7 @@
"serialNumber" : "W00348898",
"currentLibrary" : "W0001",
"currentLocation" : "04",
"opacLink" : "23138155830006447",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-468#!",
"isil" : "DE-468",
Expand All @@ -127,6 +155,7 @@
"serialNumber" : "881294001",
"currentLibrary" : "F0001",
"currentLocation" : "03",
"opacLink" : "2397648970006464",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-708#!",
"isil" : "DE-708",
Expand All @@ -140,6 +169,7 @@
"serialNumber" : "02922183",
"currentLibrary" : "R0001",
"currentLocation" : "00000000",
"opacLink" : "2367328890007506",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"isil" : "DE-929",
Expand All @@ -153,6 +183,7 @@
"serialNumber" : "02922177",
"currentLibrary" : "R0001",
"currentLocation" : "00000000",
"opacLink" : "2367328900007506",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"isil" : "DE-929",
Expand All @@ -166,6 +197,7 @@
"serialNumber" : "0130003X",
"currentLibrary" : "R0001",
"currentLocation" : "00000000",
"opacLink" : "2367328910007506",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"isil" : "DE-929",
Expand All @@ -179,6 +211,7 @@
"serialNumber" : ":94002663930",
"currentLibrary" : "T0010",
"currentLocation" : "kA",
"opacLink" : "2319004410007826",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-121#!",
"isil" : "DE-121",
Expand All @@ -192,6 +225,7 @@
"serialNumber" : "50860674",
"currentLibrary" : "EFB",
"currentLocation" : "Freihand",
"opacLink" : "23197423230006445",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-290#!",
"isil" : "DE-290",
Expand All @@ -205,6 +239,7 @@
"serialNumber" : "B1252/640",
"currentLibrary" : "0",
"currentLocation" : "0-MagAlt",
"opacLink" : "23231651750006467",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-5#!",
"isil" : "DE-5",
Expand All @@ -218,6 +253,7 @@
"serialNumber" : "160/3072426+01",
"currentLibrary" : "UB_BI",
"currentLocation" : "164_Mono",
"opacLink" : "23278036660006442",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-361#!",
"isil" : "DE-361",
Expand All @@ -231,6 +267,7 @@
"serialNumber" : "408422401",
"currentLibrary" : "X0001",
"currentLocation" : "00L",
"opacLink" : "23299197890006443",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-61#!",
"isil" : "DE-61",
Expand All @@ -244,6 +281,7 @@
"serialNumber" : "PP4/111",
"currentLibrary" : "38",
"currentLocation" : "38-MAG",
"opacLink" : "23307640680006476",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-38#!",
"isil" : "DE-38",
Expand All @@ -257,6 +295,7 @@
"serialNumber" : "48 QU 313",
"currentLibrary" : "ZB",
"currentLocation" : "ZB_GMAG",
"opacLink" : "23507162560006449",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-6#!",
"isil" : "DE-6",
Expand All @@ -270,6 +309,7 @@
"serialNumber" : "20ICM1270",
"currentLibrary" : "S0001",
"currentLocation" : "ERW",
"opacLink" : "2394316400006462",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-467#!",
"isil" : "DE-467",
Expand All @@ -283,6 +323,7 @@
"serialNumber" : "ICM1034",
"currentLibrary" : "P0001",
"currentLocation" : "11",
"opacLink" : "23135518530006463",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-466#!",
"isil" : "DE-466",
Expand All @@ -294,6 +335,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "P0001",
"currentLocation" : "UNASSIGNED",
"opacLink" : "22135518500006463",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-466#!",
"isil" : "DE-466",
Expand Down
30 changes: 30 additions & 0 deletions src/test/resources/alma-fix/990011470300206441.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
{
"ITM " : {
"H" : "22600509690006449",
"x" : "PHIL_PBIB",
"f" : "BOOK",
"v" : "PHIL_PBIB",
"X" : "AMO_TL2_FIX",
"U" : "2022-07-10 12:59:00 Europe/Berlin",
"Y" : "2022-07-12 13:10:54 Europe/Berlin",
"h" : "false",
"Q" : "SISIS-Ausleihzähler Migrationsjahr: 0 | SISIS-Ausleihzähler Vor-Migrationsjahr: 0 | SISIS-Ausleihzähler vorletztes Migrationsjahr: 0",
"M" : "49HBZ_ULM",
"s" : "1",
"d" : "8",
"V" : "import",
"b" : "Z17-045835",
"O" : "Fernleihkonditionen: 3",
"a" : "23600509680006449",
"R" : "DBS-Systematik: 0",
"c" : "G 3913/912",
"W" : "2022-07-11 15:07:28 Europe/Berlin",
"u" : "PHIL",
"w" : "PHIL",
"@iz" : "DE-6",
"@opacLinkZdbId" : "23600509680006449",
"@opacLinkHbzId" : "23600509680006449",
"@sublibraryIsil" : "DE-6-015"
},
"@context" : "http://lobid.org/resources/context.jsonld",
"almaMmsId" : "990011470300206441",
"hbzId" : "HT003109553",
Expand Down Expand Up @@ -96,6 +123,7 @@
"serialNumber" : "0102.3750.19",
"currentLibrary" : "T0011",
"currentLocation" : "38",
"opacLink" : "23264500340006470",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"isil" : "DE-385",
Expand All @@ -109,6 +137,7 @@
"serialNumber" : "Z17-045835",
"currentLibrary" : "PHIL",
"currentLocation" : "PHIL_PBIB",
"opacLink" : "23600509680006449",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-6-015#!",
"isil" : "DE-6-015",
Expand All @@ -120,6 +149,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "T0011",
"currentLocation" : "UNASSIGNED",
"opacLink" : "22264500330006470",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"isil" : "DE-385",
Expand Down
32 changes: 32 additions & 0 deletions src/test/resources/alma-fix/990014830510206441.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
{
"ITM " : {
"H" : "22382608050006446",
"x" : "E07IM",
"f" : "BOOK",
"v" : "E07IM",
"X" : "System",
"U" : "1991-08-20 12:59:00 Europe/Berlin",
"Y" : "2023-01-18 10:27:29 Europe/Berlin",
"h" : "false",
"n" : "KNLC1469",
"M" : "49HBZ_UDE",
"s" : "1",
"d" : "8",
"V" : "import",
"b" : "KNLC1469",
"a" : "23382608040006446",
"t" : "8",
"c" : "KNLC1469",
"B" : "8297/91",
"D" : "20000217",
"W" : "1991-08-20 02:00:00 Europe/Berlin",
"u" : "E0001",
"w" : "E0001",
"@iz" : "DE-465",
"@opacLinkZdbId" : "23382608040006446",
"@opacLinkHbzId" : "23382608040006446",
"@sublibraryIsil" : "DE-465"
},
"@context" : "http://lobid.org/resources/context.jsonld",
"almaMmsId" : "990014830510206441",
"hbzId" : "HT003864492",
Expand Down Expand Up @@ -99,6 +127,7 @@
"serialNumber" : "0017.4679.62",
"currentLibrary" : "T0011",
"currentLocation" : "21",
"opacLink" : "23291734220006470",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"isil" : "DE-385",
Expand All @@ -112,6 +141,7 @@
"serialNumber" : "SK-201407",
"currentLibrary" : "SM",
"currentLocation" : "SM-Frei",
"opacLink" : "23241836240006467",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-5-58#!",
"isil" : "DE-5-58",
Expand All @@ -125,6 +155,7 @@
"serialNumber" : "KNLC1469",
"currentLibrary" : "E0001",
"currentLocation" : "E07IM",
"opacLink" : "23382608040006446",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-465#!",
"isil" : "DE-465",
Expand All @@ -136,6 +167,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "T0011",
"currentLocation" : "UNASSIGNED",
"opacLink" : "22291734190006470",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"isil" : "DE-385",
Expand Down
35 changes: 35 additions & 0 deletions src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
{
"ITM " : {
"H" : "22506545990006449",
"x" : "MUPA_BIB",
"f" : "BOOK",
"v" : "MUPA_BIB",
"X" : "AMO_TL2_FIX",
"U" : "2022-07-10 12:59:00 Europe/Berlin",
"Y" : "2022-07-12 13:10:54 Europe/Berlin",
"h" : "false",
"J" : "lose Blätter fehlen",
"Q" : "SISIS-Ausleihzähler Migrationsjahr: 0 | SISIS-Ausleihzähler Vor-Migrationsjahr: 0 | SISIS-Ausleihzähler vorletztes Migrationsjahr: 0",
"M" : "49HBZ_ULM",
"s" : "1",
"d" : "8",
"V" : "import",
"b" : "Z156-011049",
"O" : "Fernleihkonditionen: 3",
"a" : "23506545980006449",
"R" : "DBS-Systematik: 0",
"c" : "P KLS Mol 4.1",
"W" : "2022-07-11 11:03:36 Europe/Berlin",
"u" : "MUPA",
"w" : "MUPA",
"@iz" : "DE-6",
"@opacLinkZdbId" : "23506545980006449",
"@opacLinkHbzId" : "23506545980006449",
"@sublibraryIsil" : "DE-6-286"
},
"@context" : "http://lobid.org/resources/context.jsonld",
"almaMmsId" : "990016782920206441",
"hbzId" : "HT004285445",
Expand Down Expand Up @@ -88,6 +116,7 @@
"serialNumber" : "E1000000037300",
"currentLibrary" : "Z9036",
"currentLocation" : "FHA",
"opacLink" : "2311409300006459",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-1156#!",
"isil" : "DE-1156",
Expand All @@ -101,6 +130,7 @@
"serialNumber" : "57500000060809",
"currentLibrary" : "HfM",
"currentLocation" : "HfM_Freih",
"opacLink" : "2393551510006480",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-575#!",
"isil" : "DE-575",
Expand All @@ -114,6 +144,7 @@
"serialNumber" : "012979677107",
"currentLibrary" : "R0003",
"currentLocation" : "00001000",
"opacLink" : "237988430007506",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-107#!",
"isil" : "DE-107",
Expand All @@ -127,6 +158,7 @@
"serialNumber" : "Z156-011049",
"currentLibrary" : "MUPA",
"currentLocation" : "MUPA_BIB",
"opacLink" : "23506545980006449",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-6-286#!",
"isil" : "DE-6-286",
Expand All @@ -138,6 +170,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "Z9029",
"currentLocation" : "UNASSIGNED",
"opacLink" : "228656420007816",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-52#!",
"isil" : "DE-52",
Expand All @@ -149,6 +182,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "Z9031",
"currentLocation" : "UNASSIGNED",
"opacLink" : "228656390007816",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-62#!",
"isil" : "DE-62",
Expand All @@ -160,6 +194,7 @@
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "Z9030",
"currentLocation" : "UNASSIGNED",
"opacLink" : "228656400007816",
"heldBy" : {
"id" : "http://lobid.org/organisations/DE-60#!",
"isil" : "DE-60",
Expand Down
Loading

0 comments on commit 4291810

Please sign in to comment.