Created
May 1, 2020 21:33
-
-
Save phette23/e11594c5c1d64f0742712b8197ec054e to your computer and use it in GitHub Desktop.
add OAK campus legacy MODS subject (openEQUELLA)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// only add if not already there, add as last subject with "local" authority | |
if (!xml.contains('mods/subject/topic', 'Oakland Campus Legacy')) { | |
var len = xml.count('mods/subject') | |
xml.set('mods/subject[' + len + ']/@authority', 'local') | |
xml.set('mods/subject[' + len + ']/topic', 'Oakland Campus Legacy') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment