-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1906 from branch '1888-opacLink' of https://github.com/hbz/lob…
- Loading branch information
Showing
128 changed files
with
2,141 additions
and
1,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,6 +253,45 @@ do put_macro("provenanceLinks") | |
append("$[field]", "#!") | ||
end | ||
|
||
# opacLink | ||
|
||
do put_macro("opacLink") | ||
if exists("zdbId") | ||
copy_field("$i.$[field]", "$i.@opacLinkZdbId") | ||
lookup("$i.@opacLinkZdbId","isil2opac_zdbId", delete:"true") | ||
split_field("$i.@opacLinkZdbId","\\{zdbid\\}") | ||
elsif exists("hbzId") | ||
copy_field("$i.$[field]", "$i.@opacLinkHbzId") | ||
lookup("$i.@opacLinkHbzId","isil2opac_hbzId", delete:"true") | ||
split_field("$i.@opacLinkHbzId","\\{hbzid\\}") | ||
end | ||
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("isbn[].1") | ||
copy_field("$i.$[field]", "$i.@opacLinkIsbn") | ||
lookup("$i.@opacLinkIsbn","isil2opac_isbn", delete:"true") | ||
split_field("$i.@opacLinkZdbId","\\{isbn\\}") | ||
end | ||
set_array("hasItem[].$last.seeAlso[]") | ||
if exists("[email protected]") | ||
paste("hasItem[].$last.seeAlso[].$append","[email protected]","zdbId","[email protected]",join_char:"") | ||
elsif exists("[email protected]") | ||
paste("hasItem[].$last.seeAlso[].$append","[email protected]","hbzId","[email protected]",join_char:"") | ||
elsif exists("[email protected]") | ||
paste("hasItem[].$last.seeAlso[].$append","[email protected]","almaMmsId","[email protected]",join_char:"") | ||
elsif exists("[email protected]") | ||
paste("hasItem[].$last.seeAlso[].$append","[email protected]","isbn[].1","[email protected]",join_char:"") | ||
elsif exists("[email protected]") | ||
paste("hasItem[].$last.seeAlso[].$append","[email protected]","issn[].1","[email protected]",join_char:"") | ||
end | ||
end | ||
|
||
# for Schlagwortfolgen | ||
|
||
do put_macro("schlagwortfolge") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.