Lines 33-39
Link Here
|
33 |
}); |
33 |
}); |
34 |
// Hides all 'specific copy' table rows on load. |
34 |
// Hides all 'specific copy' table rows on load. |
35 |
$(".copiesrow").hide(); |
35 |
$(".copiesrow").hide(); |
36 |
$(".notesrow").hide(); |
|
|
37 |
|
36 |
|
38 |
// Insert reasons for forced hold notes |
37 |
// Insert reasons for forced hold notes |
39 |
$(".forcenotesreason").each(function(){ |
38 |
$(".forcenotesreason").each(function(){ |
Lines 44-65
Link Here
|
44 |
} |
43 |
} |
45 |
}); |
44 |
}); |
46 |
|
45 |
|
47 |
$("#place_on_hdr").show(); |
46 |
$("#place_on_hdr,.place_on_type,.toggle-hold-options").show(); |
48 |
$(".place_on_type").show(); |
47 |
$(".hold-options").hide(); |
|
|
48 |
$(".holddatefrom,.holddateto").prop("readOnly", true); |
49 |
|
50 |
$(".date-format").each(function(){ |
51 |
if($(this).hasClass("to")){ var op = "to"; } |
52 |
if($(this).hasClass("from")){ var op = "from"; } |
53 |
var bibNum = $(this).data("biblionumber"); |
54 |
$(this).html("<a href=\"#\" class=\"clear-date\" data-op=\"" + op + "\" id=\"clear" + bibNum + "\">" + _("Clear date") + "</a>"); |
55 |
}); |
56 |
|
57 |
$(".clear-date").on("click",function(e){ |
58 |
e.preventDefault(); |
59 |
var fieldID = this.id.replace("clear",""); |
60 |
var op = $(this).data("op"); |
61 |
$("#" + op + fieldID).val(""); |
62 |
}); |
49 |
|
63 |
|
50 |
// Replace non-JS single-selection with multi-selection capability. |
64 |
// Replace non-JS single-selection with multi-selection capability. |
51 |
$(".reserve_mode").val("multi"); |
65 |
$(".reserve_mode").val("multi"); |
52 |
$(".confirm_nonjs").remove(); |
66 |
$(".confirm_nonjs").remove(); |
53 |
$(".confirmjs_hold").each(function(){ |
67 |
$(".confirmjs_hold").each(function(){ |
54 |
var bib = $(this).attr("title"); |
68 |
var bib = $(this).attr("title"); |
55 |
var html = "<input type =\"checkbox\" class=\"confirmjs\" checked=\"checked\""; |
69 |
var html = "<label><input type =\"checkbox\" class=\"confirmjs\" checked=\"checked\""; |
56 |
html += "value=\"" + bib + "\"/>"; |
70 |
html += "value=\"" + bib + "\"/> " + _("Place a hold on") + " </label> "; |
57 |
$(this).html(html); |
71 |
$(this).html(html); |
58 |
}); |
72 |
}); |
59 |
$(".confirmjs_nohold").each(function(){ |
73 |
$(".confirmjs_nohold").each(function(){ |
60 |
var bib = $(this).attr("title"); |
74 |
var bib = $(this).attr("title"); |
61 |
var html = "<input type =\"checkbox\" class=\"confirmjs\" disabled=\"disabled\""; |
75 |
var html = "<label><input type =\"checkbox\" class=\"confirmjs\" disabled=\"disabled\""; |
62 |
html += "value=\"" + bib + "\"/>"; |
76 |
html += "value=\"" + bib + "\"/>" + _("Place a hold on: ") + "</label>"; |
63 |
$(this).html(html); |
77 |
$(this).html(html); |
64 |
}); |
78 |
}); |
65 |
|
79 |
|
Lines 115-126
Link Here
|
115 |
$(".copiesrow").hide(); |
129 |
$(".copiesrow").hide(); |
116 |
}); |
130 |
}); |
117 |
|
131 |
|
118 |
// Show or hide holds notes |
|
|
119 |
$(".shownotes").click(function(){ |
120 |
biblioNum = suffixOf($(this).attr("id"), "_"); |
121 |
$("#notesrow_"+biblioNum).toggle(); |
122 |
}); |
123 |
|
124 |
// When 'Place Hold' button is clicked |
132 |
// When 'Place Hold' button is clicked |
125 |
$(".placehold").click(function(){ |
133 |
$(".placehold").click(function(){ |
126 |
var biblionumbers = ""; |
134 |
var biblionumbers = ""; |
Lines 170-175
Link Here
|
170 |
|
178 |
|
171 |
return true; |
179 |
return true; |
172 |
}); |
180 |
}); |
|
|
181 |
$(".toggle-hold-options").on("click",function(e){ |
182 |
e.preventDefault(); |
183 |
toggleLink = $(this); |
184 |
var optionsID = this.id.replace("toggle-hold-options-",""); |
185 |
var copiesRow = $("#copiesrow_"+optionsID) |
186 |
$("#hold-options-"+optionsID).toggle(0, function() { |
187 |
if( copiesRow.is(':visible') ){ |
188 |
$("#reqany_"+optionsID).prop("checked",true); |
189 |
copiesRow.hide(); |
190 |
} |
191 |
toggleLink.text($(this).is(':visible') ? _("Hide options") : _("Show more options")); |
192 |
}); |
193 |
}); |
194 |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
[% FOREACH bibitemloo IN bibitemloop %] |
200 |
[% IF ( bibitemloo.holdable ) %] |
201 |
// http://jqueryui.com/demos/datepicker/#date-range |
202 |
var dates[% bibitemloo.biblionumber %] = $( "#from[% bibitemloo.biblionumber %], #to[% bibitemloo.biblionumber %]" ).datepicker({ |
203 |
minDate: 1, |
204 |
changeMonth: true, |
205 |
numberOfMonths: 1, |
206 |
onSelect: function( selectedDate ) { |
207 |
var option = this.id == "from[% bibitemloo.biblionumber %]" ? "minDate" : "maxDate", |
208 |
instance = $( this ).data( "datepicker" ); |
209 |
date = $.datepicker.parseDate( |
210 |
instance.settings.dateFormat || |
211 |
$.datepicker._defaults.dateFormat, |
212 |
selectedDate, instance.settings ); |
213 |
dates[% bibitemloo.biblionumber %].not( this ).datepicker( "option", option, date ); |
214 |
} |
215 |
}); |
216 |
[% END %] |
217 |
[% END %] |
173 |
|
218 |
|
174 |
}); |
219 |
}); |
175 |
// ]]> |
220 |
// ]]> |
Lines 255-463
Link Here
|
255 |
<input type="hidden" name="biblionumbers" id="biblionumbers"/> |
300 |
<input type="hidden" name="biblionumbers" id="biblionumbers"/> |
256 |
<input type="hidden" name="selecteditems" id="selections"/> |
301 |
<input type="hidden" name="selecteditems" id="selections"/> |
257 |
<div id="bigloop"> |
302 |
<div id="bigloop"> |
258 |
<table id="bibitemloop"> |
|
|
259 |
[% UNLESS ( none_available ) %]<tr> |
260 |
<th>Hold</th> |
261 |
<th>Title</th> |
262 |
[% UNLESS ( item_level_itypes ) %] |
263 |
<th>Item type</th> |
264 |
[% END %] |
265 |
[% IF showholds && showpriority %] |
266 |
<th>Holds and priority</th> |
267 |
[% ELSIF showholds %] |
268 |
<th>Holds</th> |
269 |
[% ELSIF showpriority %] |
270 |
<th>Priority</th> |
271 |
[% END %] |
272 |
[% IF ( reserve_in_future ) %] |
273 |
<th>Hold starts on date</th> |
274 |
[% END %] |
275 |
<th>Hold not needed after</th> |
276 |
[% IF ( OpacHoldNotes ) %]<th>Notes</th>[% END %] |
277 |
[% IF ( OPACItemHolds ) %] |
278 |
<th id="place_on_hdr" style="display:none">Place on</th> |
279 |
[% END %] |
280 |
[% UNLESS ( singleBranchMode ) %] |
281 |
[% IF ( choose_branch ) %] |
282 |
<th>Pickup location</th> |
283 |
[% END %] |
284 |
[% END %] |
285 |
</tr>[% ELSE %]<tr><th colspan="[% itemtable_colspan + 1 %]">Title</th></tr>[% END %] |
286 |
|
303 |
|
287 |
[% FOREACH bibitemloo IN bibitemloop %] |
304 |
[% FOREACH bibitemloo IN bibitemloop %] |
288 |
<tr> |
305 |
<div class="holdrow"> |
289 |
[% IF ( bibitemloo.holdable ) %] |
|
|
290 |
<td class="hold"> |
291 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
292 |
<input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/> |
293 |
<span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]"></span> |
294 |
<span class="confirm_nonjs"> |
295 |
<input type="radio" class="confirmbox checkitem [% bibitemloo.checkitem_bib %]" |
296 |
name="[% bibitemloo.checkitem_bib %]" checked="checked" |
297 |
id="[% bibitemloo.checkitem_bib %]" |
298 |
value="any" /> |
299 |
<label class="confirm_label" for="[% bibitemloo.checkitem_bib %]">Next available copy</label> |
300 |
</span> |
301 |
</td> |
302 |
[% ELSE %] |
303 |
[% UNLESS ( none_available ) %]<td class="hold"> </td>[% END %] |
304 |
[% END %] |
305 |
[% IF ( bibitemloo.holdable ) %]<td class="title">[% ELSE %]<td class="title" colspan="[% itemtable_colspan + 1 %]">[% END %] |
306 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber %]">[% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a> |
307 |
[% IF ( bibitemloo.author ) %], by [% bibitemloo.author %][% END %] |
308 |
|
306 |
|
309 |
[% UNLESS ( bibitemloo.holdable ) %] |
307 |
<p> |
310 |
|
308 |
|
311 |
[% IF ( bibitemloo.already_reserved ) %] |
309 |
[% IF ( bibitemloo.holdable ) %] |
312 |
<div class="bibmessage">You have already requested this title.</div> |
310 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
|
|
311 |
<input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/> |
312 |
<span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]" style="padding:.3em"></span> |
313 |
<span class="confirm_nonjs"> |
314 |
<input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber %]" |
315 |
name="[% bibitemloo.biblionumber %]" checked="checked" |
316 |
id="single_[% bibitemloo.biblionumber %]" |
317 |
value="any" /> |
318 |
<label class="confirm_label" for="single_[% bibitemloo.biblionumber %]">Place a hold on </label> |
319 |
</span> |
313 |
[% ELSE %] |
320 |
[% ELSE %] |
314 |
[% UNLESS ( bibitemloo.bib_available ) %] |
321 |
[% END %] |
315 |
<div class="bibmessage">No available items.</div> |
322 |
|
316 |
[% ELSE %] |
323 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber %]">[% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a> |
317 |
[% IF ( bibitemloo.already_patron_possession ) %] |
324 |
[% IF ( bibitemloo.author ) %], by [% bibitemloo.author %][% END %]</p> |
318 |
<div class="bibmessage">This title cannot be requested because it's already in your possession.</div> |
325 |
|
|
|
326 |
|
327 |
|
328 |
|
329 |
[% UNLESS ( bibitemloo.holdable ) %] |
330 |
[% IF ( bibitemloo.already_reserved ) %] |
331 |
<div class="bibmessage">You have already requested this title.</div> |
319 |
[% ELSE %] |
332 |
[% ELSE %] |
320 |
<div class="bibmessage">This title cannot be requested.</div> |
333 |
[% UNLESS ( bibitemloo.bib_available ) %] |
|
|
334 |
<div class="bibmessage">No available items.</div> |
335 |
[% ELSE %] |
336 |
[% IF ( bibitemloo.already_patron_possession ) %] |
337 |
<div class="bibmessage">This title cannot be requested because it's already in your possession.</div> |
338 |
[% ELSE %] |
339 |
<div class="bibmessage">This title cannot be requested.</div> |
340 |
[% END %] |
341 |
[% END %] |
321 |
[% END %] |
342 |
[% END %] |
322 |
[% END %] |
|
|
323 |
[% END %] |
343 |
[% END %] |
324 |
|
344 |
|
|
|
345 |
[% IF ( bibitemloo.holdable ) %] |
346 |
<fieldset class="rows"> |
347 |
<ul> |
348 |
<!-- HOLDABLE --> |
349 |
[% UNLESS ( item_level_itypes ) %] |
350 |
<li class="itype"> |
351 |
<span class="label">Item type: </span> |
352 |
[% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %] |
353 |
[% bibitemloo.description %] |
354 |
</li> |
355 |
[% END %] |
356 |
[% IF showholds || showpriority %] |
357 |
<li class="priority"> |
358 |
<span class="label">Holds and priority: </span> |
359 |
[% IF showpriority %] [% bibitemloo.rank %] [% END %] |
360 |
[% IF showholds && showpriority %] out of [% END %] |
361 |
[% IF showholds %] [% bibitemloo.reservecount %] [% END %] |
362 |
</li> |
363 |
[% END %] |
364 |
|
325 |
|
365 |
|
326 |
[% END %] |
|
|
327 |
|
366 |
|
328 |
</td> |
367 |
[% UNLESS ( singleBranchMode ) %] |
329 |
[% IF ( bibitemloo.holdable ) %] |
368 |
[% IF ( bibitemloo.holdable ) %] |
330 |
<!-- HOLDABLE --> |
369 |
[% IF ( choose_branch ) %] |
331 |
[% UNLESS ( item_level_itypes ) %] |
370 |
<li class="branch"> |
332 |
<td class="itype"> |
371 |
<label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label> |
333 |
[% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %] |
372 |
[% UNLESS ( bibitemloo.holdable ) %] |
334 |
[% bibitemloo.description %] |
373 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> |
335 |
</td> |
374 |
[% FOREACH branchloo IN bibitemloo.branchloop %] |
|
|
375 |
[% IF ( branchloo.selected ) %] |
376 |
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option> |
377 |
[% ELSE %] |
378 |
<option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option> |
379 |
[% END %] |
380 |
[% END %] |
381 |
</select> |
382 |
[% ELSE %] |
383 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
384 |
[% FOREACH branchloo IN bibitemloo.branchloop %] |
385 |
[% IF ( branchloo.selected ) %] |
386 |
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option> |
387 |
[% ELSE %] |
388 |
<option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option> |
389 |
[% END %] |
390 |
[% END %] |
391 |
</select> |
392 |
[% END %] |
393 |
</li> |
394 |
[% END %] |
395 |
[% END %] |
396 |
[% END %] |
397 |
</ul> |
398 |
<a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber %]" style="display:none;" href="#">Show more options</a> |
399 |
<div id="hold-options-[% bibitemloo.biblionumber %]" class="hold-options"> |
400 |
<ul> |
401 |
[% IF ( reserve_in_future ) %] |
402 |
<li><label for="from[% bibitemloo.biblionumber %]">Hold starts on date:</label> |
403 |
<input name="reserve_date_[% bibitemloo.biblionumber %]" id="from[% bibitemloo.biblionumber %]" size="10" class="holddatefrom"/> |
404 |
<span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span> |
405 |
</li> |
406 |
[% END %] |
407 |
|
408 |
[% END %] |
409 |
[% IF ( bibitemloo.holdable ) %] |
410 |
<li> |
411 |
<label for="to[% bibitemloo.biblionumber %]">Hold not needed after:</label> |
412 |
<input name="expiration_date_[% bibitemloo.biblionumber %]" id="to[% bibitemloo.biblionumber %]" size="10" class="holddateto" /> |
413 |
<span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span> |
414 |
</li> |
336 |
[% END %] |
415 |
[% END %] |
337 |
[% IF showholds || showpriority %] |
416 |
|
338 |
<td class="priority"> |
417 |
[% IF ( OpacHoldNotes && bibitemloo.holdable ) %] |
339 |
[% IF showpriority %] [% bibitemloo.rank %] [% END %] |
418 |
<li> |
340 |
[% IF showholds && showpriority %] out of [% END %] |
419 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]"> |
341 |
[% IF showholds %] [% bibitemloo.reservecount %] [% END %] |
420 |
<label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label> |
342 |
</td> |
421 |
<span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span> |
|
|
422 |
<textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
423 |
<input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/> |
424 |
</div> |
425 |
</li> |
343 |
[% END %] |
426 |
[% END %] |
344 |
[% IF ( reserve_in_future ) %] |
427 |
|
345 |
<td class="reserve_date"> |
|
|
346 |
<input name="reserve_date_[% bibitemloo.biblionumber %]" id="from" size="10" class="datepickerfrom"/> |
347 |
<script type="text/javascript"> |
348 |
//<![CDATA[ |
349 |
$("#reserve_date_[% bibitemloo.biblionumber %]").attr( 'readonly', 'readonly' ); |
350 |
//]]> |
351 |
</script> |
352 |
<p style="margin:.3em 2em;"> |
353 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('reserve_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p> |
354 |
</td>[% END %] |
355 |
|
356 |
[% END %] |
357 |
[% IF ( bibitemloo.holdable ) %]<td class="expiration_date"> |
358 |
<input name="expiration_date_[% bibitemloo.biblionumber %]" id="to" size="10" readonly="readonly" class="datepickerto" /> |
359 |
<p style="margin:.3em 2em;"> |
360 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p> |
361 |
</td>[% END %] |
362 |
|
363 |
[% IF ( OpacHoldNotes ) %][% IF ( bibitemloo.holdable ) %]<td><input type="button" id="shownotes_[% bibitemloo.biblionumber %]" class="shownotes" value="Edit notes"/></td>[% END %][% END %] |
364 |
|
365 |
[% IF ( bibitemloo.holdable ) %] |
366 |
<!-- HOLD ABLE --> |
367 |
[% IF ( OPACItemHolds ) %] |
368 |
<!-- ITEM HOLDS --> |
369 |
<td class="place_on_type" style="display:none"> |
370 |
<ul> |
371 |
<li> |
372 |
[% UNLESS ( bibitemloo.holdable ) %] |
373 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
374 |
id="reqany_[% bibitemloo.biblionumber %]" |
375 |
class="selectany" |
376 |
value="Any" |
377 |
disabled="disabled" |
378 |
/> |
379 |
[% ELSE %] |
380 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
381 |
id="reqany_[% bibitemloo.biblionumber %]" |
382 |
class="selectany" |
383 |
value="Any" |
384 |
checked="checked" |
385 |
/> |
386 |
[% END %] |
387 |
<label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label> |
388 |
</li> |
389 |
<li> |
390 |
[% UNLESS ( bibitemloo.holdable ) %] |
391 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
392 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
393 |
class="selectspecific" |
394 |
disabled="disabled" |
395 |
value="Specific" |
396 |
/> |
397 |
[% ELSE %] |
398 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
399 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
400 |
class="selectspecific" |
401 |
value="Specific" |
402 |
/> |
403 |
[% END %] |
404 |
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label> |
405 |
</li> |
406 |
</ul> |
407 |
</td> |
408 |
[% END %][% END %] |
409 |
|
410 |
[% UNLESS ( singleBranchMode ) %] |
411 |
[% IF ( bibitemloo.holdable ) %] |
428 |
[% IF ( bibitemloo.holdable ) %] |
412 |
[% IF ( choose_branch ) %] |
429 |
<!-- HOLD ABLE --> |
413 |
<td class="branch"> |
430 |
[% IF ( OPACItemHolds ) %] |
414 |
[% UNLESS ( bibitemloo.holdable ) %] |
431 |
<!-- ITEM HOLDS --> |
415 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> |
432 |
|
416 |
[% FOREACH branchloo IN bibitemloo.branchloop %] |
433 |
<li class="radio"> |
417 |
[% IF ( branchloo.selected ) %] |
434 |
[% UNLESS ( bibitemloo.holdable ) %] |
418 |
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option> |
435 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
419 |
[% ELSE %] |
436 |
id="reqany_[% bibitemloo.biblionumber %]" |
420 |
<option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option> |
437 |
class="selectany" |
421 |
[% END %] |
438 |
value="Any" |
422 |
[% END %] |
439 |
disabled="disabled" |
423 |
</select> |
440 |
/> |
424 |
[% ELSE %] |
441 |
[% ELSE %] |
425 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
442 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
426 |
[% FOREACH branchloo IN bibitemloo.branchloop %] |
443 |
id="reqany_[% bibitemloo.biblionumber %]" |
427 |
[% IF ( branchloo.selected ) %] |
444 |
class="selectany" |
428 |
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option> |
445 |
value="Any" |
429 |
[% ELSE %] |
446 |
checked="checked" |
430 |
<option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option> |
447 |
/> |
431 |
[% END %] |
448 |
[% END %] |
432 |
[% END %] |
|
|
433 |
</select> |
434 |
[% END %] |
435 |
</td> |
436 |
[% END %] |
437 |
[% END %] |
438 |
[% END %] |
439 |
</tr> |
440 |
|
449 |
|
441 |
[% IF ( OpacHoldNotes ) %] |
450 |
<label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label> |
442 |
[% IF ( bibitemloo.holdable ) %] |
451 |
[% UNLESS ( bibitemloo.holdable ) %] |
443 |
<tr class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]"> |
452 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
444 |
<td> </td> |
453 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
445 |
<td colspan="[% itemtable_colspan %]"> |
454 |
class="selectspecific" |
446 |
<label for="holdnotes">Hold notes:</label> |
455 |
disabled="disabled" |
447 |
<span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span> |
456 |
value="Specific" |
448 |
<textarea name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea> |
457 |
/> |
449 |
<input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/> |
458 |
[% ELSE %] |
450 |
</td> |
459 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
451 |
</tr> |
460 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
452 |
[% END %] |
461 |
class="selectspecific" |
453 |
[% END %] |
462 |
value="Specific" |
|
|
463 |
/> |
464 |
[% END %] |
465 |
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label> |
466 |
</li> |
454 |
|
467 |
|
|
|
468 |
[% END %] |
469 |
[% END %] |
470 |
</ul> |
471 |
</div> |
472 |
</fieldset> |
473 |
<br style="clear:both" /> |
455 |
[% IF ( OPACItemHolds ) %] |
474 |
[% IF ( OPACItemHolds ) %] |
456 |
[% IF ( bibitemloo.holdable ) %] |
475 |
[% IF ( bibitemloo.holdable ) %] |
457 |
<tr class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]"> |
476 |
|
458 |
<td> </td> |
477 |
<table class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]"> |
459 |
<td colspan="[% itemtable_colspan %]"> |
|
|
460 |
<table> |
461 |
<caption>Select a specific copy:</caption> |
478 |
<caption>Select a specific copy:</caption> |
462 |
<tr> |
479 |
<tr> |
463 |
<th>Copy</th> |
480 |
<th>Copy</th> |
Lines 530-547
Link Here
|
530 |
</tr> |
547 |
</tr> |
531 |
[% END %] |
548 |
[% END %] |
532 |
</table> |
549 |
</table> |
533 |
</td> |
550 |
</div> |
534 |
</tr> |
551 |
|
535 |
[% END %]<!-- bib_available --> |
552 |
[% END %]<!-- bib_available --> |
|
|
553 |
|
536 |
[% END %]<!-- OPACItemHolds --> |
554 |
[% END %]<!-- OPACItemHolds --> |
537 |
[% END %] |
555 |
[% END %] |
538 |
</table><!-- bibitemloop --> |
556 |
|
539 |
[% END %] <!-- if message --> |
557 |
[% END %] <!-- if message --> |
540 |
</div><!-- bigloop --> |
558 |
</div><!-- bigloop --> |
541 |
|
559 |
|
542 |
[% UNLESS ( message ) %] |
560 |
[% UNLESS ( message ) %] |
543 |
[% UNLESS ( none_available ) %] |
561 |
[% UNLESS ( none_available ) %] |
544 |
<input type="submit" value="Place Hold" class="placehold" /> |
562 |
<input type="submit" value="Place hold" class="placehold" /> |
545 |
[% END %] |
563 |
[% END %] |
546 |
[% END %] |
564 |
[% END %] |
547 |
|
565 |
|
548 |
- |
|
|