|
Lines 5-13
Link Here
|
| 5 |
<script type="text/javascript"> |
5 |
<script type="text/javascript"> |
| 6 |
// <![CDATA[ |
6 |
// <![CDATA[ |
| 7 |
var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection."); |
7 |
var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection."); |
|
|
8 |
var MSG_EMPTY_MAND_NOTE = _("Please enter mandatory hold notes."); |
| 8 |
var ForceHoldNotesReasons=new Array( |
9 |
var ForceHoldNotesReasons=new Array( |
| 9 |
_("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific copy information may be helpful."), |
10 |
_("This title consists of multiple volumes/parts. Please indicate which part you need. Looking at the specific copy information may be helpful."), // R 1 |
| 10 |
"*** Add a new reason above this line ***" ); // NOTE: Do not renumber reasons; this will affect use of existing ones. |
11 |
"This title has one item.", // R 2 (meant only for combining with R 1; no translation) |
|
|
12 |
"UNIMARC test: Title contains 'test'.", // R 3 (unimarc testing; no translation) |
| 13 |
_("This title represents a collection. Please indicate which part you need."), // R 4 (MARC21 leader: collection) |
| 14 |
"*** Add a new reason above this line ***" ); // NOTE: Do not renumber reasons; this will affect use of existing ones. Add the _() for translation! |
| 11 |
|
15 |
|
| 12 |
function prefixOf (s, tok) { |
16 |
function prefixOf (s, tok) { |
| 13 |
var index = s.indexOf(tok); |
17 |
var index = s.indexOf(tok); |
|
Lines 133-143
Link Here
|
| 133 |
|
137 |
|
| 134 |
// Find the items with the 'Hold' box checked |
138 |
// Find the items with the 'Hold' box checked |
| 135 |
var badBib = null; |
139 |
var badBib = null; |
|
|
140 |
var emptyMandNote=0; |
| 136 |
$(".confirmjs:checked").each(function() { |
141 |
$(".confirmjs:checked").each(function() { |
| 137 |
var biblioNum = $(this).val(); |
142 |
var biblioNum = $(this).val(); |
| 138 |
biblionumbers += biblioNum + "/"; |
143 |
biblionumbers += biblioNum + "/"; |
| 139 |
selections += biblioNum + "/"; |
144 |
selections += biblioNum + "/"; |
| 140 |
|
145 |
|
|
|
146 |
// Check mandatory notes |
| 147 |
if($("#notesmandatory_"+biblioNum).val()>0) { |
| 148 |
if($.trim($("#notes_"+biblioNum).val())==='') { |
| 149 |
emptyMandNote= biblioNum; |
| 150 |
return false; |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 141 |
// If the 'specific copy' radio button is checked |
154 |
// If the 'specific copy' radio button is checked |
| 142 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
155 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
| 143 |
// Find the selected copy |
156 |
// Find the selected copy |
|
Lines 164-169
Link Here
|
| 164 |
alert(MSG_NO_COPY_SELECTED); |
177 |
alert(MSG_NO_COPY_SELECTED); |
| 165 |
return false; |
178 |
return false; |
| 166 |
} |
179 |
} |
|
|
180 |
else if(emptyMandNote>0) { |
| 181 |
alert(MSG_EMPTY_MAND_NOTE); |
| 182 |
$(".notesrow").hide(); |
| 183 |
$("#notesrow_"+emptyMandNote).show(); |
| 184 |
return false; |
| 185 |
} |
| 167 |
|
186 |
|
| 168 |
$("#selections").val(selections); |
187 |
$("#selections").val(selections); |
| 169 |
$("#biblionumbers").val(biblionumbers); |
188 |
$("#biblionumbers").val(biblionumbers); |
|
Lines 445-451
Link Here
|
| 445 |
<td colspan="[% itemtable_colspan %]"> |
464 |
<td colspan="[% itemtable_colspan %]"> |
| 446 |
<label for="holdnotes">Hold notes:</label> |
465 |
<label for="holdnotes">Hold notes:</label> |
| 447 |
<span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span> |
466 |
<span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span> |
| 448 |
<textarea name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
467 |
<textarea id="notes_[% bibitemloo.biblionumber %]" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
| 449 |
<input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/> |
468 |
<input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/> |
| 450 |
</td> |
469 |
</td> |
| 451 |
</tr> |
470 |
</tr> |