From 545573d33318a37e5f58f053acc3a5cf09a9260c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 24 Apr 2013 11:40:18 -0300 Subject: [PATCH] Bug 10107 - opacbookbag shouldn't prevent from adding items to a list in the OPAC MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This bug is present in master and (at least 3.8.x, where we spotted it). The patch makes adding items, to a list from the results page, not rely only on opacbookbag syspref but also 'virtualshelves'. Regards To+ PS: Thanks Graciela Galli for reporting. Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Template only patch, works nicely. Test plan copied from bug report: - Disable the opacbookbag syspref - Login in the OPAC - Create a list (I tested a private one) - Search in your db for some biblios. - Choose some and add them to the created list - Go to your users's page, to the my lists tab - Your list is empty. Signed-off-by: Jared Camins-Esakov --- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 192fab04f3..0704f064b3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -186,7 +186,7 @@ $(document).ready(function(){ $("span.clearall").html(""+_("Clear all")+"<\/a>"); $("span.checkall").html(""+_("Select all")+"<\/a>"); [% IF ( opacbookbag ) %]$("span.addto").html(param1);[% ELSE %][% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]$("span.addto").html(param1);[% END %][% END %][% END %] -[% IF ( opacbookbag ) %] +[% IF ( opacbookbag || virtualshelves ) %] [% IF ( virtualshelves ) %] $("#addto").change(function(){ cartList(); -- 2.39.5