C4::ClassSources - handle classification sources in Koha
use C4::ClassSource;
This module deals with manipulating classification sources and sorting rules.
my $sources = GetClassSources(); Returns reference to hash of references to the class sources, keyed on cn_source.
my $sources = GetClassSources(); my @sources = (); foreach my $cn_source (sort keys %$sources) { my $source = $sources->{$cn_source}; push @sources, { code => $source->{'cn_source'}, description => $source->{'description'}, used => $source->{'used'}, sortrule => $source->{'class_sort_rule'} } }
my $hashref = GetClassSource($cn_source); Retrieves a class_sources row by cn_source.
my $hashref = GetClassSortRule($class_sort_rule); Retrieves a class_sort_rules row by class_sort_rule.
my $cn_sort = GetClassSort($cn_source, $cn_class, $cn_item);
Get the sort key corresponding to the classification part and item part and the defined call number source.
Koha Development Team <http://koha-community.org/>