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
<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 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<!--copy everything--> | |
<!-- KS 20150831 This stylesheet takes the output from the Excel-to-DSC_CJH xsl and moves up the container to before the did --> |
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.0"; | |
<results> | |
{ | |
for $OAIMarcRecord in /repository/record[metadata/record/datafield[@tag="852"][contains(., "Baeck")]] | |
let $callno:= $OAIMarcRecord/metadata/record/datafield[@tag="094"] | |
let $title := $OAIMarcRecord/metadata/record/datafield[@tag="245"] | |
let $eighta := $OAIMarcRecord/metadata/record/datafield[@tag="852"]/subfield[@code='a'] | |
let $eightb := $OAIMarcRecord/metadata/record/datafield[@tag="852"]/subfield[@code='b'] |
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.0"; | |
sum | |
( | |
for $de in /digital_entity_call/digital_entity/stream_ref/file_size_bytes | |
return $de | |
) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> | |
<!-- This template will take hyphen in the unittitle EAD tag and, in cases where it is between a lower-case letter and an upper-case letter, replace it within an em-dash --> | |
<!-- For example: <unittitle>Correspondence-Wax</unittitle> to <unittitle>Correspondence—Wax</unittitle> --> | |
<!-- Be sure to use an XSLT 2.0 engine --> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<xsl:template match="/"> | |
<xsl:for-each select="silo_schema/fields/field[location/@type='digital_entity']"> | |
<xsl:value-of select="@ui_default_text"/> | |
<xsl:text>,</xsl:text> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<!-- IdentityTransform --> | |
<xsl:template match="/ | @* | node()"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<!--copy everything--> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:template match="@* | node()"> | |
<xsl:copy> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- This stylesheet will generate a tsv file from an EAD container list. It will catch all c0X elements that have a did/container child --> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<!-- We don't want an xml declaration in the output, since this will just be a tab-separated text file--> | |
<xsl:output omit-xml-declaration="yes"/> | |
<!-- We don't want extra space floating around --> |
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.0"; | |
<results> | |
{ | |
for $OAIMarcRecord in /repository/record | |
where $OAIMarcRecord/metadata/record/datafield[@tag="041"] or $OAIMarcRecord/metadata/record/datafield[@tag="546"] or $OAIMarcRecord/metadata/record/controlfield[@tag="008"] | |
let $callno:= $OAIMarcRecord/metadata/record/datafield[@tag[contains(., "09")]][1]/subfield[@code="a"] | |
let $title := $OAIMarcRecord/metadata/record/datafield[@tag="245"] |
NewerOlder