Lines 151-156
Link Here
|
151 |
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form"> |
151 |
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form"> |
152 |
<input type="hidden" name="place_reserve" value="1"/> |
152 |
<input type="hidden" name="place_reserve" value="1"/> |
153 |
<!-- These values are set dynamically by js --> |
153 |
<!-- These values are set dynamically by js --> |
|
|
154 |
<input type="hidden" name="biblionumbers" id="biblionumbers"> |
154 |
<div id="bigloop"> |
155 |
<div id="bigloop"> |
155 |
|
156 |
|
156 |
[% FOREACH bibitemloo IN bibitemloop %] |
157 |
[% FOREACH bibitemloo IN bibitemloop %] |
Lines 616-622
Link Here
|
616 |
total += parseInt($("input[name='checkitem_'"+biblioNum+"]:checked").length); |
617 |
total += parseInt($("input[name='checkitem_'"+biblioNum+"]:checked").length); |
617 |
total -= 2; |
618 |
total -= 2; |
618 |
} else { |
619 |
} else { |
619 |
total += parseInt($("select[name='holds_to_place_count_"+biblioNum+"']").val()); |
620 |
total += parseInt($("input[name='holds_to_place_count_"+biblioNum+"']").val()); |
620 |
} |
621 |
} |
621 |
}); |
622 |
}); |
622 |
return total; |
623 |
return total; |
Lines 657-662
Link Here
|
657 |
|
658 |
|
658 |
// When 'Place Hold' button is clicked |
659 |
// When 'Place Hold' button is clicked |
659 |
$(".placehold").click(function(){ |
660 |
$(".placehold").click(function(){ |
|
|
661 |
var biblionumbers = ""; |
660 |
if (total_requested() + [% reserves_count | html %] > [% maxreserves | html %]) { |
662 |
if (total_requested() + [% reserves_count | html %] > [% maxreserves | html %]) { |
661 |
alert(MSG_MAX_HOLDS_EXCEEDED); |
663 |
alert(MSG_MAX_HOLDS_EXCEEDED); |
662 |
return false; |
664 |
return false; |
Lines 671-676
Link Here
|
671 |
var badBib = null; |
673 |
var badBib = null; |
672 |
$("input[name='biblionumbers']:checked").each(function() { |
674 |
$("input[name='biblionumbers']:checked").each(function() { |
673 |
var biblioNum = $(this).val(); |
675 |
var biblioNum = $(this).val(); |
|
|
676 |
biblionumbers += biblioNum + "/"; |
674 |
|
677 |
|
675 |
// If required hold note is empty, make it visible |
678 |
// If required hold note is empty, make it visible |
676 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
679 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
Lines 695-700
Link Here
|
695 |
if (badBib) { // alert has been raised already |
698 |
if (badBib) { // alert has been raised already |
696 |
return false; |
699 |
return false; |
697 |
} |
700 |
} |
|
|
701 |
$("#biblionumbers").val(biblionumbers); |
698 |
|
702 |
|
699 |
return true; |
703 |
return true; |
700 |
}); |
704 |
}); |