[Koha-bugs] [Bug 20961] cn_sort for DDC callnumbers should between 1 and 99 should be formatted as 001.* - 099.*

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 19 16:40:43 CEST 2018


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

--- Comment #2 from Barton Chittenden <barton at bywatersolutions.com> ---
(In reply to Martin Renvoize from comment #1)
> Given the conversation that took place in that email thread, do we actually
> need to add a new sort class for this rather than changing the existing
> one's behaviour to give the least surprise to users?  Or perhaps create a
> new UDC.pm class which is simply a copy of the current Dewey one before
> altering the behaviour of Dewey at the very least?
> 
> Universal Decimal Classification / UDC being effectively what the current
> Dewey.pm acts correctly for UDC sorting...

I think the second option -- 

- Create a UDC cn_source / UDC.pm that retains the current behavior of Dewey.pm
- Update Dewey.pm to 0-pad the digits before the decimal point

is the way to go, although this will require some care, because cn_source is
used widely in Koha -- there are tests for 'ddc' in xslt files, Koha/EDI.pm,
and C4/Labels/Label.pm.

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