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