<<

NAME

C4::ClassSortRoutine - base object for creation of classification sorting key generation routines

SYNOPSIS

use C4::ClassSortRoutine;

FUNCTIONS

GetSortRoutineNames

  my @routines = GetSortRoutineNames();

Get names of all modules under C4::ClassSortRoutine::*. Adding a new classification sorting routine can therefore be done simply by writing a new submodule under C4::ClassSortRoutine and placing it in the C4/ClassSortRoutine directory.

GetClassSortKey

  my $cn_sort = GetClassSortKey($sort_routine, $cn_class, $cn_item);

Generates classification sorting key. If $sort_routine does not point to a valid submodule in C4::ClassSortRoutine, default to a basic normalization routine.

_get_class_sort_key

Basic sorting function. Concatenates classification part and item, converts to uppercase, changes each run of whitespace to '_', and removes any non-digit, non-latin letter characters.

AUTHOR

Koha Development Team <info@koha.org>

<<