Created
July 13, 2023 18:05
-
-
Save kschlottmann/2394a9d284f69ab9557ca50cac8b4bf4 to your computer and use it in GitHub Desktop.
Collection info from EAD based on language
This file contains hidden or 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
<data> | |
{ | |
for $Record in /ead | |
where $Record/archdesc/did/langmaterial/language/@langcode[not(contains(., 'eng'))] | |
let $id := $Record/archdesc/did/unitid[1]/text() | |
let $title := $Record/archdesc/did/unittitle | |
let $repo := $Record/eadheader/eadid/@mainagencycode | |
let $lang := $Record/archdesc/did/langmaterial/language/text() | |
let $scope := $Record/archdesc/scopecontent/p[1] | |
return | |
<record> | |
{data($id), "|", data($repo), "|", data($title), "|", data($scope), "|", data($lang)} | |
</record> | |
} | |
</data> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment