[Koha-patches] [PATCH] Bug 5887 : Adding link for batch modification of biblios

Chris Cormack chrisc at catalyst.net.nz
Fri Jul 29 00:09:02 CEST 2011


From: Paul Poulain <paul.poulain at biblibre.com>

Rebased for TT by Chris C
---
 koha-tmpl/intranet-tmpl/prog/en/js/basket.js       |    6 ++++++
 .../intranet-tmpl/prog/en/modules/basket/basket.tt |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js b/koha-tmpl/intranet-tmpl/prog/en/js/basket.js
index 9946cf7..03dc306 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js
+++ b/koha-tmpl/intranet-tmpl/prog/en/js/basket.js
@@ -433,4 +433,10 @@ $(document).ready(function(){
 	if(basketcount){ updateBasket(basketcount); }
 });
 
+function batchEdit(){
+    var valCookie = readCookie(nameCookie);
+    var strCookie = nameParam + "=" + valCookie;
 
+    var loc = CGIBIN + "tools/batchedit.pl?" + strCookie;
+    window.opener.location = loc;
+}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
index 38b25e2..f4f8e4a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
@@ -81,6 +81,13 @@ function placeHold () {
 
 <div id="toolbar">
 <ul class="toolbar">
+    [% IF CAN_user_tools_batchedit %]
+        <li>
+            <span id="batchedit" class="yui-button yui-link-button"><span class="first-child">
+            <a class="batchedit" href="basket.pl" onclick="batchEdit(); return false;">Batch Edit</a>
+            </span></span>
+       </li>
+    [% END %]
 	<li>
 	    <span id="addchild" class="yui-button yui-link-button"><span class="first-child">
 		[% IF ( verbose ) %]<a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief Display</a>[% ELSE %]<a href="basket.pl" class="detail" onclick="showMore(); return false;">More Details</a>[% END %]
-- 
1.7.4.1



More information about the Koha-patches mailing list