Last active
March 28, 2018 17:31
-
-
Save rosiel/7bd7caafe13f84e1357eaee17e84a245 to your computer and use it in GitHub Desktop.
XPATH snippet to extract MODS title and apply ISBD punctuation
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
string-join( | |
( | |
string-join( | |
( | |
string-join( | |
( | |
/mods/titleInfo[not(@type)]/nonSort/text(), | |
/mods/titleInfo[not(@type)]/title/text() | |
), | |
' ' | |
), | |
/mods/titleInfo[not(@type)]/subTitle/text() | |
), | |
' : ' | |
), | |
string-join( | |
( | |
/mods/titleInfo[not(@type)]/partNumber/text(), | |
/mods/titleInfo[not(@type)]/partName/text() | |
), | |
', ' | |
) | |
), | |
'. ' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment