Lines 235-244
Link Here
|
235 |
[% IF ( OpacHoldNotes ) %] |
235 |
[% IF ( OpacHoldNotes ) %] |
236 |
<li> |
236 |
<li> |
237 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]"> |
237 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]"> |
238 |
<label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label> |
238 |
<label for="holdnotes_[% bibitemloo.biblionumber %]">Hold notes:</label> |
239 |
<span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span> |
239 |
[% IF bibitemloo.reqholdnotes %] |
240 |
<textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
240 |
<span id="reqholdnotes_[% bibitemloo.biblionumber %]">Please enter additional information on the part/volume/serial issue you request:</span> |
241 |
<input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/> |
241 |
[% END %] |
|
|
242 |
<textarea id="holdnotes_[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]" >[% bibitemloo.holdnotes %]</textarea> |
242 |
</div> |
243 |
</div> |
243 |
</li> |
244 |
</li> |
244 |
[% END # / IF OpacHoldNotes %] |
245 |
[% END # / IF OpacHoldNotes %] |
Lines 403-412
Link Here
|
403 |
<script type="text/javascript"> |
404 |
<script type="text/javascript"> |
404 |
// <![CDATA[ |
405 |
// <![CDATA[ |
405 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
406 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
406 |
var ForceHoldNotesReasons=new Array( |
|
|
407 |
_("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."), |
408 |
"*** Add a new reason above this line ***" ); |
409 |
// NOTE: Do not renumber reasons; this will affect use of existing ones. |
410 |
|
407 |
|
411 |
// Clear the contents of an input field |
408 |
// Clear the contents of an input field |
412 |
$(".clearfield").on("click",function(e){ |
409 |
$(".clearfield").on("click",function(e){ |
Lines 469-483
Link Here
|
469 |
[% END %] |
466 |
[% END %] |
470 |
[% END %] |
467 |
[% END %] |
471 |
|
468 |
|
472 |
// Insert reasons for forced hold notes |
|
|
473 |
$(".forcenotesreason").each(function(){ |
474 |
biblioNum = suffixOf($(this).attr("id"), "_"); |
475 |
var j=$("#notesmandatory_"+biblioNum).val(); |
476 |
if(j>0) { |
477 |
$(this).html(ForceHoldNotesReasons[j-1]); |
478 |
} |
479 |
}); |
480 |
|
481 |
$(".date-format").each(function(){ |
469 |
$(".date-format").each(function(){ |
482 |
if($(this).hasClass("to")){ var op = "to"; } |
470 |
if($(this).hasClass("to")){ var op = "to"; } |
483 |
if($(this).hasClass("from")){ var op = "from"; } |
471 |
if($(this).hasClass("from")){ var op = "from"; } |
Lines 591-601
Link Here
|
591 |
biblionumbers += biblioNum + "/"; |
579 |
biblionumbers += biblioNum + "/"; |
592 |
selections += biblioNum + "/"; |
580 |
selections += biblioNum + "/"; |
593 |
|
581 |
|
|
|
582 |
// Check required hold notes |
583 |
if( $("#reqholdnotes_"+biblioNum).length > 0 && |
584 |
$("#holdnotes_"+biblioNum).val() =='' ) { |
585 |
alert(_("Please enter hold notes")); |
586 |
if( !$("#hold-options-"+biblioNum).is(':visible')) { |
587 |
$("#toggle-hold-options-"+biblioNum).click(); |
588 |
} |
589 |
badBib=biblioNum; |
590 |
return false; |
591 |
} |
592 |
|
594 |
// If the 'specific copy' radio button is checked |
593 |
// If the 'specific copy' radio button is checked |
595 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
594 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
596 |
// Find the selected copy |
595 |
// Find the selected copy |
597 |
var item = $(".checkitem_" + biblioNum + ":checked"); |
596 |
var item = $(".checkitem_" + biblioNum + ":checked"); |
598 |
if ($(item).size() == 0) { |
597 |
if ($(item).size() == 0) { |
|
|
598 |
alert(MSG_NO_ITEM_SELECTED); |
599 |
badBib = biblioNum; |
599 |
badBib = biblioNum; |
600 |
return false; |
600 |
return false; |
601 |
} else { |
601 |
} else { |
Lines 613-620
Link Here
|
613 |
return true; |
613 |
return true; |
614 |
}); |
614 |
}); |
615 |
|
615 |
|
616 |
if (badBib) { |
616 |
if (badBib) { // alert has been raised already |
617 |
alert(MSG_NO_ITEM_SELECTED); |
|
|
618 |
return false; |
617 |
return false; |
619 |
} |
618 |
} |
620 |
|
619 |
|