Lines 396-432
Link Here
|
396 |
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> |
396 |
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> |
397 |
</form> |
397 |
</form> |
398 |
</li> |
398 |
</li> |
399 |
<li class="bookable"> |
399 |
[% IF Koha.Preference('EnableBooking') %] |
400 |
<span class="label"> Bookable: </span> |
400 |
<li class="bookable"> |
401 |
[% IF ( CAN_user_circulate ) %] |
401 |
<span class="label"> Bookable: </span> |
402 |
<form action="updateitem.pl" method="post"> |
402 |
[% IF ( CAN_user_circulate ) %] |
403 |
[% INCLUDE 'csrf-token.inc' %] |
403 |
<form action="updateitem.pl" method="post"> |
404 |
<input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" /> |
404 |
[% INCLUDE 'csrf-token.inc' %] |
405 |
<input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /> |
405 |
<input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" /> |
406 |
<input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" /> |
406 |
<input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /> |
407 |
<select name="bookable"> |
407 |
<input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" /> |
408 |
[% IF ITEM_DAT.bookable == 1 %] |
408 |
<select name="bookable"> |
409 |
<option value="">Follow item type</option> |
409 |
[% IF ITEM_DAT.bookable == 1 %] |
410 |
<option value="1" selected="selected">Yes</option> |
410 |
<option value="">Follow item type</option> |
411 |
<option value="0">No</option> |
411 |
<option value="1" selected="selected">Yes</option> |
412 |
[% ELSIF ITEM_DAT.bookable == 0 %] |
412 |
<option value="0">No</option> |
413 |
<option value="">Follow item type</option> |
413 |
[% ELSIF ITEM_DAT.bookable == 0 %] |
414 |
<option value="1">Yes</option> |
414 |
<option value="">Follow item type</option> |
415 |
<option value="0" selected="selected">No</option> |
415 |
<option value="1">Yes</option> |
416 |
[% ELSE %] |
416 |
<option value="0" selected="selected">No</option> |
417 |
<option value="" selected="selected">Follow item type</option> |
417 |
[% ELSE %] |
418 |
<option value="1">Yes</option> |
418 |
<option value="" selected="selected">Follow item type</option> |
419 |
<option value="0">No</option> |
419 |
<option value="1">Yes</option> |
420 |
[% END %] |
420 |
<option value="0">No</option> |
421 |
</select> |
421 |
[% END %] |
422 |
<input type="hidden" name="op" value="cud-set_bookable" /> |
422 |
</select> |
423 |
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> |
423 |
<input type="hidden" name="op" value="cud-set_bookable" /> |
424 |
</form> |
424 |
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> |
425 |
[% ELSE %] |
425 |
</form> |
426 |
[% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] |
426 |
[% ELSE %] |
427 |
[% END %] |
427 |
[% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] |
428 |
<span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span> |
428 |
[% END %] |
429 |
</li> |
429 |
<span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span> |
|
|
430 |
</li> |
431 |
[% END %] |
430 |
</ol> |
432 |
</ol> |
431 |
<!-- /.bibliodetails --> |
433 |
<!-- /.bibliodetails --> |
432 |
</div> |
434 |
</div> |
Lines 584-595
Link Here
|
584 |
dayjs.extend(window.dayjs_plugin_isSameOrBefore); |
586 |
dayjs.extend(window.dayjs_plugin_isSameOrBefore); |
585 |
</script> |
587 |
</script> |
586 |
[% INCLUDE 'js-patron-format.inc' %] |
588 |
[% INCLUDE 'js-patron-format.inc' %] |
587 |
[% INCLUDE 'calendar.inc' %] |
|
|
588 |
[% INCLUDE 'select2.inc' %] |
589 |
[% Asset.js("js/catalog.js") | $raw %] |
589 |
[% Asset.js("js/catalog.js") | $raw %] |
590 |
[% Asset.js("js/modals/place_booking.js") | $raw %] |
|
|
591 |
[% Asset.js("js/browser.js") | $raw %] |
590 |
[% Asset.js("js/browser.js") | $raw %] |
592 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
591 |
[% Asset.js("js/checkout_renewals_modal.js") | $raw %] |
|
|
592 |
|
593 |
[% IF Koha.Preference('EnableBooking') %] |
594 |
[% INCLUDE 'calendar.inc' %] |
595 |
[% INCLUDE 'select2.inc' %] |
596 |
[% Asset.js("js/modals/place_booking.js") | $raw %] |
597 |
[% END %] |
598 |
|
599 |
|
593 |
[% IF ( Koha.Preference('CatalogConcerns') ) %] |
600 |
[% IF ( Koha.Preference('CatalogConcerns') ) %] |
594 |
<script> |
601 |
<script> |
595 |
/* Set a variable needed by add_catalog_concern.js */ |
602 |
/* Set a variable needed by add_catalog_concern.js */ |
596 |
- |
|
|