X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=serials%2Fsubscription-bib-search.pl;h=35159e6754f5e7e92174b98a1e86defd071da83f;hb=8d5b4306e07a594cd102fcce85f912ab3a5661e9;hp=8e44603e73204d8f77e6149b7950ad36e2a7850e;hpb=53ce807f6e6becc1e305d7743b8be9d5605a8c9a;p=koha_ffzg diff --git a/serials/subscription-bib-search.pl b/serials/subscription-bib-search.pl index 8e44603e73..35159e6754 100755 --- a/serials/subscription-bib-search.pl +++ b/serials/subscription-bib-search.pl @@ -58,6 +58,7 @@ use C4::Search; use C4::Biblio; use C4::Debug; +use Koha::ItemTypes; use Koha::SearchEngine; use Koha::SearchEngine::Search; @@ -196,8 +197,10 @@ else { ); # load the itemtypes - my $itemtypes = GetItemTypes(); + my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; my @itemtypesloop; + # FIXME This is uselessly complex, the iterator should be send to the template + # FIXME The translated_description should be used foreach my $thisitemtype ( sort { $itemtypes->{$a}->{'description'}