[Koha-bugs] [Bug 14527] zebra error 114 when searching for items added before or after a specific date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 5 07:21:20 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14527

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
(In reply to Pedro Ferreira from comment #14)
> can anyone guide me to sort this problem ..?
> thanks

That's a fair question. 

It looks like your
etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl file needs the
following block added within the   <xslo:template mode="index_subfields"
match="marc:datafield[@tag='995']"> element.

    <xslo:for-each select="marc:subfield">
      <xslo:if test="contains('5', @code)">
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d
Date-of-acquisition:s">
          <xslo:value-of select="."/>
        </z:index>
      </xslo:if>
    </xslo:for-each>

So that it looks like:

  <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
    <xslo:for-each select="marc:subfield">
      <xslo:if test="contains('5', @code)">
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d
Date-of-acquisition:s">
          <xslo:value-of select="."/>
        </z:index>
      </xslo:if>
    </xslo:for-each>

After patching the file, you can re-index Zebra, and then it should work.

It would probably be prudent for a developer to add it to the Koha codebase as
well. I don't use UNIMARC, so it's not really a problem for my libraries and I,
but I'm sure that this problem would raise its head with others.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list