From fe03c32e22d51deb09765539b9d6291273da8515 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 22 Mar 2012 07:35:37 +0100 Subject: [PATCH] Bug 7786 Adding More Lists-option to the Add-to combo of staff search results Signed-off-by: Paul Poulain --- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index eec01131f9..bed9a842f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -41,6 +41,11 @@ function cartList(){ Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); } return false; + } else if($("#addto").find("option:selected").attr("value") == "morelists"){ + if (vShelfAdd()) { + Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vShelfAdd()); + } + return false; } if($("#addto").find("option:selected").attr("value") == "addtocart"){ addMultiple(); @@ -64,8 +69,11 @@ $(".addtocart").show(); param1 += ""[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"