View | Details | Raw Unified | Return to bug 15098
Collapse All | Expand All

(-)a/opac/opac-search.pl (-2 / +3 lines)
Lines 215-220 my $itemtypes = GetItemTypesCategorized; Link Here
215
foreach my $itemtype ( keys %{$itemtypes} ) {
215
foreach my $itemtype ( keys %{$itemtypes} ) {
216
    $itemtypes->{$itemtype}->{translated_description} = getitemtypeinfo( $itemtype, 'opac' )->{translated_description};
216
    $itemtypes->{$itemtype}->{translated_description} = getitemtypeinfo( $itemtype, 'opac' )->{translated_description};
217
}
217
}
218
# Load the Type stuff without search categories for facets
219
my $itemtypes_nocategory = GetItemTypes;
218
# the index parameter is different for item-level itemtypes
220
# the index parameter is different for item-level itemtypes
219
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
221
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
220
my @advancedsearchesloop;
222
my @advancedsearchesloop;
Lines 596-602 if ($tag) { Link Here
596
    $pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query);
598
    $pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query);
597
    $pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type);
599
    $pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type);
598
    eval {
600
    eval {
599
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$query_type,$scan,1);
601
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes_nocategory,$query_type,$scan,1);
600
    };
602
    };
601
}
603
}
602
# This sorts the facets into alphabetical order
604
# This sorts the facets into alphabetical order
603
- 

Return to bug 15098