Lines 212-217
$(document).ready(function() {
Link Here
|
212 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div> |
212 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div> |
213 |
[% END %] |
213 |
[% END %] |
214 |
|
214 |
|
|
|
215 |
[% IF alert.HIGHHOLDS %] |
216 |
<div class="dialog message">High demand item. Loan period <i>not</i> shortened to [% alert.HIGHHOLDS.duration %] days (due [% alert.HIGHHOLDS.returndate %]) due to override.</div> |
217 |
[% END %] |
218 |
|
215 |
[% IF ( NEEDSCONFIRMATION ) %] |
219 |
[% IF ( NEEDSCONFIRMATION ) %] |
216 |
<div class="yui-g"> |
220 |
<div class="yui-g"> |
217 |
|
221 |
|
Lines 304-310
$(document).ready(function() {
Link Here
|
304 |
</li> |
308 |
</li> |
305 |
[% END %] |
309 |
[% END %] |
306 |
|
310 |
|
307 |
[% IF HIGHHOLDS %] |
311 |
[% IF HIGHHOLDS %] |
308 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li> |
312 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li> |
309 |
[% END %] |
313 |
[% END %] |
310 |
|
314 |
|
Lines 319-334
$(document).ready(function() {
Link Here
|
319 |
</ul> |
323 |
</ul> |
320 |
|
324 |
|
321 |
[% IF HIGHHOLDS %] |
325 |
[% IF HIGHHOLDS %] |
322 |
<script language="JavaScript" type="text/javascript"> |
326 |
<script language="JavaScript" type="text/javascript"> |
323 |
$(document).ready(function() { |
327 |
$(document).ready(function() { |
324 |
$("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]'); |
328 |
[% IF !override_high_holds %] |
325 |
if ('[% duedatespec %]' === '') { |
329 |
$("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]'); |
326 |
$("input[name=restoreduedatespec]:hidden").val('highholds_empty'); |
330 |
if ('[% duedatespec %]' === '') { |
327 |
} else { |
331 |
$("input[name=restoreduedatespec]:hidden").val('highholds_empty'); |
328 |
$("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]'); |
332 |
} else { |
329 |
} |
333 |
$("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]'); |
330 |
}); |
334 |
} |
331 |
</script> |
335 |
[% END %] |
|
|
336 |
|
337 |
$("#override_high_holds_tmp").on( 'change', function() { |
338 |
if ( this.checked ) { |
339 |
$("input[name=duedatespec]:hidden").val(''); |
340 |
} |
341 |
}); |
342 |
}); |
343 |
</script> |
332 |
[% END %] |
344 |
[% END %] |
333 |
|
345 |
|
334 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
346 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
Lines 337-342
$(document).ready(function() {
Link Here
|
337 |
|
349 |
|
338 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
350 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
339 |
|
351 |
|
|
|
352 |
[% IF HIGHHOLDS %] |
353 |
<p> |
354 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
355 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
356 |
</p> |
357 |
[% END %] |
358 |
|
340 |
[% IF ( RESERVED ) %] |
359 |
[% IF ( RESERVED ) %] |
341 |
<p> |
360 |
<p> |
342 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
361 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
Lines 356-361
$(document).ready(function() {
Link Here
|
356 |
<input type="hidden" name="barcode" value="[% barcode |html %]" /> |
375 |
<input type="hidden" name="barcode" value="[% barcode |html %]" /> |
357 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
376 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
358 |
<input type="hidden" name="issueconfirmed" value="1" /> |
377 |
<input type="hidden" name="issueconfirmed" value="1" /> |
|
|
378 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds %]"/> |
359 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
379 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
360 |
[% IF ( INVALID_DATE ) %] |
380 |
[% IF ( INVALID_DATE ) %] |
361 |
<p> |
381 |
<p> |
Lines 644-649
No patron matched <span class="ex">[% message %]</span>
Link Here
|
644 |
[% END %] |
664 |
[% END %] |
645 |
|
665 |
|
646 |
<label for="auto_renew">Automatic renewal</label> |
666 |
<label for="auto_renew">Automatic renewal</label> |
|
|
667 |
|
668 |
[% IF Koha.Preference('decreaseLoanHighHolds') %] |
669 |
[% IF NEEDSCONFIRMATION %] |
670 |
[% IF override_high_holds %] |
671 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/> |
672 |
[% ELSE %] |
673 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/> |
674 |
[% END %] |
675 |
[% ELSE %] |
676 |
[% IF override_high_holds %] |
677 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" /> |
678 |
[% ELSE %] |
679 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" /> |
680 |
[% END %] |
681 |
[% END %] |
682 |
<label for="override_high_holds">Don't decrease loan length based on holds</label> |
683 |
[% END %] |
647 |
</div> |
684 |
</div> |
648 |
[% END %] |
685 |
[% END %] |
649 |
|
686 |
|