Skip to content

Commit

Permalink
UBO-355 Add more batch editor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fluetze authored and kkrebs committed Aug 23, 2024
1 parent 77f1413 commit efc0a5c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ubo-common/src/main/resources/config/ubo-common/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,41 @@ MCR.BatchEditor.orcid.Path2Add=mods:nameIdentifier[@type="orcid"][text()="{0}"]=
MCR.BatchEditor.scopus.Path2Remove=mods:nameIdentifier[@type="scopus"][text()="{0}"]
MCR.BatchEditor.scopus.Path2Add=mods:nameIdentifier[@type="scopus"][text()="{0}"]="{0}"

# Edit Connection ID (internal UUID to link users to publications)
MCR.BatchEditor.connection.Path2Remove=mods:nameIdentifier[@type="connection"][text()="{0}"]
MCR.BatchEditor.connection.Path2Add=mods:nameIdentifier[@type="connection"][text()="{0}"]="{0}"

# Base URI for classifications
MCR.BatchEditor.ClassificationsBaseURI=https://bibliographie.ub.uni-due.de/classifications/

# Edit ORIGIN category
MCR.BatchEditor.origin.Path2Remove=mods:classification[@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%ORIGIN#{0}"]
MCR.BatchEditor.origin.Path2Add=mods:classification[@authorityURI="%MCR.BatchEditor.ClassificationsBaseURI%ORIGIN"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%ORIGIN#{0}"]

# Edit fachreferate category
MCR.BatchEditor.fachreferat.Path2Remove=mods:classification[@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%fachreferate#{0}"]
MCR.BatchEditor.fachreferat.Path2Add=mods:classification[@authorityURI="%MCR.BatchEditor.ClassificationsBaseURI%fachreferate"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%fachreferate#{0}"]

# Edit OA classification
MCR.BatchEditor.oa.Path2Remove=mods:classification[@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%oa#{0}"]
MCR.BatchEditor.oa.Path2Add=mods:classification[@authorityURI="%MCR.BatchEditor.ClassificationsBaseURI%oa"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%oa#{0}"]

# Edit Access Rights
MCR.BatchEditor.accessrights.Path2Remove=mods:classification[@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%accessrights#{0}"]
MCR.BatchEditor.accessrights.Path2Add=mods:classification[@authorityURI="%MCR.BatchEditor.ClassificationsBaseURI%accessrights"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%accessrights#{0}"]

# Edit mods:genre
MCR.BatchEditor.genre.Path2Remove=mods:genre[@type="intern"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%ubogenre#{0}"]
MCR.BatchEditor.genre.Path2Add=mods:genre[@type="intern"][@authorityURI="%MCR.BatchEditor.ClassificationsBaseURI%ubogenre"][@valueURI="%MCR.BatchEditor.ClassificationsBaseURI%ubogenre#{0}"]

# Note that adding/removing mods:subject/mods:topic has limitations here:
MCR.BatchEditor.topic.Path2Remove=mods:subject[mods:topic[text()="{0}"]]
MCR.BatchEditor.topic.Path2Add=mods:subject[mods:topic[text()="{0}"]="{0}"]
# "remove" will completely remove the mods:subject,
# if there is any mods:topic below that matches
# "add" will always add a new mods:subject with mods:topic below,
# except there is already any mods:topic with exact that text.

######################################################################
# #
# Primo #
Expand Down

0 comments on commit efc0a5c

Please sign in to comment.