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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/