View | Details | Raw Unified | Return to bug 11232
Collapse All | Expand All

(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-1 / +1 lines)
Lines 28-34 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
28
    </xslo:if>
28
    </xslo:if>
29
  </xslo:template>
29
  </xslo:template>
30
  <xslo:template match="marc:record">
30
  <xslo:template match="marc:record">
31
    <xslo:variable name="idfield" select="normalize-space()"/>
31
    <xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/>
32
    <z:record type="update">
32
    <z:record type="update">
33
      <xslo:attribute name="z:id">
33
      <xslo:attribute name="z:id">
34
        <xslo:value-of select="$idfield"/>
34
        <xslo:value-of select="$idfield"/>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-1 / +1 lines)
Lines 28-34 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
28
    </xslo:if>
28
    </xslo:if>
29
  </xslo:template>
29
  </xslo:template>
30
  <xslo:template match="marc:record">
30
  <xslo:template match="marc:record">
31
    <xslo:variable name="idfield" select="normalize-space()"/>
31
    <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
32
    <z:record type="update">
32
    <z:record type="update">
33
      <xslo:attribute name="z:id">
33
      <xslo:attribute name="z:id">
34
        <xslo:value-of select="$idfield"/>
34
        <xslo:value-of select="$idfield"/>
(-)a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl (-2 / +1 lines)
Lines 52-58 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
52
52
53
            <xslo:template match="marc:record">
53
            <xslo:template match="marc:record">
54
                <xslo:variable name="idfield">
54
                <xslo:variable name="idfield">
55
                    <xsl:attribute name="select">normalize-space(<xsl:value-of select="//id"/>)</xsl:attribute>
55
                    <xsl:attribute name="select">normalize-space(<xsl:value-of select="//kohaidx:id"/>)</xsl:attribute>
56
                </xslo:variable>
56
                </xslo:variable>
57
                <z:record type="update">
57
                <z:record type="update">
58
                    <xslo:attribute name="z:id"><xslo:value-of select="$idfield"/></xslo:attribute>
58
                    <xslo:attribute name="z:id"><xslo:value-of select="$idfield"/></xslo:attribute>
59
- 

Return to bug 11232