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

Adjust license mapping to map 540 Open Access infos #2103 #2104

Merged
merged 1 commit into from
Nov 29, 2024
Merged
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
7 changes: 6 additions & 1 deletion src/main/resources/alma/fix/otherFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,20 @@ replace_all("bibliographicCitation.*","^In: ","")

join_field("bibliographicCitation", "; ")

# 540 - Terms Governing Use and Reproduction Note (R)

# 542 - Information Relating to Copyright Status (R) - $n - Note (R) $u - Uniform Resource Identifier (R)

set_array("license[]")
do list(path: "542??", "var": "$i")
do list(path: "540??|542??", "var": "$i")
copy_field("$i.u", "license[].$append.id")
replace_all("license[].$last.id", "^(http://|https://)(.*)$","https://$2")
copy_field("$i.u", "license[].$last.label")
replace_all("license[].$last.label", "^(http://|https://)(.*)$","$2")
end

uniq("license[]")

set_array("langNote[]")
do list(path: "546??", "var": "$i")
set_array("$i.@langNote")
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/99371123630706441.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
} ],
"extent" : "1 online resource (194 pages) : digital file(s).",
"abstract" : [ "2012 wurde das Netzwerk-Projekt Landeskunde Nord ins Leben gerufen, dessen Ziel es ist, Forschung und Lehre zur Landeskunde des Deutschen als Fremdsprache, insbesondere in den nordischen Ländern, voranzutreiben. Das vorliegende Buch, Perspektive Nord, knüpft an den 2013 erschienenen Band Landeskunde Nord an und bietet Reflexionen wissenschaftstheoretischer, fachdidaktischer und inhaltlicher Aspekte, die für die Gestaltung der Landeskundelehre bzw. des Landeskundeunterrichts relevant sind. In ihrer Vielfalt sind die hier vorgelegten Konzepte und Ideen vor allem modernen kulturwissenschaftlichen Ansätzen verpflichtet, knüpfen an international geführte Diskussionen an und haben auch deshalb über die nordischen Länder hinaus Bedeutung. Dabei setzen die Autorinnen und Autoren auf autonomes und lebenslanges Lernen." ],
"license" : [ {
"id" : "https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode",
"label" : "creativecommons.org/licenses/by-nc-nd/4.0/legalcode"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The label could be better. Apparently, we are currently not showing the field in the lobid UI, anyway. We will improve the labels when/if we add the field in the UI.

} ],
"langNote" : [ "German" ],
"subject" : [ {
"type" : [ "Concept" ],
Expand Down
Loading