Lines 577-583
if ($tag) {
Link Here
|
577 |
$pasarParams .= '&count=' . uri_escape_utf8($results_per_page); |
577 |
$pasarParams .= '&count=' . uri_escape_utf8($results_per_page); |
578 |
$pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query); |
578 |
$pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query); |
579 |
$pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); |
579 |
$pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); |
580 |
my $itemtypes_nocategory = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } }; |
580 |
my $itemtypes_nocategory = { |
|
|
581 |
map { |
582 |
$_->{itemtype} => |
583 |
{ %$_, description => db_t( 'itemtype', $_->{itemtype} ), } |
584 |
} @{ Koha::ItemTypes->search->unblessed } |
585 |
}; |
586 |
|
581 |
eval { |
587 |
eval { |
582 |
($error, $results_hashref, $facets) = $searcher->search_compat($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,undef,$itemtypes_nocategory,$query_type,$scan,1); |
588 |
($error, $results_hashref, $facets) = $searcher->search_compat($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,undef,$itemtypes_nocategory,$query_type,$scan,1); |
583 |
}; |
589 |
}; |
Lines 638-644
for (my $i=0;$i<@servers;$i++) {
Link Here
|
638 |
} |
644 |
} |
639 |
); |
645 |
); |
640 |
my $quoted_results_hashref; |
646 |
my $quoted_results_hashref; |
641 |
my $itemtypes_nocategory = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
647 |
my $itemtypes_nocategory = { |
|
|
648 |
map { |
649 |
$_->{itemtype} => |
650 |
{ %$_, description => db_t( 'itemtype', $_->{itemtype} ), } |
651 |
} @{ Koha::ItemTypes->search->unblessed } |
652 |
}; |
653 |
|
642 |
eval { |
654 |
eval { |
643 |
($error, $quoted_results_hashref, $facets) = $searcher->search_compat($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,undef,$itemtypes_nocategory,$query_type,$scan,1); |
655 |
($error, $quoted_results_hashref, $facets) = $searcher->search_compat($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,undef,$itemtypes_nocategory,$query_type,$scan,1); |
644 |
}; |
656 |
}; |
645 |
- |
|
|