C4::ClassSortRoutine::Dewey - generic call number sorting key routine
use C4::ClassSortRoutine qw( GetClassSortKey );
my $cn_sort = GetClassSortKey('Dewey', $cn_class, $cn_item);
my $cn_sort = C4::ClassSortRoutine::Dewey::Dewey($cn_class, $cn_item);
Generates sorting key using the following rules:
* Concatenates class and item part. * Converts to uppercase. * Removes leading and trailing whitespace and '/' * Separates alphabetic prefix from the rest of the call number * Splits into tokens on whitespaces and periods. * Leaves first digit group as is. * Converts second digit group to 15-digit long group, padded on right with zeroes. * Converts each run of whitespace to an underscore. * Removes any remaining non-alphabetical, non-numeric, non-underscore characters.
Koha Development Team <http://koha-community.org/>