Dewey sorting not quite right
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Evergreen | Status tracked in Main | |||||
2.0 |
Fix Released
|
Medium
|
Unassigned | |||
2.1 |
Fix Released
|
Medium
|
Unassigned | |||
Main |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Evergreen: 2.0 (bug exists through to master)
Postgres: 8.4
Dewey sorting doesn't sort dewey numbers without decimals properly, for example:
520.2 Dic
520.222 Dic
520.92 Sob
520 Ber
520 Dic
If it's not obvious -- 520 should be before 520.2
We can see in the database, the label_sortkey values are not correctly padded:
36037509 | 520.2 Dic | 520_20000000000
36050809 | 520.222 Dic | 520_22200000000
36051822 | 520.92 Sob | 520_92000000000
36038062 | 520 Ber | 520_BER
36038615 | 520 Dic | 520_DIC
This is resolved by this Koha commit: http://
I have (side? cross?) ported this to Evergreen, there is a branch:
working/
A database upgrade number needs to be assigned.
description: | updated |
tags: | added: pullrequest |
description: | updated |
description: | updated |
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Confirming James' observation in our 2.0 systems. Will test out the proposed update early next week.