<<

NAME

C4::ClassSortRoutine::Dewey - generic call number sorting key routine

SYNOPSIS

use C4::ClassSortRoutine;

my $cn_sort = GetClassSortKey('Dewey', $cn_class, $cn_item);

FUNCTIONS

get_class_sort_key

  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.

AUTHOR

Koha Development Team <info@koha.org>

<<