From 4293a26637dafa20fef3e352534032bf5c251d2c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 4 Oct 2011 11:48:32 -0400 Subject: [PATCH] Suggested change to Bug 5725 - Batch modifications for Biblios This modification changes the "Batch edit" button to a link in the "Selected items: " set alongside "add to a list," "place hold," etc. Instead of always batch editing all items, the user can select individual ones to be passed to the batch edit page. --- koha-tmpl/intranet-tmpl/prog/en/js/basket.js | 12 ++++---- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 31 +++++++++----------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js b/koha-tmpl/intranet-tmpl/prog/en/js/basket.js index 432480a..5acb1d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/basket.js @@ -443,9 +443,11 @@ $(document).ready(function(){ }); function batchEdit(){ - var valCookie = readCookie(nameCookie); - var strCookie = nameParam + "=" + valCookie; - - var loc = CGIBIN + "tools/batchedit.pl?" + strCookie; - window.opener.location = loc; + var items = document.getElementById('records').value; + if(items){ + var loc = CGIBIN + "tools/batchedit.pl?" + nameParam + "=" + items; + window.opener.location = loc; + } else { + alert(MSG_NO_RECORD_SELECTED); + } } 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 bb8d310..045d687 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -13,16 +13,6 @@