Bug 11232: (qa followup) empty ID due to namespace mistake

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>
This commit is contained in:
Tomás Cohen Arazi 2014-10-15 12:15:26 -03:00
parent ccf7ae56f6
commit ca17512a8e
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
</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"/>

View file

@ -28,7 +28,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
</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"/>

View file

@ -52,7 +52,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
<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>