Bug 6488: Display OPAC search result count conditional to OpacHiddenItems syspref
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Works as advertised. Amended this patch for a small spelling issue: supress->suppress. Could not suppress it ;) Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
a7f1342f9e
commit
8836d1eda5
|
|
@ -380,6 +380,7 @@ $(document).ready(function(){
|
|||
<td class="select selectcol">[% IF ( opacbookbag ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% ELSE %]
|
||||
[% IF ( virtualshelves ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% ELSE %]
|
||||
[% IF ( RequestOnOpac ) %][% UNLESS ( SEARCH_RESULT.norequests ) %][% IF ( opacuserlogin ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% END %][% END %][% END %][% END %][% END %]</td>
|
||||
<td class="select selectcol">[% UNLESS suppress_result_number %][% SEARCH_RESULT.result_number %].[% END %]</td>
|
||||
|
||||
[% UNLESS ( item_level_itypes ) %]
|
||||
[% UNLESS ( noItemTypeImages ) %]
|
||||
|
|
|
|||
|
|
@ -613,8 +613,12 @@ for (my $i=0;$i<@servers;$i++) {
|
|||
}
|
||||
$template->param(stopwords_removed => "@$stopwords_removed") if $stopwords_removed;
|
||||
$template->param(results_per_page => $results_per_page);
|
||||
$template->param(SEARCH_RESULTS => \@newresults,
|
||||
OPACItemsResultsDisplay => (C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0),
|
||||
my $hide = C4::Context->preference('OpacHiddenItems');
|
||||
$hide = ($hide =~ m/\S/) if $hide; # Just in case it has some spaces/new lines
|
||||
$template->param(
|
||||
SEARCH_RESULTS => \@newresults,
|
||||
OPACItemsResultsDisplay => (C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0),
|
||||
suppress_result_number => $hide,
|
||||
);
|
||||
## Build the page numbers on the bottom of the page
|
||||
my @page_numbers;
|
||||
|
|
|
|||
Loading…
Reference in New Issue