Bug 12424 - ddc sorting of call numbers truncates long Cutter parts
commite0c1476123603e9cfe9486ad67c507ff5b1574c3
authorsimith <simith@inlibro.com>
Thu, 21 Aug 2014 18:42:04 +0000 (21 14:42 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 18 Oct 2014 13:50:07 +0000 (18 10:50 -0300)
tree3168309f8a2bf5a3c64b0d3c526337b73093d514
parent93201a88939325296c9a04ff53b485ab32782b5b
Bug 12424 - ddc sorting of call numbers truncates long Cutter parts

This patch increases the cn_sort field length to 255 chars.

Modified:

C4/ClassSortRoutine.pm                    - change the hardcoded cn_sort length to 255
installer/data/mysql/kohastructure.sql    - alter tables items and deleteditems,
                                            biblioitems and deletedbiblioitems
installer/data/mysql/updatedatabase.pl    - alter tables items and deleteditems,
                                            biblioitems and deletedbiblioitems

Testing:

Before applying the patch:
0) Select an item
1) Edit the item selected
2) Change "Full call number" option to 530 F435_1996 v2p1
3) Save changes
4) Valide 530_000000000000000_F435_1996_ (table items - cn_sort column).

After applying the patch:
5) Edit again the item selected in 0
3) Save changes
4) Valide 530_000000000000000_F435_1996_V2P1 (table items - cn_sort column).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes tests and QA script.
Works as described.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/ClassSortRoutine.pm
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl