X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=opac%2Fopac-search.pl;h=778c7ca84f94cd0a728a55549dd12ae1a0a3b360;hb=d31c1603cca45c4f4b5b9fa8b2a1785e81f6da05;hp=e2725fa80526a108c6d36b307c3e1134de9785f1;hpb=b00c36989f2c480263478d358e4fcf670d047331;p=koha.git diff --git a/opac/opac-search.pl b/opac/opac-search.pl index e2725fa805..778c7ca84f 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -84,7 +84,7 @@ else { authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), } ); -if ($template_name = 'opac-results.tmpl') { +if ($template_name eq 'opac-results.tmpl') { $template->param('COinSinOPACResults' => C4::Context->preference('COinSinOPACResults')); } @@ -164,8 +164,8 @@ my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes"); if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { - my %row =( number=>$cnt++, - ccl => $itype_or_itemtype, + my %row =( number=>$cnt++, + ccl => "$itype_or_itemtype,phr", code => $thisitemtype, selected => $selected, description => $itemtypes->{$thisitemtype}->{'description'},