[Koha-bugs] [Bug 30879] Add option to sort components by biblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 22 01:54:37 CEST 2022


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

--- Comment #11 from David Cook <dcook at prosentient.com.au> ---
(In reply to Nick Clemens from comment #10)
> Our IDs all seem to be INT(11) in the DB - would it be reasonable to zero
> pad our ids into a new column to fix the sorting?

Zero padding the ID is smart thinking I reckon.

In theory, we wouldn't need a new DB column. We'd just need to add something
like the following to our Zebra indexing XSLT for a new custom index (e.g.
Local-number-sort):
<xsl:value-of select='format-number(1, "00000000000")' />

I think to update
"./etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl", we'd need
to update the template "handle-index-subfields" in
./etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl

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