Merge remote-tracking branch 'origin/new/bug_7548'
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / reserve / request.tt
index 13ea5c4..a257e2e 100644 (file)
@@ -93,7 +93,7 @@ function checkMultiHold() {
  $(document).ready(function() {
     $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
         var itemnumber = this.value;
-        var msg;
+        var msg = '';
 
         switch (override_items[itemnumber].holdallowed) {
             case 0: msg = _( 'This item normally cannot be put on hold.' ); break;
@@ -127,12 +127,14 @@ function checkMultiHold() {
                        $("#requestany").attr("checked","checked");
                }
        });
+
+    $('#hold-request-form').preventDoubleFormSubmit();
  });
 
 // ]]>
 </script>
 </head>
-<body>
+<body id="circ_request" class="catalog">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'circ-search.inc' %]
 
@@ -238,7 +240,7 @@ function checkMultiHold() {
   <fieldset class="rows left">
     <legend>Hold details</legend>
         [% UNLESS ( multi_hold ) %]
-            <form action="placerequest.pl" method="post" onsubmit="return check();" name="form">
+            <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
         [% ELSE %]
             <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
         [% END %]
@@ -389,6 +391,9 @@ function checkMultiHold() {
             <th>Last Location</th>
             <th>Call no.</th>
             <th>Copy no.</th>
+            [% IF itemdata_enumchron %]
+            <th>Vol no.</th>
+            [% END %]
             <th>Information</th>
         </tr>
     [% FOREACH itemloo IN bibitemloo.itemloop %]
@@ -427,6 +432,11 @@ function checkMultiHold() {
             [% itemloo.itemcallnumber %]
             </td>
             <td>[% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %]&nbsp;[% END %]</td>
+            [% IF itemdata_enumchron %]
+            <td>
+            [% itemloo.enumchron %]
+            </td>
+            [% END %]
             <td>
                [% IF ( itemloo.onloan ) %]
             <span class="checkedout">Due [% itemloo.date_due %]</span>