Skip to content

Commit

Permalink
Adjust holdings for repeated subfield b (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Jan 12, 2024
1 parent b018ec8 commit a6adec2
Show file tree
Hide file tree
Showing 3 changed files with 5,188 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/resources/alma/fix/item.fix
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ do list(path: "HOL ", "var": "$i")
add_field( "hasItem[].$append.test","")
add_field("hasItem[].$last.label", "lobid Bestandsressource")
set_array("hasItem[].$last.type[]", "Item","PhysikalischerTitel")
copy_field("$H52.b","hasItem[].$last.currentLibrary")
if exists("$H52.b.1")
copy_field("$H52.b.1","hasItem[].$last.currentLibrary")
else
copy_field("$H52.b","hasItem[].$last.currentLibrary")
end
copy_field("$H52.c","hasItem[].$last.currentLocation")
copy_field("$H52.h", "hasItem[].$last.callNumber")
call_macro("holdingLibrary+opacLink", mmsIdField:"$i.8",libraryCodeField:"$H52.b")
if exists("$H52.b.1")
call_macro("holdingLibrary+opacLink", mmsIdField:"$i.8",libraryCodeField:"$H52.b.1")
else
call_macro("holdingLibrary+opacLink", mmsIdField:"$i.8",libraryCodeField:"$H52.b")
end
end
end
end
Expand Down
Loading

0 comments on commit a6adec2

Please sign in to comment.