Bugzilla – Attachment 8054 Details for
Bug 6488
opachiddenitems not working in master
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED_OFF] Followup patch restoring search results numbering
patch.txt (text/plain), 3.07 KB, created by
Marcel de Rooy
on 2012-03-07 12:39:44 UTC
(
hide
)
Description:
[SIGNED_OFF] Followup patch restoring search results numbering
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2012-03-07 12:39:44 UTC
Size:
3.07 KB
patch
obsolete
>From a562aae00ba0a1a4f14c4f33157f9e16871e1102 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 7 Mar 2012 16:53:09 +1300 >Subject: [PATCH] Bug 6488: Display OPAC search result count conditional to OpacHiddenItems syspref >Content-Type: text/plain; charset="utf-8" > >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 ;) >--- > .../opac-tmpl/prog/en/modules/opac-results.tt | 1 + > opac/opac-search.pl | 8 ++++++-- > 2 files changed, 7 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >index 22c9272..26a97a4 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >@@ -381,6 +381,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 ) %] >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 3e3995d..a70b152 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -625,8 +625,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, > ); > if (C4::Context->preference("OPACLocalCoverImages")){ > $template->param(OPACLocalCoverImages => 1); >-- >1.6.0.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6488
:
5312
|
5314
|
5315
|
5351
|
5477
|
5767
|
6310
|
6687
|
6783
|
7284
|
7386
|
7745
|
7748
|
7957
|
8045
| 8054