Lines 436-463
Link Here
|
436 |
<div class="dialog alert hide holdalert"> |
436 |
<div class="dialog alert hide holdalert"> |
437 |
</div> |
437 |
</div> |
438 |
|
438 |
|
439 |
<fieldset class="rows"> |
439 |
[% UNLESS ( multi_hold ) %] |
440 |
<legend>Hold details</legend> |
440 |
<fieldset class="rows"> |
441 |
<form action="placerequest.pl" method="post" name="form" id="hold-request-form"> |
441 |
<legend>Hold details</legend> |
|
|
442 |
<form action="placerequest.pl" method="post" name="form" id="hold-request-form"> |
442 |
|
443 |
|
443 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
444 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
444 |
<input type="hidden" name="type" value="str8" /> |
445 |
<input type="hidden" name="type" value="str8" /> |
445 |
|
446 |
|
446 |
[% FOREACH biblionumber IN biblionumbers %] |
447 |
[% FOREACH biblionumber IN biblionumbers %] |
447 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
448 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
448 |
[% END %] |
|
|
449 |
[% IF ( multi_hold ) %] |
450 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
451 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
452 |
<input type="hidden" name="request" value="any"/> |
453 |
[% FOREACH biblioloo IN biblioloop %] |
454 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
455 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
456 |
[% END %] |
449 |
[% END %] |
457 |
[% ELSE %] |
|
|
458 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
450 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
459 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
451 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
460 |
[% END # /IF multi_hold %] |
|
|
461 |
|
452 |
|
462 |
<ol> |
453 |
<ol> |
463 |
<li> |
454 |
<li> |
Lines 468-530
Link Here
|
468 |
Not defined yet |
459 |
Not defined yet |
469 |
[% END %] |
460 |
[% END %] |
470 |
</li> |
461 |
</li> |
471 |
|
462 |
<li> |
472 |
[% UNLESS ( multi_hold ) %] |
463 |
<span class="label">Estimated priority:</span> |
473 |
<li> |
464 |
<strong>[% fixedRank | html %]</strong> |
474 |
<span class="label">Estimated priority:</span> |
465 |
</li> |
475 |
<strong>[% fixedRank | html %]</strong> |
|
|
476 |
</li> |
477 |
[% END %] |
478 |
|
479 |
<li> |
466 |
<li> |
480 |
<label for="holdnotes">Notes:</label> |
467 |
<label for="holdnotes">Notes:</label> |
481 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
468 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
482 |
</li> |
469 |
</li> |
483 |
<li> |
470 |
<li> |
484 |
<label for="pickup">Pickup at:</label> |
471 |
<label for="pickup">Pickup at:</label> |
485 |
[% UNLESS ( multi_hold ) %] |
|
|
486 |
<select name="pickup" id="pickup" |
472 |
<select name="pickup" id="pickup" |
487 |
data-biblio-id="[% biblio.biblionumber | html %]" |
473 |
data-biblio-id="[% biblio.biblionumber | html %]" |
488 |
data-patron-id="[% patron.borrowernumber | html %]" |
474 |
data-patron-id="[% patron.borrowernumber | html %]" |
489 |
data-pickup-location-source="biblio"> |
475 |
data-pickup-location-source="biblio"> |
490 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
476 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
491 |
[% ELSE %] |
|
|
492 |
<select name="pickup" id="pickup_multi" data-patron-id="[% patron.borrowernumber | html %]"> |
493 |
<option value="" selected="selected"></option> |
494 |
[% FOREACH pickup_location IN multi_pickup_locations %] |
495 |
<option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option> |
496 |
[% END %] |
497 |
[% END %] |
498 |
</select> |
477 |
</select> |
499 |
</li> |
478 |
</li> |
500 |
|
479 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
501 |
[% UNLESS ( multi_hold ) %] |
480 |
<li> |
502 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
481 |
<label for="itemtype">Request specific item type:</label> |
503 |
<li> |
482 |
<select name="itemtype" id="itemtype"> |
504 |
<label for="itemtype">Request specific item type:</label> |
483 |
<option value="">Any item type</option> |
505 |
<select name="itemtype" id="itemtype"> |
484 |
[%- FOREACH itemtype IN available_itemtypes %] |
506 |
<option value="">Any item type</option> |
485 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
507 |
[%- FOREACH itemtype IN available_itemtypes %] |
486 |
[%- END %] |
508 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
487 |
</select> |
509 |
[%- END %] |
488 |
</li> |
510 |
</select> |
489 |
[% END %] |
511 |
</li> |
|
|
512 |
[% END %] |
513 |
[% END # /UNLESS multi_hold %] |
514 |
|
515 |
[% IF ( reserve_in_future ) %] |
490 |
[% IF ( reserve_in_future ) %] |
516 |
<li> |
491 |
<li> |
517 |
<label for="from">Hold starts on date:</label> |
492 |
<label for="from">Hold starts on date:</label> |
518 |
<input id="reserve_date" name="reserve_date" id="from" size="10" type="text" data-date_to="expiration_date" class="flatpickr" data-flatpickr-futuredate="true" /> |
493 |
<input id="reserve_date" name="reserve_date" id="from" size="10" type="text" data-date_to="expiration_date" class="flatpickr" data-flatpickr-futuredate="true" /> |
519 |
</li> |
494 |
</li> |
520 |
[% END %] |
495 |
[% END %] |
521 |
|
|
|
522 |
<li> |
523 |
<label for="to">Hold expires on date:</label> |
524 |
<input id="expiration_date" name="expiration_date" id="to" size="10" type="text" class="flatpickr" data-flatpickr-futuredate="true" /> |
525 |
</li> |
526 |
|
527 |
[% UNLESS ( multi_hold ) %] |
528 |
<li> |
496 |
<li> |
529 |
<label for="requestany">Hold next available item </label> |
497 |
<label for="requestany">Hold next available item </label> |
530 |
[% IF force_hold_level == 'item' %] |
498 |
[% IF force_hold_level == 'item' %] |
Lines 546-791
Link Here
|
546 |
[% ELSE %] |
514 |
[% ELSE %] |
547 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
515 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
548 |
[% END %] |
516 |
[% END %] |
549 |
[% END # /UNLESS multi_hold %] |
|
|
550 |
|
517 |
|
|
|
518 |
<li> |
519 |
<label for="to">Hold expires on date:</label> |
520 |
<input id="expiration_date" name="expiration_date" id="to" size="10" type="text" class="flatpickr" data-flatpickr-futuredate="true" /> |
521 |
</li> |
551 |
<li id="non_priority_list_item"> |
522 |
<li id="non_priority_list_item"> |
552 |
<label for="non_priority">Non priority hold:</label> |
523 |
<label for="non_priority">Non priority hold:</label> |
553 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
524 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
554 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
525 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
555 |
</li> |
526 |
</li> |
556 |
</ol> |
527 |
</ol> |
557 |
|
528 |
<fieldset class="action"> |
558 |
[% UNLESS ( multi_hold ) %] |
529 |
[% IF ( patron.borrowernumber ) %] |
559 |
<fieldset class="action"> |
530 |
[% IF ( override_required ) %] |
560 |
[% IF ( patron.borrowernumber ) %] |
531 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
561 |
[% IF ( override_required ) %] |
532 |
[% ELSIF ( none_available ) %] |
562 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
533 |
<button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button> |
563 |
[% ELSIF ( none_available ) %] |
534 |
[% ELSE %] |
564 |
<button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button> |
535 |
<button type="submit" class="btn btn-default">Place hold</button> |
565 |
[% ELSE %] |
|
|
566 |
<button type="submit" class="btn btn-default">Place hold</button> |
567 |
[% END %] |
568 |
[% END %] |
536 |
[% END %] |
569 |
</fieldset> |
537 |
[% END %] |
|
|
538 |
</fieldset> |
570 |
|
539 |
|
571 |
[% biblio = biblioloop.0 %] |
540 |
[% biblio = biblioloop.0 %] |
572 |
|
541 |
|
573 |
<ol> |
542 |
<ol> |
574 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
543 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
575 |
<li> |
544 |
<li> |
576 |
<span class="label">Item typeX:</span> |
545 |
<span class="label">Item typeX:</span> |
577 |
[% biblio.itemtype.translated_description | html %] |
546 |
[% biblio.itemtype.translated_description | html %] |
578 |
</li> |
547 |
</li> |
579 |
[% END %] |
548 |
[% END %] |
580 |
|
549 |
|
581 |
[% IF ( biblio.biblioitem.publicationyear ) %] |
550 |
[% IF ( biblio.biblioitem.publicationyear ) %] |
582 |
<li> |
551 |
<li> |
583 |
<span class="label">Publication year:</span> |
552 |
<span class="label">Publication year:</span> |
584 |
[% biblio.biblioitem.publicationyear | html %] |
553 |
[% biblio.biblioitem.publicationyear | html %] |
585 |
</li> |
554 |
</li> |
586 |
[% END %] |
555 |
[% END %] |
587 |
</ol> |
556 |
</ol> |
588 |
|
557 |
|
589 |
<h2 style="padding: 0 1em;"> |
558 |
<h2 style="padding: 0 1em;"> |
590 |
Place a hold on a specific item |
559 |
Place a hold on a specific item |
591 |
[% IF force_hold_level == 'item' %] |
560 |
[% IF force_hold_level == 'item' %] |
592 |
<span class="error"><em>(Required)</em></span> |
561 |
<span class="error"><em>(Required)</em></span> |
593 |
[% END %] |
562 |
[% END %] |
594 |
</h2> |
563 |
</h2> |
595 |
|
564 |
|
596 |
<table id="requestspecific"> |
565 |
<table id="requestspecific"> |
597 |
<thead> |
566 |
<thead> |
598 |
<tr> |
567 |
<tr> |
599 |
<th>Hold</th> |
568 |
<th>Hold</th> |
600 |
<th>Allowed pickup locations</th> |
569 |
<th>Allowed pickup locations</th> |
601 |
[% IF Koha.Preference('item-level_itypes') %] |
570 |
[% IF Koha.Preference('item-level_itypes') %] |
602 |
<th>Item type</th> |
571 |
<th>Item type</th> |
603 |
[% END %] |
572 |
[% END %] |
604 |
<th>Barcode</th> |
573 |
<th>Barcode</th> |
605 |
<th>Home library</th> |
574 |
<th>Home library</th> |
606 |
<th>Last location</th> |
575 |
<th>Last location</th> |
607 |
[% IF itemdata_ccode %] |
576 |
[% IF itemdata_ccode %] |
608 |
<th>Collection</th> |
577 |
<th>Collection</th> |
609 |
[% END %] |
578 |
[% END %] |
610 |
<th>Call number</th> |
579 |
<th>Call number</th> |
611 |
<th>Copy number</th> |
580 |
<th>Copy number</th> |
612 |
[% IF itemdata_enumchron %] |
581 |
[% IF itemdata_enumchron %] |
613 |
<th>Vol no.</th> |
582 |
<th>Vol no.</th> |
614 |
[% END %] |
583 |
[% END %] |
615 |
<th>Information</th> |
584 |
<th>Information</th> |
616 |
</tr> |
585 |
</tr> |
617 |
</thead> |
586 |
</thead> |
618 |
<tbody> |
587 |
<tbody> |
619 |
[% SET selected = 0 %] |
588 |
[% SET selected = 0 %] |
620 |
[% FOREACH itemloo IN biblio.itemloop %] |
589 |
[% FOREACH itemloo IN biblio.itemloop %] |
621 |
[% UNLESS ( itemloo.hide ) %] |
590 |
[% UNLESS ( itemloo.hide ) %] |
622 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
591 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
623 |
<td> |
592 |
<td> |
624 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
593 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
625 |
<span class="error"> |
594 |
<span class="error"> |
626 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
595 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
627 |
Hold must be record level |
596 |
Hold must be record level |
628 |
</span> |
597 |
</span> |
629 |
[% ELSIF ( itemloo.available ) %] |
598 |
[% ELSIF ( itemloo.available ) %] |
630 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" /> |
599 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" /> |
631 |
[% ELSIF ( itemloo.override ) %] |
600 |
[% ELSIF ( itemloo.override ) %] |
632 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" /> |
601 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" /> |
633 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
602 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
634 |
[% ELSE %] |
603 |
[% ELSE %] |
635 |
<span class="error"> |
604 |
<span class="error"> |
636 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
605 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
637 |
[% IF itemloo.not_holdable %] |
606 |
[% IF itemloo.not_holdable %] |
638 |
[% IF itemloo.not_holdable == 'damaged' %] |
607 |
[% IF itemloo.not_holdable == 'damaged' %] |
639 |
<span>Item damaged</span> |
608 |
<span>Item damaged</span> |
640 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
609 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
641 |
<span>Age restricted</span> |
610 |
<span>Age restricted</span> |
642 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
611 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
643 |
<span>Exceeded max holds per record</span> |
612 |
<span>Exceeded max holds per record</span> |
644 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
613 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
645 |
<span>Daily hold limit reached for patron</span> |
614 |
<span>Daily hold limit reached for patron</span> |
646 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
615 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
647 |
<span>Too many holds</span> |
616 |
<span>Too many holds</span> |
648 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
617 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
649 |
<span>Not holdable</span> |
618 |
<span>Not holdable</span> |
650 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
619 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
651 |
<span>Patron is from different library</span> |
620 |
<span>Patron is from different library</span> |
652 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
621 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
653 |
<span>Cannot place hold from patron's library</span> |
622 |
<span>Cannot place hold from patron's library</span> |
654 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
623 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
655 |
<span>Patron already has hold for this item</span> |
624 |
<span>Patron already has hold for this item</span> |
656 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
625 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
657 |
<span>Cannot be transferred to pickup library</span> |
626 |
<span>Cannot be transferred to pickup library</span> |
658 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
627 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
659 |
<span>Only pickup locations within the same hold group are allowed</span> |
628 |
<span>Only pickup locations within the same hold group are allowed</span> |
660 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
629 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
661 |
<span>No reserves are allowed on this item</span> |
630 |
<span>No reserves are allowed on this item</span> |
662 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
631 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
663 |
<span>Library is not a pickup location</span> |
632 |
<span>Library is not a pickup location</span> |
664 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
633 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
665 |
<span>No valid pickup location</span> |
634 |
<span>No valid pickup location</span> |
666 |
[% ELSE %] |
635 |
[% ELSE %] |
667 |
<span>[% itemloo.not_holdable | html %]</span> |
636 |
<span>[% itemloo.not_holdable | html %]</span> |
668 |
[% END %] |
|
|
669 |
[% END %] |
637 |
[% END %] |
670 |
</span> |
|
|
671 |
[% END # /IF force_hold_level %] |
672 |
</td> |
673 |
<td> |
674 |
[% IF (itemloo.pickup_locations_count > 0) %] |
675 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;" |
676 |
data-item-id="[% itemloo.itemnumber | html %]" |
677 |
data-patron-id="[% patron.borrowernumber | html %]" |
678 |
data-pickup-location-source="item"> |
679 |
[% IF (itemloo.default_pickup_location) %] |
680 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
681 |
[% END %] |
682 |
</select> |
683 |
[% END %] |
684 |
</td> |
685 |
[% IF Koha.Preference('item-level_itypes') %] |
686 |
<td> |
687 |
[% UNLESS ( noItemTypeImages ) %] |
688 |
[% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %] |
689 |
[% END %] |
638 |
[% END %] |
690 |
[% itemloo.itemtype.translated_description | html %] |
639 |
</span> |
691 |
</td> |
640 |
[% END # /IF force_hold_level %] |
|
|
641 |
</td> |
642 |
<td> |
643 |
[% IF (itemloo.pickup_locations_count > 0) %] |
644 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;" |
645 |
data-item-id="[% itemloo.itemnumber | html %]" |
646 |
data-patron-id="[% patron.borrowernumber | html %]" |
647 |
data-pickup-location-source="item"> |
648 |
[% IF (itemloo.default_pickup_location) %] |
649 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
692 |
[% END %] |
650 |
[% END %] |
|
|
651 |
</select> |
652 |
[% END %] |
653 |
</td> |
654 |
[% IF Koha.Preference('item-level_itypes') %] |
693 |
<td> |
655 |
<td> |
694 |
[% itemloo.barcode | html %] |
656 |
[% UNLESS ( noItemTypeImages ) %] |
695 |
</td> |
657 |
[% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %] |
696 |
<td> |
658 |
[% END %] |
697 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
659 |
[% itemloo.itemtype.translated_description | html %] |
698 |
</td> |
660 |
</td> |
|
|
661 |
[% END %] |
662 |
<td> |
663 |
[% itemloo.barcode | html %] |
664 |
</td> |
665 |
<td> |
666 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
667 |
</td> |
668 |
<td> |
669 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
670 |
</td> |
671 |
[% IF itemdata_ccode %] |
699 |
<td> |
672 |
<td> |
700 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
673 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
701 |
</td> |
674 |
</td> |
702 |
[% IF itemdata_ccode %] |
675 |
[% END %] |
703 |
<td> |
676 |
<td> |
704 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
677 |
[% itemloo.itemcallnumber | html %] |
705 |
</td> |
678 |
</td> |
706 |
[% END %] |
679 |
<td> |
|
|
680 |
[% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %] |
681 |
</td> |
682 |
[% IF itemdata_enumchron %] |
707 |
<td> |
683 |
<td> |
708 |
[% itemloo.itemcallnumber | html %] |
684 |
[% itemloo.enumchron | html %] |
709 |
</td> |
685 |
</td> |
|
|
686 |
[% END %] |
687 |
[% IF ( itemloo.onloan ) %] |
688 |
<td data-order="[% itemloo.date_due | html %]"> |
689 |
<span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span> |
690 |
[% ELSE %] |
710 |
<td> |
691 |
<td> |
711 |
[% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %] |
692 |
[% IF ( itemloo.transfertwhen ) %] |
712 |
</td> |
693 |
In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
713 |
[% IF itemdata_enumchron %] |
694 |
to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %] |
714 |
<td> |
695 |
[% END %] |
715 |
[% itemloo.enumchron | html %] |
696 |
[% END %] |
716 |
</td> |
|
|
717 |
[% END %] |
718 |
[% IF ( itemloo.onloan ) %] |
719 |
<td data-order="[% itemloo.date_due | html %]"> |
720 |
<span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span> |
721 |
[% ELSE %] |
722 |
<td> |
723 |
[% IF ( itemloo.transfertwhen ) %] |
724 |
In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
725 |
to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %] |
726 |
[% END %] |
727 |
[% END %] |
728 |
|
697 |
|
729 |
[% IF ( itemloo.reservedate ) %] |
698 |
[% IF ( itemloo.reservedate ) %] |
730 |
[% IF ( itemloo.nocancel ) %] |
699 |
[% IF ( itemloo.nocancel ) %] |
731 |
Can't be cancelled when item is in transit |
700 |
Can't be cancelled when item is in transit |
|
|
701 |
[% ELSE %] |
702 |
[% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] |
703 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
704 |
for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | uri %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a> |
705 |
[% END %] |
706 |
[% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] |
707 |
[% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since |
708 |
[% IF ( itemloo.waitingdate ) %] |
709 |
[% itemloo.waitingdate | $KohaDates %] |
732 |
[% ELSE %] |
710 |
[% ELSE %] |
733 |
[% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] |
711 |
[% IF ( itemloo.reservedate ) %] |
734 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
712 |
[% itemloo.reservedate | html %] |
735 |
for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | uri %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a> |
|
|
736 |
[% END %] |
713 |
[% END %] |
737 |
[% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] |
714 |
[% END %]. |
738 |
[% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since |
715 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
739 |
[% IF ( itemloo.waitingdate ) %] |
716 |
[% END # /IF itemloo.nocancel %] |
740 |
[% itemloo.waitingdate | $KohaDates %] |
717 |
[% ELSE %] |
741 |
[% ELSE %] |
718 |
Not on hold |
742 |
[% IF ( itemloo.reservedate ) %] |
719 |
[% END # /IF itemloo.reservedate %] |
743 |
[% itemloo.reservedate | html %] |
|
|
744 |
[% END %] |
745 |
[% END %]. |
746 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
747 |
[% END # /IF itemloo.nocancel %] |
748 |
[% ELSE %] |
749 |
Not on hold |
750 |
[% END # /IF itemloo.reservedate %] |
751 |
|
720 |
|
752 |
[% IF itemloo.item_level_holds == "N" %] |
721 |
[% IF itemloo.item_level_holds == "N" %] |
753 |
<br/>Item level hold not allowed from OPAC |
722 |
<br/>Item level hold not allowed from OPAC |
754 |
[% ELSIF itemloo.item_level_holds == "F" %] |
723 |
[% ELSIF itemloo.item_level_holds == "F" %] |
755 |
<br/>Item level hold forced from OPAC |
724 |
<br/>Item level hold forced from OPAC |
756 |
[% END %] |
725 |
[% END %] |
757 |
|
726 |
|
758 |
[% IF ( itemloo.itemlost ) %] |
727 |
[% IF ( itemloo.itemlost ) %] |
759 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
728 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
760 |
[% END %] |
729 |
[% END %] |
761 |
|
730 |
|
762 |
[% IF ( itemloo.damaged ) %] |
731 |
[% IF ( itemloo.damaged ) %] |
763 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
732 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
764 |
[% END %] |
733 |
[% END %] |
765 |
|
734 |
|
766 |
[% IF ( itemloo.withdrawn ) %] |
735 |
[% IF ( itemloo.withdrawn ) %] |
767 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
736 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
768 |
[% END %] |
737 |
[% END %] |
|
|
738 |
|
739 |
[% IF ( itemloo.notforloan ) %] |
740 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
741 |
[% END %] |
742 |
</td> |
743 |
</tr> |
744 |
[% END # / UNLESS itemloo.hide %] |
745 |
[% END # /FOREACH itemloo %] |
746 |
</tbody> |
747 |
</table> <!-- /#requestspecific --> |
748 |
|
749 |
[% IF hiddencount %] |
750 |
<form> |
751 |
<p class="hiddencount"> |
752 |
<a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&borrowernumber=[% borrowernumber | uri %]&showallitems=1">Show all items ([% biblio.hiddencount | html %] hidden)</a> |
753 |
</p> |
754 |
</form> |
755 |
[% END # /IF hiddencount %] |
756 |
|
757 |
<fieldset class="action"> |
758 |
[% IF ( patron AND patron.borrowernumber ) %] |
759 |
[% IF ( override_required ) %] |
760 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
761 |
[% ELSIF ( none_available ) %] |
762 |
<button class="btn btn-default" type="submit">Place holds</button> |
763 |
[% ELSE %] |
764 |
<button type="submit" class="btn btn-default">Place hold</button> |
765 |
[% END %] |
766 |
[% END # /IF patron %] |
767 |
</fieldset> <!-- /.action --> |
768 |
</form> <!-- /#hold-request-form --> |
769 |
</fieldset> <!-- /.rows --> |
770 |
[% ELSE # Multi-hold %] |
771 |
<fieldset class="rows"> |
772 |
<legend>Hold details</legend> |
773 |
<form action="placerequest.pl" method="post" name="form" id="hold-request-form"> |
774 |
|
775 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
776 |
<input type="hidden" name="type" value="str8" /> |
777 |
|
778 |
[% FOREACH biblionumber IN biblionumbers %] |
779 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
780 |
[% END %] |
781 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
782 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
783 |
<input type="hidden" name="request" value="any"/> |
784 |
[% FOREACH biblioloo IN biblioloop %] |
785 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
786 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
787 |
[% END %] |
788 |
|
789 |
<ol> |
790 |
|
791 |
<li> |
792 |
<span class="label">Patron:</span> |
793 |
[% IF ( patron.borrowernumber ) %] |
794 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</a> |
795 |
[% ELSE %] |
796 |
Not defined yet |
797 |
[% END %] |
798 |
</li> |
799 |
|
800 |
<li> |
801 |
<label for="holdnotes">Notes:</label> |
802 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
803 |
</li> |
804 |
<li> |
805 |
<label for="pickup">Pickup at:</label> |
806 |
<select name="pickup" id="pickup_multi" data-patron-id="[% patron.borrowernumber | html %]"> |
807 |
<option value="" selected="selected"></option> |
808 |
[% FOREACH pickup_location IN multi_pickup_locations %] |
809 |
<option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option> |
810 |
[% END %] |
811 |
</select> |
812 |
</li> |
813 |
|
814 |
|
815 |
[% IF ( reserve_in_future ) %] |
816 |
<li> |
817 |
<label for="from">Hold starts on date:</label> |
818 |
<input id="reserve_date" name="reserve_date" id="from" size="10" type="text" data-date_to="expiration_date" class="flatpickr" data-flatpickr-futuredate="true" /> |
819 |
</li> |
820 |
[% END %] |
821 |
|
822 |
<li> |
823 |
<label for="to">Hold expires on date:</label> |
824 |
<input id="expiration_date" name="expiration_date" id="to" size="10" type="text" class="flatpickr" data-flatpickr-futuredate="true" /> |
825 |
</li> |
826 |
|
827 |
|
828 |
<li id="non_priority_list_item"> |
829 |
<label for="non_priority">Non priority hold:</label> |
830 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
831 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
832 |
</li> |
833 |
</ol> |
769 |
|
834 |
|
770 |
[% IF ( itemloo.notforloan ) %] |
|
|
771 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
772 |
[% END %] |
773 |
</td> |
774 |
</tr> |
775 |
[% END # / UNLESS itemloo.hide %] |
776 |
[% END # /FOREACH itemloo %] |
777 |
</tbody> |
778 |
</table> <!-- /#requestspecific --> |
779 |
|
780 |
[% IF hiddencount %] |
781 |
<form> |
782 |
<p class="hiddencount"> |
783 |
<a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&borrowernumber=[% borrowernumber | uri %]&showallitems=1">Show all items ([% biblio.hiddencount | html %] hidden)</a> |
784 |
</p> |
785 |
</form> |
786 |
[% END # /IF hiddencount %] |
787 |
|
788 |
[% ELSE # /UNLESS multi_hold %] |
789 |
|
835 |
|
790 |
<table id="requesttitles"> |
836 |
<table id="requesttitles"> |
791 |
<tr> |
837 |
<tr> |
Lines 879-885
Link Here
|
879 |
[% END # /FOREACH biblioloo %] |
925 |
[% END # /FOREACH biblioloo %] |
880 |
</table> <!-- /#requesttitles --> |
926 |
</table> <!-- /#requesttitles --> |
881 |
|
927 |
|
882 |
[% END # /UNLESS multi_hold %] |
|
|
883 |
|
928 |
|
884 |
<fieldset class="action"> |
929 |
<fieldset class="action"> |
885 |
[% IF ( patron AND patron.borrowernumber ) %] |
930 |
[% IF ( patron AND patron.borrowernumber ) %] |
Lines 888-904
Link Here
|
888 |
[% ELSIF ( none_available ) %] |
933 |
[% ELSIF ( none_available ) %] |
889 |
<button class="btn btn-default" type="submit">Place holds</button> |
934 |
<button class="btn btn-default" type="submit">Place holds</button> |
890 |
[% ELSE %] |
935 |
[% ELSE %] |
891 |
[% IF ( multi_hold ) %] |
936 |
<button type="submit" class="btn btn-default" id="multi_hold_submit">Place holds</button> |
892 |
<button type="submit" class="btn btn-default" id="multi_hold_submit">Place holds</button> |
|
|
893 |
[% ELSE %] |
894 |
<button type="submit" class="btn btn-default">Place hold</button> |
895 |
[% END %] |
896 |
[% END %] |
937 |
[% END %] |
897 |
[% END # /IF patron %] |
938 |
[% END # /IF patron %] |
898 |
</fieldset> <!-- /.action --> |
939 |
</fieldset> <!-- /.action --> |
899 |
</form> <!-- /#hold-request-form --> |
940 |
</form> <!-- /#hold-request-form --> |
900 |
</fieldset> <!-- /.rows --> |
941 |
</fieldset> <!-- /.rows --> |
901 |
[% END %] |
942 |
[% END %] |
|
|
943 |
[% END %] |
902 |
|
944 |
|
903 |
[% UNLESS ( patron ) %] |
945 |
[% UNLESS ( patron ) %] |
904 |
[% UNLESS borrowers %] |
946 |
[% UNLESS borrowers %] |
905 |
- |
|
|