|
Lines 229-234
foreach my $itemtype ( keys %{$itemtypes} ) {
Link Here
|
| 229 |
$itemtypes->{$itemtype}->{translated_description} = |
229 |
$itemtypes->{$itemtype}->{translated_description} = |
| 230 |
( $translated_description ) ? $translated_description : $itemtypes->{$itemtype}->{description}; |
230 |
( $translated_description ) ? $translated_description : $itemtypes->{$itemtype}->{description}; |
| 231 |
} |
231 |
} |
|
|
232 |
my $itemtypes_copy = { %$itemtypes }; #Sometime itemtypes can be corrupted in advanced_srch_type loop |
| 233 |
#Making a copy ensure it is clean |
| 232 |
# Load the Type stuff without search categories for facets |
234 |
# Load the Type stuff without search categories for facets |
| 233 |
my $itemtypes_nocategory = GetItemTypes; |
235 |
my $itemtypes_nocategory = GetItemTypes; |
| 234 |
# the index parameter is different for item-level itemtypes |
236 |
# the index parameter is different for item-level itemtypes |
|
Lines 256-262
foreach my $advanced_srch_type (@advanced_search_types) {
Link Here
|
| 256 |
if ($advanced_srch_type eq 'itemtypes') { |
258 |
if ($advanced_srch_type eq 'itemtypes') { |
| 257 |
# itemtype is a special case, since it's not defined in authorized values |
259 |
# itemtype is a special case, since it's not defined in authorized values |
| 258 |
my @itypesloop; |
260 |
my @itypesloop; |
| 259 |
foreach my $thisitemtype ( sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} } keys %$itemtypes ) { |
261 |
my @sorted_itemtypes = ( sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} } keys %$itemtypes_copy ); |
|
|
262 |
foreach my $thisitemtype ( @sorted_itemtypes ) { |
| 260 |
next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}}; |
263 |
next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}}; |
| 261 |
next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}}; |
264 |
next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}}; |
| 262 |
my %row =( number=>$cnt++, |
265 |
my %row =( number=>$cnt++, |
| 263 |
- |
|
|