Last active
August 29, 2015 14:22
-
-
Save tingletech/5861e0e7b452b11f8ad9 to your computer and use it in GitHub Desktop.
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
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<!-- xslt for | |
ucldc/registry -- load description and collection number into registry | |
input such as: http://www.oac.cdlib.org/search?raw=1&identifier=ark:/13030/tf1b69n716 | |
--> | |
<xsl:output method="text"/> | |
<xsl:template match="crossQueryResult"> | |
<xsl:apply-templates select="facet[@field='oac4-tab']/group[1]/docHit[1]/meta[1]"/> | |
</xsl:template> | |
<xsl:template match="meta"> | |
<xsl:value-of select="description[@q='abstract']"/> | |
<xsl:text> </xsl:text> | |
<xsl:value-of select="normalize-space(identifier[starts-with(text(),'Collection number:')])"/> | |
<xsl:text> | |
</xsl:text> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment