Last active
December 28, 2015 08:18
-
-
Save caschwartz/7470162 to your computer and use it in GitHub Desktop.
XQuery - Query to locate MODS titleInfo elements that are commented out
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
xquery version "1.0-ml"; | |
(: 11/14/13 Query to locate the titleInfo elements that are commented out :) | |
declare namespace mods = "http://www.loc.gov/mods/v3"; | |
for $doc in xdmp:directory("/MODS/", "infinity") | |
let $comments := $doc/mods:modsCollection/mods:mods//comment() | |
for $comment in $comments | |
where fn:contains($comment, "titleInfo") | |
order by fn:base-uri($doc) | |
return fn:base-uri($doc) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment