https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30879 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- (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.