Lines 236-248
foreach my $advanced_srch_type (@advanced_search_types) {
Link Here
|
236 |
if ($advanced_srch_type eq 'itemtypes') { |
236 |
if ($advanced_srch_type eq 'itemtypes') { |
237 |
# itemtype is a special case, since it's not defined in authorized values |
237 |
# itemtype is a special case, since it's not defined in authorized values |
238 |
my @itypesloop; |
238 |
my @itypesloop; |
239 |
foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { |
239 |
foreach my $thisitemtype ( sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} } keys %$itemtypes ) { |
240 |
next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}}; |
240 |
next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}}; |
241 |
next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}}; |
241 |
next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}}; |
242 |
my %row =( number=>$cnt++, |
242 |
my %row =( number=>$cnt++, |
243 |
ccl => "$itype_or_itemtype,phr", |
243 |
ccl => "$itype_or_itemtype,phr", |
244 |
code => $thisitemtype, |
244 |
code => $thisitemtype, |
245 |
description => $itemtypes->{$thisitemtype}->{'description'}, |
245 |
description => $itemtypes->{$thisitemtype}->{translated_description}, |
246 |
imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ), |
246 |
imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ), |
247 |
cat => $itemtypes->{$thisitemtype}->{'iscat'}, |
247 |
cat => $itemtypes->{$thisitemtype}->{'iscat'}, |
248 |
hideinopac => $itemtypes->{$thisitemtype}->{'hideinopac'}, |
248 |
hideinopac => $itemtypes->{$thisitemtype}->{'hideinopac'}, |