|
Lines 810-820
sub prepare_adv_search_types {
Link Here
|
| 810 |
( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype'; |
810 |
( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype'; |
| 811 |
|
811 |
|
| 812 |
# FIXME We should retrieve the ItemTypes from the cache |
812 |
# FIXME We should retrieve the ItemTypes from the cache |
| 813 |
my $itemtypes = |
813 |
my $itemtypes = { |
| 814 |
map { |
814 |
map { |
| 815 |
$_->itemtype => |
815 |
$_->itemtype => |
| 816 |
{ %{ $_->unblessed }, description => $_->translated_description, } |
816 |
{ %{ $_->unblessed }, description => $_->translated_description, } |
| 817 |
} @{ Koha::ItemTypes->search->as_list }; |
817 |
} @{ Koha::ItemTypes->search->as_list } |
|
|
818 |
}; |
| 818 |
|
819 |
|
| 819 |
my ( $cnt, @result ); |
820 |
my ( $cnt, @result ); |
| 820 |
foreach my $advanced_srch_type (@advanced_search_types) { |
821 |
foreach my $advanced_srch_type (@advanced_search_types) { |
| 821 |
- |
|
|