sanop specific : sorting itemtype

should not be ported to head, as it's a dirty unimarc hack, that will disappear with itemtype at item level
This commit is contained in:
Paul Poulain 2009-06-03 17:19:37 +02:00 committed by Henri-Damien LAURENT
parent 5022a8583a
commit afe4ecb94e
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ sub import_biblios_list {
# Itemtype is mandatory for adding a biblioitem, we just add a default, the user needs to modify this aftewards
my $itemtypehash = GetItemTypes();
my @itemtypes;
for my $key (keys %$itemtypehash) {
for my $key (sort { $itemtypehash->{$a}->{description} cmp $itemtypehash->{$b}->{description} } keys %$itemtypehash) {
push(@itemtypes, $itemtypehash->{$key});
}
foreach my $biblio (@$biblios) {