Created
August 26, 2015 23:54
-
-
Save CliffordAnderson/1a60e70cee1a3442167c to your computer and use it in GitHub Desktop.
Example XQuery for Sara S.
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 "3.1"; | |
declare namespace marc = "http://www.loc.gov/MARC21/slim"; | |
let $individual := <ignore-me><marc:controlfield tag="008">141001s2012 gaua 000 p eng d</marc:controlfield></ignore-me> | |
let $header := $individual/marc:controlfield[@tag='008']/text() | |
let $publoc := fn:substring($header,16,3) | |
where $publoc = ("gau", "other", "codes") | |
return $publoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment