Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RVK labels incl. lookup tsv (#1835) #1961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public void run() {
fixVariables.put("institution-code", "DE-605");
// the './' is mandatory to get play to use the "conf" directory. Base is the root directory of the fix, which is "alma":
fixVariables.put("deweyLabels", "./maps/deweyLabels.tsv");
fixVariables.put("rvkLabels", "./maps/rvkLabels.tsv");
fixVariables.put("dnbSachgruppen", "./maps/dnbSachgruppen.tsv");
fixVariables.put("maps-institutions.tsv", "./maps/institutions.tsv");
fixVariables.put("sublibraryIsil", "../../../../../../lookup-tables/data/almaSublibraryCode2Isil/generated/generatedAlmaSublibraryCode2Isil.tsv");
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/alma/fix/maps.fix
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ put_filemap("$[nwbibWikidataLabelTypeCoords.tsv]","nwbibWikidataLabel", sep_char
put_filemap("$[nwbibWikidataLabelTypeCoords.tsv]","nwbibWikidataTypes", sep_char:"\t",key_column:"0",value_column:"3",expected_columns:"-1")
put_filemap("$[nwbibWikidataLabelTypeCoords.tsv]","nwbibWikidataGeodata", sep_char:"\t",key_column:"0",value_column:"4",expected_columns:"-1")

# DDC & DNB-Sachgruppen
# DDC & DNB-Sachgruppen & RVK
put_filemap("$[deweyLabels]","deweyLabels",sep_char:"\t")
put_filemap("$[dnbSachgruppen]","dnbSachgruppen",sep_char:"\t")
put_filemap("$[rvkLabels]","rvkLabels",sep_char:"\t")

# Library Classifications
put_filemap("$[classification.tsv]","classificationCode2Label", sep_char:"\t",key_column:"0",value_column:"1",expected_columns:"-1")
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/alma/fix/subjects.fix
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ do list(path:"084??", "var":"$i")
add_field("subject[].$last.source.label","Systematik der DNB (bis 2003)")
add_field("subject[].$last.source.id","https://bartoc.org/en/node/18497")
end
# RVK notation & label
elsif any_match("$i.2", "rvk")
copy_field("$j","subject[].$last.label")
lookup("subject[].$last.label", "rvkLabels", delete:"true")
add_field("subject[].$last.source.label", "RVK (Regensburger Verbundklassifikation)")
add_field("subject[].$last.source.id", "https://d-nb.info/gnd/4449787-8")
else
copy_field("$i.2", "subject[].$last.source.label")
lookup("subject[].$last.source.label","classificationCode2Label")
Expand Down
Loading
Loading