https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30879

--- Comment #1 from David Cook <[email protected]> ---
(In reply to Nick Clemens from comment #0)
> I am not sure how to specify sorting by number index, and not word

The short answer is that you don't. 

If you look at
./etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl, you'll see
that "pubdate" has a word, number, year, and sort index. You would just need to
add Local-number:s for the target index.

<z:index name="pubdate:w">
  <xslo:value-of select="substring(., 8, 4)"/>
</z:index>
<z:index name="pubdate:n">
  <xslo:value-of select="substring(., 8, 4)"/>
</z:index>
<z:index name="pubdate:y">
  <xslo:value-of select="substring(., 8, 4)"/>
</z:index>
<z:index name="pubdate:s">
  <xslo:value-of select="substring(., 8, 4)"/>
</z:index>

-- 
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/

Reply via email to