]> git.koha-community.org Git - koha.git/commit
Bug 4265: Fix padding of short callnumbers and Bib-1 attribute for sorting
authorMagnus Enger <magnus@enger.priv.no>
Mon, 28 Mar 2011 15:42:57 +0000 (11:42 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 5 Apr 2011 00:03:00 +0000 (20:03 -0400)
commit6c0c0b37cbe4138080207a89a3f66714c2727887
treea0c47972baaa4c9fa56d643af4680a81307f9b14
parent7c88c7e0f9331a38b0cb173acc783854f2bc4af5
Bug 4265: Fix padding of short callnumbers and Bib-1 attribute for sorting

1. The current C4::ClassSortRoutine::Dewey turns "306 Les" into "306_Les" for items.cn_sort and MARC-field 952$6, which results in "306.46 Les" being sorted before "306 Les" in the OPAC. With this patch, "306 Les" is turned into "306_000000000000000_Les".

2. Currently, call_number_asc and call_number_desc are set up to sort by 1=20, but this is mapped to Local-classification in ccl.properties, which is mapped to 952$o in record.abs.

This patch changes these sorts to use 1=8007, which is mapped to cn-sort and 952$6.

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit aef8358cf2ce8db9803d94c14f6728cdf9ebd0d4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/ClassSortRoutine/Dewey.pm
C4/Search.pm