[Koha-bugs] [Bug 24517] New: Zebra: date-entered-on-file misses 6th position
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 27 08:59:44 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24517
Bug ID: 24517
Summary: Zebra: date-entered-on-file misses 6th position
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
Date entered on file is in MARC21 tag 008 position 00 to 05 (or 1-6 for normal
humans). In Koha only the first 5 digits are indexed with Zebra. Does not
really facilitate searching ;)
<index_control_field tag="008" offset="0" length="5">
<target_index>date-entered-on-file:n</target_index>
</index_control_field>
<index_control_field tag="008" offset="0" length="5">
<target_index>date-entered-on-file:s</target_index>
</index_control_field>
<xslo:template match="marc:controlfield[@tag='008']">
<z:index name="date-entered-on-file:n">
<xslo:value-of select="substring(., 1, 5)"/>
</z:index>
<z:index name="date-entered-on-file:s">
<xslo:value-of select="substring(., 1, 5)"/>
</z:index>
Elasticsearch appears to do a better job:
date-entered-on-file:
label: date-entered-on-file
mappings:
- facet: ''
marc_field: '008_/0-5'
marc_type: marc21
sort: ~
suggestible: ''
- facet: ''
marc_field: '008_/0-5'
marc_type: normarc
sort: ~
suggestible: ''
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list