+--- 1.8.7 2015/03/27
+
+solr-pz2.xsl: extend Solr transformation to emit license_name field PAZ-996
+
+cf.xsl: forwards flat affiliation structure PAZ-992
+
+parpar2: log YAZ version upon start PAZ-993
+
+Update and fix documentation for preferred targets
+
+Fix spelling of present_chunk in documentation
+
--- 1.8.6 2015/02/10
Increase facet limit PAZ-990
</pz:metadata>
</xsl:template>
+ <xsl:template match="affiliation">
+ <pz:metadata type="affiliation-person" empty="PAZPAR2_NULL_VALUE">
+ <xsl:value-of select="person"/>
+ </pz:metadata>
+ <pz:metadata type="affiliation-institution" empty="PAZPAR2_NULL_VALUE">
+ <xsl:value-of select="institution"/>
+ </pz:metadata>
+ </xsl:template>
+
<xsl:template match="*" >
<pz:metadata type="{local-name()}">
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:value-of select="."/>
</pz:metadata>
+ <xsl:if test="../@name='license_url'">
+ <pz:metadata type="license_name">
+ <xsl:choose>
+ <!-- Creative Commons licenses -->
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by/')">
+ CC By
+ </xsl:when>
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-sa/')">
+ CC By-SA
+ </xsl:when>
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-nd/')">
+ CC By-ND
+ </xsl:when>
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-nc/')">
+ CC By-NC
+ </xsl:when>
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-nc-sa/')">
+ CC By-NC-SA
+ </xsl:when>
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-nc-nd/')">
+ CC By-NC-ND
+ </xsl:when>
+
+ <!-- There is actually no such license as this, but East London uses it anyway! -->
+ <xsl:when test="starts-with(., 'http://creativecommons.org/licenses/by-nd-sa/')">
+ CC By-ND-SA
+ </xsl:when>
+
+ <!-- Creative Commons' public-domain tools are not actually licences, may well be used -->
+ <xsl:when test=". = 'http://creativecommons.org/about/cc0'">
+ CC0 (public domain)
+ </xsl:when>
+ <xsl:when test=". = 'http://creativecommons.org/about/pdm2'">
+ CC PDL (public domain)
+ </xsl:when>
+
+ <!-- The RIOXX profile itself provides two ways of saying "all rights reserved" -->
+ <xsl:when test=". = 'http://www.rioxx.net/licenses/all-rights-reserved'">
+ All rights reserved
+ </xsl:when>
+ <xsl:when test=". = 'http://www.rioxx.net/licenses/under-embargo-all-rights-reserved'">
+ Under embargo
+ </xsl:when>
+
+ <xsl:otherwise>
+ [unknown]
+ </xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
+ </xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>