|
Lines 236-244
Link Here
|
| 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>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 |
<textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]" required >[% bibitemloo.holdnotes %]</textarea> |
|
|
242 |
[% ELSE %] |
| 243 |
<textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
| 244 |
[% END %] |
| 242 |
</div> |
245 |
</div> |
| 243 |
</li> |
246 |
</li> |
| 244 |
[% END # / IF OpacHoldNotes %] |
247 |
[% END # / IF OpacHoldNotes %] |
|
Lines 403-412
Link Here
|
| 403 |
<script type="text/javascript"> |
406 |
<script type="text/javascript"> |
| 404 |
// <![CDATA[ |
407 |
// <![CDATA[ |
| 405 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
408 |
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 |
|
409 |
|
| 411 |
// Clear the contents of an input field |
410 |
// Clear the contents of an input field |
| 412 |
$(".clearfield").on("click",function(e){ |
411 |
$(".clearfield").on("click",function(e){ |
|
Lines 469-483
Link Here
|
| 469 |
[% END %] |
468 |
[% END %] |
| 470 |
[% END %] |
469 |
[% END %] |
| 471 |
|
470 |
|
| 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(){ |
471 |
$(".date-format").each(function(){ |
| 482 |
if($(this).hasClass("to")){ var op = "to"; } |
472 |
if($(this).hasClass("to")){ var op = "to"; } |
| 483 |
if($(this).hasClass("from")){ var op = "from"; } |
473 |
if($(this).hasClass("from")){ var op = "from"; } |