Bugzilla – Attachment 8045 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]
follow-up patch
0001-bug_6488-dispaly-OPAC-search-result-count-conditiona.patch (text/plain), 2.86 KB, created by
Srdjan Jankovic
on 2012-03-07 04:04:24 UTC
(
hide
)
Description:
follow-up patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2012-03-07 04:04:24 UTC
Size:
2.86 KB
patch
obsolete
>From 74de336107842809c65055cad0f6a66aa029c58b 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: dispaly OPAC search result count conditional to > OpacHiddenItems syspref > >--- > .../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..4d1f609 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 supress_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..26d1a59 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), >+ supress_result_number => $hide, > ); > if (C4::Context->preference("OPACLocalCoverImages")){ > $template->param(OPACLocalCoverImages => 1); >-- >1.6.5 >
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