Note: NORMARC is missing the id field.
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This patch makes t/db_dependent/Search.t pass again.
NORMARC is currently not tested.
I checked the results before and after applying the patch
and the facets are now looking the same as before.
Passes all tests and QA script.
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
</xslo:if>
</xslo:template>
<xslo:template match="marc:record">
- <xslo:variable name="idfield" select="normalize-space()"/>
+ <xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/>
<z:record type="update">
<xslo:attribute name="z:id">
<xslo:value-of select="$idfield"/>
</xslo:if>
</xslo:template>
<xslo:template match="marc:record">
- <xslo:variable name="idfield" select="normalize-space()"/>
+ <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
<z:record type="update">
<xslo:attribute name="z:id">
<xslo:value-of select="$idfield"/>
<xslo:template match="marc:record">
<xslo:variable name="idfield">
- <xsl:attribute name="select">normalize-space(<xsl:value-of select="//id"/>)</xsl:attribute>
+ <xsl:attribute name="select">normalize-space(<xsl:value-of select="//kohaidx:id"/>)</xsl:attribute>
</xslo:variable>
<z:record type="update">
<xslo:attribute name="z:id"><xslo:value-of select="$idfield"/></xslo:attribute>