Skip to content

Commit

Permalink
Reactivate Issn lookup #1888
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Nov 2, 2023
1 parent 50a5cd3 commit 3a3edc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ do put_macro("opacLink")
copy_field("$i.$[field]", "$i.@opacAlmaMmsId")
lookup("$i.@opacAlmaMmsId","isil2opac_almaMmsId", delete:"true")
split_field("$i.@opacAlmaMmsId","\\{almaMmsId\\}")
# if exists("issn[].1")
# copy_field("$i.$[field]", "$i.@opacLinkIssn")
# lookup("$i.@opacLinkIssn","isil2opac_issn", delete:"true")
# split_field("$i.@opacLinkIssn","\\{issn\\}")
# end
if exists("issn[].1")
copy_field("$i.$[field]", "$i.@opacLinkIssn")
lookup("$i.@opacLinkIssn","isil2opac_issn", delete:"true")
split_field("$i.@opacLinkIssn","\\{issn\\}")
end
# if exists("isbn[].1")
# copy_field("$i.$[field]", "$i.@opacLinkIsbn")
# lookup("$i.@opacLinkIsbn","isil2opac_isbn", delete:"true")
Expand All @@ -317,8 +317,8 @@ do put_macro("opacLink")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkHbzId.1","hbzId","$i.@opacLinkHbzId.2",join_char:"")
# elsif exists("$i.@opacLinkIsbn.1")
# paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIsbn.1","isbn[].1","$i.@opacLinkIsbn.2",join_char:"")
# elsif exists("$i.@opacLinkIssn.1")
# paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIssn.1","issn[].1","$i.@opacLinkIssn.2",join_char:"")
elsif exists("$i.@opacLinkIssn.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIssn.1","issn[].1","$i.@opacLinkIssn.2",join_char:"")
end
end

Expand Down
1 change: 1 addition & 0 deletions src/test/resources/alma-fix/990054301770206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"id" : "http://lobid.org/organisations/DE-121#!",
"label" : "Wissenschaftliche Bibliothek der Stadt Trier"
},
"seeAlso" : [ "https://aleph.zbsport.de/F/?func=find-word&scan_code=WRD&scan_word=01715224&local_base=str01" ],
"id" : "http://lobid.org/items/990054301770206441:DE-121:2224982290007826#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@
"id" : "http://lobid.org/organisations/DE-2187#!",
"label" : "Bischöfliches Diözesanarchiv Aachen"
},
"seeAlso" : [ "https://katalog.dombibliothek-koeln.de/F/?local_base=edk01&find_code=ISN&request=01770403&func=find-b" ],
"id" : "http://lobid.org/items/990054345550206441:DE-2187:2247379360007507#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/alma-fix/990108873860206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"id" : "http://lobid.org/organisations/DE-Tr2#!",
"label" : "Bibliothek des Bischöflichen Priesterseminars Trier"
},
"seeAlso" : [ "https://katalog.dombibliothek-koeln.de/F/?local_base=ptr01&find_code=IDN&request=14735849&func=find-b" ],
"id" : "http://lobid.org/items/990108873860206441:DE-Tr2:2221102140007817#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down

0 comments on commit 3a3edc5

Please sign in to comment.