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

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

Return to bug 15098