Skip to content

Instantly share code, notes, and snippets.

@CJHArch
Created July 19, 2016 20:20
Show Gist options
  • Save CJHArch/4c6fd503cdfeb45671565942e7b990ff to your computer and use it in GitHub Desktop.
Save CJHArch/4c6fd503cdfeb45671565942e7b990ff to your computer and use it in GitHub Desktop.
This will pull the identifiers and partners from EADs containing a dao (i.e. allowing a count of finding aids that link to digital material)
<data>
{
for $Record in /ead[archdesc/dsc/descendant::dao]
let $id := $Record/archdesc/did/unitid
let $repo := $Record/archdesc/did/repository
let $address := $Record/eadheader/filedesc/publicationstmt/address/addressline[1]
return
<record>
<id>{$id}</id>
<repo>{data($repo)}</repo>
<address>{data($address)}</address>
</record>
}
</data>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment