From 985a1bae1b05aaf13f2892926d483ac4f8f0ade0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 19 Mar 2012 14:11:35 +0100 Subject: [PATCH] Bug 7732: Restoring "More lists" in the Add-to combo of OPAC Search Results 1) More lists -> More Lists in order to be consistent with context. 2) More Lists is put just before New List at the end of the combo list. (More logical place than between your and public lists.) 3) More Lists is only shown when the number of private or public lists exceeds 9; this is a pragmatic and hard-coded approach for now. Only if there are exactly 10 lists, this does not really add a list. But who cares about that? 4) Resolves a potential bug with an [% END %] at the wrong place. Moved it after the finishing optgroup tag. Signed-off-by: Nicole C. Engard Performed a search in the OPAC without the patch and More Lists does not appear. Applied patch and perfomred OPAC search again and the More Lists option reappears. Signed off. Signed-off-by: Paul Poulain --- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 60f1ae8040..c8a39261e8 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -105,10 +105,12 @@ $(document).ready(function(){ [% END %][% IF ( virtualshelves ) %][% IF ( loggedinusername ) %][% IF ( addbarshelves ) %] param1 += "";[% FOREACH addbarshelvesloo IN addbarshelvesloop %] param1 += ""[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+""[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"