Skip to content

Commit

Permalink
Improve enrichment #1058
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 4, 2024
1 parent 85fd81a commit c0e2966
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/main/resources/alma/fix/subjects.fix
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,14 @@ end

# RVK via Culturegraph

copy_field("almaMmsId","rvkNotations")
lookup("rvkNotations","rvk",delete:"true")
if exists("rvkNotations")
set_array("subject[].$append.type[]","Concept")
add_field("subject[].$last.source.label","RVK")
copy_field("subject[].$last.notation","rvkNotations")
copy_field("almaMmsId","@rvkNotations")
lookup("@rvkNotations","rvk",delete:"true")
split_field("@rvkNotations", ", ")
do list(path: "@rvkNotations","var":"$i")
copy_field("$i","subject[].$append.notation")
set_array("subject[].$last.type[]","Concept")
add_field("subject[].$last.source.label","RVK (Regensburger Verbundklassifikation)")
add_field("subject[].$last.source.id","https://d-nb.info/gnd/4449787-8")
end

# 689 RSWK Schlagwortfolgen fka: Schlagwortketten 1 - 10 - no info on repeatability
Expand Down

0 comments on commit c0e2966

Please sign in to comment.