- both solr.xslt to define licence field for solr

- composer updates
- sytax in SolrDocumentXslt.php
This commit is contained in:
Arno Kaimbacher 2020-05-20 14:41:49 +02:00
parent 671cdb1e4e
commit 780bdbb4a4
4 changed files with 38 additions and 21 deletions

View file

@ -38,7 +38,8 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:php="http://php.net/xsl">
<xsl:output method="xml" indent="yes" />
@ -300,6 +301,14 @@
</xsl:element>
</xsl:for-each>
<!-- licences -->
<xsl:if test="/Opus/Rdr_Dataset/Licence">
<xsl:element name="field">
<xsl:attribute name="name">licence</xsl:attribute>
<xsl:value-of select="@Name" />
</xsl:element>
</xsl:for-each>
<!-- series ids and series number per id (modeled as dynamic field) -->
<xsl:for-each select="/Opus/Rdr_Dataset/Series">
<xsl:element name="field">
@ -405,8 +414,7 @@
<xsl:for-each select="/Opus/Rdr_Dataset/Reference">
<xsl:element name="field">
<xsl:attribute name="name">reference</xsl:attribute>
<xsl:value-of select="json-to-xml(/Opus/Rdr_Dataset/Reference)"/>
<!-- <xsl:value-of select="@Value"/> -->
<xsl:value-of select="@Value"/>
</xsl:element>
</xsl:for-each>