Lines 288-294
sub SimpleSearch {
Link Here
|
288 |
( undef, $results_hashref, \@facets_loop ) = getRecords ( |
288 |
( undef, $results_hashref, \@facets_loop ) = getRecords ( |
289 |
|
289 |
|
290 |
$koha_query, $simple_query, $sort_by_ref, $servers_ref, |
290 |
$koha_query, $simple_query, $sort_by_ref, $servers_ref, |
291 |
$results_per_page, $offset, $expanded_facet, $branches, |
291 |
$results_per_page, $offset, $expanded_facet, $branches,$itemtypes, |
292 |
$query_type, $scan |
292 |
$query_type, $scan |
293 |
); |
293 |
); |
294 |
|
294 |
|
Lines 302-308
See verbse embedded documentation.
Link Here
|
302 |
sub getRecords { |
302 |
sub getRecords { |
303 |
my ( |
303 |
my ( |
304 |
$koha_query, $simple_query, $sort_by_ref, $servers_ref, |
304 |
$koha_query, $simple_query, $sort_by_ref, $servers_ref, |
305 |
$results_per_page, $offset, $expanded_facet, $branches, |
305 |
$results_per_page, $offset, $expanded_facet, $branches,$itemtypes, |
306 |
$query_type, $scan |
306 |
$query_type, $scan |
307 |
) = @_; |
307 |
) = @_; |
308 |
|
308 |
|
Lines 556-561
sub getRecords {
Link Here
|
556 |
$facet_label_value = "*"; |
556 |
$facet_label_value = "*"; |
557 |
} |
557 |
} |
558 |
} |
558 |
} |
|
|
559 |
# if it's a itemtype, label by the name, not the code, |
560 |
if ( $link_value =~ /itype/ ) { |
561 |
if (defined $itemtypes |
562 |
&& ref($itemtypes) eq "HASH" |
563 |
&& defined $itemtypes->{$one_facet} |
564 |
&& ref ($itemtypes->{$one_facet}) eq "HASH") |
565 |
{ |
566 |
$facet_label_value = |
567 |
$itemtypes->{$one_facet}->{'description'}; |
568 |
} |
569 |
} |
559 |
|
570 |
|
560 |
# but we're down with the whole label being in the link's title. |
571 |
# but we're down with the whole label being in the link's title. |
561 |
push @this_facets_array, { |
572 |
push @this_facets_array, { |