[Koha-patches] [PATCH] (bug #3771) delete multiple holds

Wagner, Jane jwagner at ptfs.com
Thu Nov 5 16:46:12 CET 2009


Nahuel, see Bug 3093.  The feature does work in current head (although
there are some questions).  Is your patch meant for the stable version?

Jane Wagner
Library Systems Analyst
PTFS Inc.
Content Management and Library Solutions
6400 Goldsboro Road, Suite 200
Bethesda, MD  20817
(301) 654-8088 x 151
jwagner at ptfs.com


-----Original Message-----
From: koha-patches-bounces at lists.koha.org
[mailto:koha-patches-bounces at lists.koha.org] On Behalf Of Nahuel
ANGELINETTI
Sent: Thursday, November 05, 2009 10:14 AM
To: patches at koha.org
Subject: [Koha-patches] [PATCH] (bug #3771) delete multiple holds

This delete an non-implemented feature for multiple holds in opac search
results.
---
 .../opac-tmpl/prog/en/modules/opac-results.tmpl    |   39
+-------------------
 1 files changed, 1 insertions(+), 38 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
index d7aba2f..265d773 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
@@ -14,32 +14,6 @@
 <script type="text/javascript">
 //<![CDATA[
 
-function holdMultiple() {
-    var checkedBiblioNums = ""; // Separated by "/"
-    var checkedCount = 0;
-    if(document.bookbag_form.biblionumber.length > 0) {
-        for (var i=0; i < document.bookbag_form.biblionumber.length;
i++) {
-            if (document.bookbag_form.biblionumber[i].checked) {
-                checkedBiblioNums +=
(document.bookbag_form.biblionumber[i].value + "/");
-                checkedCount++;
-            }
-        }
-    }
-
-    if (checkedCount > 0) {
-        holdBiblioNums(checkedBiblioNums);
-    } else {
-        alert(MSG_NO_RECORD_SELECTED);   
-    }
-}
-
-function holdBiblioNums(numList) {
-    // numList: biblio numbers separated by "/"
-    $("#hold_form_biblios").attr("value", numList);
-    $("#hold_form").submit();
-}
-
-
 function tagSelected() {
     var checkedBoxes = $(".searchresults :checkbox:checked");
     if ($(checkedBoxes).size() == 0) {
@@ -148,15 +122,7 @@ $("span.addto").html(param1);
         $("#bookbag_form").unCheckCheckboxes();
         return false;
     });
-<!-- TMPL_IF NAME="RequestOnOpac" -->
-  <!-- TMPL_IF NAME="opacuserlogin" -->
-    $("#placehold").html("<input class=\"submit\" type=\"submit\"
value=\""+_("Place Hold")+"\"/>");
-	$("#placehold").find("input:submit").click(function(){
-        holdMultiple();
-		return false;
-	});
-  <!-- /TMPL_IF -->
-<!-- /TMPL_IF -->
+
     $("#holdDetails").hide();
 
     <!-- TMPL_IF NAME="query_desc" -->
@@ -308,9 +274,6 @@ $("span.addto").html(param1);
             <!-- TMPL_IF EXPR="opacbookbag || virtualshelves" -->
     	    	<span class="addto"></span>
             <!-- /TMPL_IF -->
-		    <span id="placehold"><!-- input class="submit"
type="submit" value="Place Hold"/ --></span>
-            <div id="holdDetails"></div>
-
 			<!-- TMPL_IF NAME="TagsEnabled" -->
             <!-- TMPL_IF NAME="TagsInputOnList" -->
                 <span id="tagsel_span"></span>
-- 
1.6.3.3

_______________________________________________
Koha-patches mailing list
Koha-patches at lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches



More information about the Koha-patches mailing list