|
Lines 95-100
Link Here
|
| 95 |
.icon-set-lowest::before { |
95 |
.icon-set-lowest::before { |
| 96 |
content: "\f04e"; |
96 |
content: "\f04e"; |
| 97 |
} |
97 |
} |
|
|
98 |
:disabled{ |
| 99 |
opacity:0.5 |
| 100 |
} |
| 98 |
</style> |
101 |
</style> |
| 99 |
[% END %] |
102 |
[% END %] |
| 100 |
</head> |
103 |
</head> |
|
Lines 577-626
Link Here
|
| 577 |
[% END %] |
580 |
[% END %] |
| 578 |
</legend> |
581 |
</legend> |
| 579 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
582 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
| 580 |
<ol> |
583 |
<fieldset class="enable_request_any disable_request_group disable_request_specific"> |
|
|
584 |
<ol> |
| 581 |
|
585 |
|
| 582 |
<li> |
|
|
| 583 |
<label for="pickup">Pickup at:</label> |
| 584 |
<select name="pickup" id="pickup-next-avail" |
| 585 |
data-biblio-id="[% biblio.biblionumber | html %]" |
| 586 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 587 |
data-pickup-location-source="biblio"> |
| 588 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
| 589 |
</select> |
| 590 |
</li> |
| 591 |
|
| 592 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
| 593 |
<li> |
586 |
<li> |
| 594 |
<label for="itemtype">Request specific item type:</label> |
587 |
<label for="pickup">Pickup at:</label> |
| 595 |
<select name="itemtype" id="itemtype"> |
588 |
<select name="pickup" id="pickup-next-avail" |
| 596 |
<option value="">Any item type</option> |
589 |
data-biblio-id="[% biblio.biblionumber | html %]" |
| 597 |
[%- FOREACH itemtype IN available_itemtypes %] |
590 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 598 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
591 |
data-pickup-location-source="biblio"> |
| 599 |
[%- END %] |
592 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
| 600 |
</select> |
593 |
</select> |
| 601 |
</li> |
594 |
</li> |
| 602 |
[% END %] |
595 |
|
| 603 |
[% IF remaining_holds_for_record > 1 %] |
596 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
| 604 |
<li> |
597 |
<li> |
| 605 |
<label for="holds_to_place_count">Holds to place (count)</label> |
598 |
<label for="itemtype">Request specific item type:</label> |
| 606 |
<input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" /> |
599 |
<select name="itemtype" id="itemtype"> |
| 607 |
</li> |
600 |
<option value="">Any item type</option> |
| 608 |
[% ELSE %] |
601 |
[%- FOREACH itemtype IN available_itemtypes %] |
| 609 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
602 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
| 610 |
[% END %] |
603 |
[%- END %] |
| 611 |
</ol> |
604 |
</select> |
|
|
605 |
</li> |
| 606 |
[% END %] |
| 607 |
[% IF remaining_holds_for_record > 1 %] |
| 608 |
<li> |
| 609 |
<label for="holds_to_place_count">Holds to place (count)</label> |
| 610 |
<input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" /> |
| 611 |
</li> |
| 612 |
[% ELSE %] |
| 613 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
| 614 |
[% END %] |
| 615 |
</ol> |
| 612 |
|
616 |
|
| 613 |
|
617 |
|
| 614 |
<fieldset class="action"> |
618 |
<fieldset class="action"> |
| 615 |
[% IF ( patron.borrowernumber ) %] |
619 |
[% IF ( patron.borrowernumber ) %] |
| 616 |
[% IF ( override_required ) %] |
620 |
[% IF ( override_required ) %] |
| 617 |
<button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
621 |
<button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
| 618 |
[% ELSIF ( none_available ) %] |
622 |
[% ELSIF ( none_available ) %] |
| 619 |
<button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
623 |
<button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
| 620 |
[% ELSE %] |
624 |
[% ELSE %] |
| 621 |
<button type="submit" id="hold_any_btn" class="btn btn-primary">Place hold</button> |
625 |
<button type="submit" id="hold_any_btn" class="btn btn-primary">Place hold</button> |
|
|
626 |
[% END %] |
| 622 |
[% END %] |
627 |
[% END %] |
| 623 |
[% END %] |
628 |
</fieldset> |
| 624 |
</fieldset> |
629 |
</fieldset> |
| 625 |
</fieldset> |
630 |
</fieldset> |
| 626 |
|
631 |
|
|
Lines 644-649
Link Here
|
| 644 |
[% END %] |
649 |
[% END %] |
| 645 |
</legend> |
650 |
</legend> |
| 646 |
|
651 |
|
|
|
652 |
<fieldset class="enable_request_group disable_request_any disable_request_specific"> |
| 647 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
653 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
| 648 |
<span class="error"> |
654 |
<span class="error"> |
| 649 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
655 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
|
Lines 691-697
Link Here
|
| 691 |
</li> |
697 |
</li> |
| 692 |
</ul> |
698 |
</ul> |
| 693 |
[% END %] |
699 |
[% END %] |
| 694 |
<button type="submit" id="hold_grp_btn" class="btn btn-primary warning">Place hold</button> |
700 |
<fieldset class="action"> |
|
|
701 |
<button type="submit" id="hold_grp_btn" class="btn btn-primary warning">Place hold</button> |
| 702 |
</fieldset> |
| 703 |
</fieldset> |
| 695 |
</fieldset> |
704 |
</fieldset> |
| 696 |
[% END %] |
705 |
[% END %] |
| 697 |
<!-- /ItemGroup level holds --> |
706 |
<!-- /ItemGroup level holds --> |
|
Lines 711-945
Link Here
|
| 711 |
<input type="radio" id="requestspecificitem" name="request" class="requestspecific"/> |
720 |
<input type="radio" id="requestspecificitem" name="request" class="requestspecific"/> |
| 712 |
[% END %] |
721 |
[% END %] |
| 713 |
</legend> |
722 |
</legend> |
|
|
723 |
<fieldset class="enable_request_specific disable_request_any disable_request_group"> |
| 714 |
|
724 |
|
| 715 |
<ol> |
725 |
<ol> |
| 716 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
726 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
| 717 |
<li> |
727 |
<li> |
| 718 |
<span class="label">Item type:</span> |
728 |
<span class="label">Item type:</span> |
| 719 |
[% biblio.itemtype.translated_description | html %] |
729 |
[% biblio.itemtype.translated_description | html %] |
| 720 |
</li> |
730 |
</li> |
| 721 |
[% END %] |
731 |
[% END %] |
| 722 |
|
732 |
|
| 723 |
[% IF ( biblio.biblioitem.publicationyear ) %] |
733 |
[% IF ( biblio.biblioitem.publicationyear ) %] |
| 724 |
<li> |
734 |
<li> |
| 725 |
<span class="label">Publication year:</span> |
735 |
<span class="label">Publication year:</span> |
| 726 |
[% biblio.biblioitem.publicationyear | html %] |
736 |
[% biblio.biblioitem.publicationyear | html %] |
| 727 |
</li> |
737 |
</li> |
| 728 |
[% END %] |
738 |
[% END %] |
| 729 |
</ol> |
739 |
</ol> |
| 730 |
|
740 |
|
| 731 |
<table id="requestspecific"> |
741 |
<table id="requestspecific"> |
| 732 |
<thead> |
742 |
<thead> |
| 733 |
<tr> |
743 |
<tr> |
| 734 |
<th>Hold</th> |
744 |
<th>Hold</th> |
| 735 |
<th>Allowed pickup locations</th> |
745 |
<th>Allowed pickup locations</th> |
| 736 |
[% IF Koha.Preference('item-level_itypes') %] |
746 |
[% IF Koha.Preference('item-level_itypes') %] |
| 737 |
<th>Item type</th> |
747 |
<th>Item type</th> |
| 738 |
[% END %] |
748 |
[% END %] |
| 739 |
<th>Barcode</th> |
749 |
<th>Barcode</th> |
| 740 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %] |
750 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %] |
| 741 |
<th>Item group</th> |
751 |
<th>Item group</th> |
| 742 |
[% END %] |
752 |
[% END %] |
| 743 |
<th>Home library</th> |
753 |
<th>Home library</th> |
| 744 |
<th>Last location</th> |
754 |
<th>Last location</th> |
| 745 |
[% IF itemdata_ccode %] |
755 |
[% IF itemdata_ccode %] |
| 746 |
<th>Collection</th> |
756 |
<th>Collection</th> |
| 747 |
[% END %] |
757 |
[% END %] |
| 748 |
<th>Call number</th> |
758 |
<th>Call number</th> |
| 749 |
<th>Copy number</th> |
759 |
<th>Copy number</th> |
| 750 |
[% IF itemdata_enumchron %] |
760 |
[% IF itemdata_enumchron %] |
| 751 |
<th>Vol no.</th> |
761 |
<th>Vol no.</th> |
| 752 |
[% END %] |
762 |
[% END %] |
| 753 |
<th>Information</th> |
763 |
<th>Information</th> |
| 754 |
</tr> |
764 |
</tr> |
| 755 |
</thead> |
765 |
</thead> |
| 756 |
<tbody> |
766 |
<tbody> |
| 757 |
[% SET selected = 0 %] |
767 |
[% SET selected = 0 %] |
| 758 |
[% FOREACH itemloo IN biblio.itemloop %] |
768 |
[% FOREACH itemloo IN biblio.itemloop %] |
| 759 |
[% UNLESS ( itemloo.hide ) %] |
769 |
[% UNLESS ( itemloo.hide ) %] |
| 760 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
770 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
| 761 |
<td> |
771 |
<td> |
| 762 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
772 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
| 763 |
<span class="error"> |
773 |
<span class="error"> |
| 764 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
774 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
| 765 |
Hold must be record level |
775 |
Hold must be record level |
| 766 |
</span> |
776 |
</span> |
| 767 |
[% ELSIF force_hold_level == 'item_group' %] |
777 |
[% ELSIF force_hold_level == 'item_group' %] |
| 768 |
<span class="error"> |
778 |
<span class="error"> |
| 769 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
779 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
| 770 |
Hold must be item group level |
780 |
Hold must be item group level |
| 771 |
</span> |
781 |
</span> |
| 772 |
[% ELSIF ( itemloo.available ) %] |
782 |
[% ELSIF ( itemloo.available ) %] |
| 773 |
<input type="radio" name="checkitem" class="requestspecific" value="[% itemloo.itemnumber | html %]" /> |
783 |
<input type="radio" name="checkitem" class="requestspecific" value="[% itemloo.itemnumber | html %]" /> |
| 774 |
[% ELSIF ( itemloo.override ) %] |
784 |
[% ELSIF ( itemloo.override ) %] |
| 775 |
<input type="radio" name="checkitem" class="needsoverride requestspecific" value="[% itemloo.itemnumber | html %]" /> |
785 |
<input type="radio" name="checkitem" class="needsoverride requestspecific" value="[% itemloo.itemnumber | html %]" /> |
| 776 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
786 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
| 777 |
[% ELSE %] |
787 |
[% ELSE %] |
| 778 |
<span class="error"> |
788 |
<span class="error"> |
| 779 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
789 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
| 780 |
[% IF itemloo.not_holdable %] |
790 |
[% IF itemloo.not_holdable %] |
| 781 |
[% IF itemloo.not_holdable == 'damaged' %] |
791 |
[% IF itemloo.not_holdable == 'damaged' %] |
| 782 |
<span>Item damaged</span> |
792 |
<span>Item damaged</span> |
| 783 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
793 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
| 784 |
<span>Age restricted</span> |
794 |
<span>Age restricted</span> |
| 785 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
795 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
| 786 |
<span>Exceeded max holds per record</span> |
796 |
<span>Exceeded max holds per record</span> |
| 787 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
797 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
| 788 |
<span>Daily hold limit reached for patron</span> |
798 |
<span>Daily hold limit reached for patron</span> |
| 789 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
799 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
| 790 |
<span>Too many holds</span> |
800 |
<span>Too many holds</span> |
| 791 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
801 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
| 792 |
<span>Not holdable</span> |
802 |
<span>Not holdable</span> |
| 793 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
803 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
| 794 |
<span>Patron is from different library</span> |
804 |
<span>Patron is from different library</span> |
| 795 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
805 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
| 796 |
<span>Cannot place hold from patron's library</span> |
806 |
<span>Cannot place hold from patron's library</span> |
| 797 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
807 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
| 798 |
<span>Patron already has hold for this item</span> |
808 |
<span>Patron already has hold for this item</span> |
| 799 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
809 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
| 800 |
<span>Cannot be transferred to pickup library</span> |
810 |
<span>Cannot be transferred to pickup library</span> |
| 801 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
811 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
| 802 |
<span>Only pickup locations within the same hold group are allowed</span> |
812 |
<span>Only pickup locations within the same hold group are allowed</span> |
| 803 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
813 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
| 804 |
<span>No holds are allowed on this item</span> |
814 |
<span>No holds are allowed on this item</span> |
| 805 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
815 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
| 806 |
<span>Library is not a pickup location</span> |
816 |
<span>Library is not a pickup location</span> |
| 807 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
817 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
| 808 |
<span>No valid pickup location</span> |
818 |
<span>No valid pickup location</span> |
| 809 |
[% ELSIF itemloo.not_holdable == 'notforloan' %] |
819 |
[% ELSIF itemloo.not_holdable == 'notforloan' %] |
| 810 |
<span>Not for loan</span> |
820 |
<span>Not for loan</span> |
| 811 |
[% ELSE %] |
821 |
[% ELSE %] |
| 812 |
<span>[% itemloo.not_holdable | html %]</span> |
822 |
<span>[% itemloo.not_holdable | html %]</span> |
|
|
823 |
[% END %] |
| 813 |
[% END %] |
824 |
[% END %] |
|
|
825 |
</span> |
| 826 |
[% END # /IF force_hold_level %] |
| 827 |
</td> |
| 828 |
<td> |
| 829 |
[% IF (itemloo.pickup_locations_count > 0) || itemloo.override %] |
| 830 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations requestspecific" style="width:100%;" |
| 831 |
data-item-id="[% itemloo.itemnumber | html %]" |
| 832 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 833 |
data-pickup-location-source="item"> |
| 834 |
[% IF (itemloo.default_pickup_location) %] |
| 835 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
| 836 |
[% END %] |
| 837 |
</select> |
| 838 |
[% END %] |
| 839 |
</td> |
| 840 |
[% IF Koha.Preference('item-level_itypes') %] |
| 841 |
<td> |
| 842 |
[% UNLESS ( noItemTypeImages ) %] |
| 843 |
[% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %] |
| 814 |
[% END %] |
844 |
[% END %] |
| 815 |
</span> |
845 |
<span class="itypetext">[% itemloo.itemtype.translated_description | html %]</span> |
| 816 |
[% END # /IF force_hold_level %] |
846 |
</td> |
| 817 |
</td> |
|
|
| 818 |
<td> |
| 819 |
[% IF (itemloo.pickup_locations_count > 0) || itemloo.override %] |
| 820 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations requestspecific" style="width:100%;" |
| 821 |
data-item-id="[% itemloo.itemnumber | html %]" |
| 822 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 823 |
data-pickup-location-source="item"> |
| 824 |
[% IF (itemloo.default_pickup_location) %] |
| 825 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
| 826 |
[% END %] |
847 |
[% END %] |
| 827 |
</select> |
|
|
| 828 |
[% END %] |
| 829 |
</td> |
| 830 |
[% IF Koha.Preference('item-level_itypes') %] |
| 831 |
<td> |
848 |
<td> |
| 832 |
[% UNLESS ( noItemTypeImages ) %] |
849 |
[% itemloo.barcode | html %] |
| 833 |
[% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %] |
|
|
| 834 |
[% END %] |
| 835 |
<span class="itypetext">[% itemloo.itemtype.translated_description | html %]</span> |
| 836 |
</td> |
850 |
</td> |
| 837 |
[% END %] |
851 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %] |
| 838 |
<td> |
852 |
<td> |
| 839 |
[% itemloo.barcode | html %] |
853 |
[% itemloo.object.item_group.description | html %] |
| 840 |
</td> |
854 |
</td> |
| 841 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %] |
855 |
[% END %] |
| 842 |
<td> |
856 |
<td> |
| 843 |
[% itemloo.object.item_group.description | html %] |
857 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
| 844 |
</td> |
858 |
</td> |
| 845 |
[% END %] |
|
|
| 846 |
<td> |
| 847 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
| 848 |
</td> |
| 849 |
<td> |
| 850 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
| 851 |
</td> |
| 852 |
[% IF itemdata_ccode %] |
| 853 |
<td> |
859 |
<td> |
| 854 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
860 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
| 855 |
</td> |
861 |
</td> |
| 856 |
[% END %] |
862 |
[% IF itemdata_ccode %] |
| 857 |
<td> |
863 |
<td> |
| 858 |
[% itemloo.itemcallnumber | html %] |
864 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
| 859 |
</td> |
865 |
</td> |
| 860 |
<td> |
866 |
[% END %] |
| 861 |
[% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %] |
|
|
| 862 |
</td> |
| 863 |
[% IF itemdata_enumchron %] |
| 864 |
<td> |
867 |
<td> |
| 865 |
[% itemloo.enumchron | html %] |
868 |
[% itemloo.itemcallnumber | html %] |
| 866 |
</td> |
869 |
</td> |
| 867 |
[% END %] |
|
|
| 868 |
[% IF ( itemloo.onloan ) %] |
| 869 |
<td data-order="[% itemloo.date_due | html %]"> |
| 870 |
<span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span> |
| 871 |
[% ELSE %] |
| 872 |
<td> |
870 |
<td> |
| 873 |
[% IF ( itemloo.transfertwhen ) %] |
871 |
[% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %] |
| 874 |
<span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
872 |
</td> |
| 875 |
to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | $KohaDates %]</span> |
873 |
[% IF itemdata_enumchron %] |
| 876 |
[% END %] |
874 |
<td> |
| 877 |
[% END %] |
875 |
[% itemloo.enumchron | html %] |
|
|
876 |
</td> |
| 877 |
[% END %] |
| 878 |
[% IF ( itemloo.onloan ) %] |
| 879 |
<td data-order="[% itemloo.date_due | html %]"> |
| 880 |
<span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span> |
| 881 |
[% ELSE %] |
| 882 |
<td> |
| 883 |
[% IF ( itemloo.transfertwhen ) %] |
| 884 |
<span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
| 885 |
to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | $KohaDates %]</span> |
| 886 |
[% END %] |
| 887 |
[% END %] |
| 878 |
|
888 |
|
| 879 |
[% IF ( itemloo.reservedate ) %] |
889 |
[% IF ( itemloo.reservedate ) %] |
| 880 |
[% IF ( itemloo.nocancel ) %] |
890 |
[% IF ( itemloo.nocancel ) %] |
| 881 |
<span>Can't be cancelled when item is in transit</span> |
891 |
<span>Can't be cancelled when item is in transit</span> |
| 882 |
[% ELSE %] |
|
|
| 883 |
[% IF ( itemloo.waitingdate ) %] |
| 884 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
| 885 |
<span>Waiting for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span> |
| 886 |
[% ELSE %] |
| 887 |
<span>Waiting at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span> |
| 888 |
[% END %] |
| 889 |
[% ELSE %] |
892 |
[% ELSE %] |
| 890 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
893 |
[% IF ( itemloo.waitingdate ) %] |
| 891 |
[% IF itemloo.reservedate %] |
894 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
| 892 |
<span>On hold for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since</span> |
895 |
<span>Waiting for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span> |
| 893 |
[% ELSE %] |
896 |
[% ELSE %] |
| 894 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span> |
897 |
<span>Waiting at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span> |
| 895 |
[% END %] |
898 |
[% END %] |
| 896 |
[% ELSIF itemloo.reservedate %] |
|
|
| 897 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.reservedate | $KohaDates %]</span> |
| 898 |
[% ELSE %] |
899 |
[% ELSE %] |
| 899 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span> |
900 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
|
|
901 |
[% IF itemloo.reservedate %] |
| 902 |
<span>On hold for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since</span> |
| 903 |
[% ELSE %] |
| 904 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span> |
| 905 |
[% END %] |
| 906 |
[% ELSIF itemloo.reservedate %] |
| 907 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.reservedate | $KohaDates %]</span> |
| 908 |
[% ELSE %] |
| 909 |
<span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span> |
| 910 |
[% END %] |
| 900 |
[% END %] |
911 |
[% END %] |
| 901 |
[% END %] |
912 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
| 902 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
913 |
[% END # /IF itemloo.nocancel %] |
| 903 |
[% END # /IF itemloo.nocancel %] |
914 |
[% ELSE %] |
| 904 |
[% ELSE %] |
915 |
Not on hold |
| 905 |
Not on hold |
916 |
[% END # /IF itemloo.reservedate %] |
| 906 |
[% END # /IF itemloo.reservedate %] |
|
|
| 907 |
|
917 |
|
| 908 |
[% IF itemloo.item_level_holds == "N" %] |
918 |
[% IF itemloo.item_level_holds == "N" %] |
| 909 |
<br/>Item level hold not allowed from OPAC |
919 |
<br/>Item level hold not allowed from OPAC |
| 910 |
[% ELSIF itemloo.item_level_holds == "F" %] |
920 |
[% ELSIF itemloo.item_level_holds == "F" %] |
| 911 |
<br/>Item level hold forced from OPAC |
921 |
<br/>Item level hold forced from OPAC |
| 912 |
[% END %] |
922 |
[% END %] |
| 913 |
|
923 |
|
| 914 |
[% IF ( itemloo.itemlost ) %] |
924 |
[% IF ( itemloo.itemlost ) %] |
| 915 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
925 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
| 916 |
[% END %] |
926 |
[% END %] |
| 917 |
|
927 |
|
| 918 |
[% IF ( itemloo.damaged ) %] |
928 |
[% IF ( itemloo.damaged ) %] |
| 919 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
929 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
| 920 |
[% END %] |
930 |
[% END %] |
| 921 |
|
931 |
|
| 922 |
[% IF ( itemloo.withdrawn ) %] |
932 |
[% IF ( itemloo.withdrawn ) %] |
| 923 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
933 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
| 924 |
[% END %] |
934 |
[% END %] |
| 925 |
|
935 |
|
| 926 |
[% IF ( itemloo.notforloan ) %] |
936 |
[% IF ( itemloo.notforloan ) %] |
| 927 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
937 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
| 928 |
[% ELSIF ( itemloo.notforloanitype ) %] |
938 |
[% ELSIF ( itemloo.notforloanitype ) %] |
| 929 |
<span class="nfl">Not for loan (Itemtype not for loan)</span> |
939 |
<span class="nfl">Not for loan (Itemtype not for loan)</span> |
| 930 |
[% END %] |
940 |
[% END %] |
| 931 |
</td> |
941 |
</td> |
| 932 |
</tr> |
942 |
</tr> |
| 933 |
[% END # / UNLESS itemloo.hide %] |
943 |
[% END # / UNLESS itemloo.hide %] |
| 934 |
[% END # /FOREACH itemloo %] |
944 |
[% END # /FOREACH itemloo %] |
| 935 |
</tbody> |
945 |
</tbody> |
| 936 |
</table> <!-- /#requestspecific --> |
946 |
</table> <!-- /#requestspecific --> |
| 937 |
|
947 |
|
| 938 |
[% IF hiddencount %] |
948 |
[% IF hiddencount %] |
| 939 |
<p class="hiddencount"> |
949 |
<p class="hiddencount"> |
| 940 |
<a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&borrowernumber=[% borrowernumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a> |
950 |
<a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&borrowernumber=[% borrowernumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a> |
| 941 |
</p> |
951 |
</p> |
| 942 |
[% END # /IF hiddencount %] |
952 |
[% END # /IF hiddencount %] |
|
|
953 |
<fieldset class="action"> |
| 954 |
[% IF ( override_required ) %] |
| 955 |
<button type="submit" id="hold_item_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
| 956 |
[% ELSIF ( none_available ) %] |
| 957 |
<button type="submit" id="hold_item_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place hold</button> |
| 958 |
[% ELSE %] |
| 959 |
<button type="submit" id="hold_item_btn" class="btn btn-primary">Place hold</button> |
| 960 |
[% END %] |
| 961 |
</fieldset> <!-- /.action --> |
| 962 |
</fieldset> |
| 963 |
</fieldset class="rows"> |
| 943 |
|
964 |
|
| 944 |
[% ELSE # /UNLESS multi_hold %] |
965 |
[% ELSE # /UNLESS multi_hold %] |
| 945 |
<fieldset class="rows"> |
966 |
<fieldset class="rows"> |
|
Lines 1048-1079
Link Here
|
| 1048 |
[% END # /FOREACH biblioloo %] |
1069 |
[% END # /FOREACH biblioloo %] |
| 1049 |
</table> <!-- /#requesttitles --> |
1070 |
</table> <!-- /#requesttitles --> |
| 1050 |
</fieldset> |
1071 |
</fieldset> |
|
|
1072 |
<fieldset class="action"> |
| 1073 |
[% IF ( patron AND patron.borrowernumber ) %] |
| 1074 |
[% IF ( override_required ) %] |
| 1075 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
| 1076 |
[% ELSIF ( no_bibs_available ) %] |
| 1077 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button> |
| 1078 |
[% ELSIF ( none_available ) %] |
| 1079 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button> |
| 1080 |
[% ELSE %] |
| 1081 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary" id="multi_hold_submit">Place holds</button> |
| 1082 |
[% END %] |
| 1083 |
[% END # /IF patron %] |
| 1084 |
</fieldset> <!-- /.action --> |
| 1051 |
|
1085 |
|
| 1052 |
[% END # /UNLESS multi_hold %] |
1086 |
[% END # /UNLESS multi_hold %] |
| 1053 |
|
1087 |
|
| 1054 |
<fieldset class="action"> |
|
|
| 1055 |
[% IF ( patron AND patron.borrowernumber ) %] |
| 1056 |
[% IF ( multi_hold ) %] |
| 1057 |
[% IF ( override_required ) %] |
| 1058 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
| 1059 |
[% ELSIF ( no_bibs_available ) %] |
| 1060 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button> |
| 1061 |
[% ELSIF ( none_available ) %] |
| 1062 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button> |
| 1063 |
[% ELSE %] |
| 1064 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary" id="multi_hold_submit">Place holds</button> |
| 1065 |
[% END %] |
| 1066 |
[% ELSE %] |
| 1067 |
[% IF ( override_required ) %] |
| 1068 |
<button type="submit" id="hold_item_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
| 1069 |
[% ELSIF ( none_available ) %] |
| 1070 |
<button type="submit" id="hold_item_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place hold</button> |
| 1071 |
[% ELSE %] |
| 1072 |
<button type="submit" id="hold_item_btn" class="btn btn-primary">Place hold</button> |
| 1073 |
[% END %] |
| 1074 |
[% END %] |
| 1075 |
[% END # /IF patron %] |
| 1076 |
</fieldset> <!-- /.action --> |
| 1077 |
</fieldset> <!-- /.rows --> |
1088 |
</fieldset> <!-- /.rows --> |
| 1078 |
</form> <!-- /#hold-request-form --> |
1089 |
</form> <!-- /#hold-request-form --> |
| 1079 |
[% END %] |
1090 |
[% END %] |
|
Lines 1516-1537
Link Here
|
| 1516 |
|
1527 |
|
| 1517 |
function ToggleHoldsToPlace() { |
1528 |
function ToggleHoldsToPlace() { |
| 1518 |
if ( $("#requestany").prop('checked') ) { |
1529 |
if ( $("#requestany").prop('checked') ) { |
| 1519 |
$("#holds_to_place_count, #pickup-next-avail, #itemtype, #hold_any_btn").prop('disabled', false); |
1530 |
$(".disable_request_any").prop('disabled',true); |
|
|
1531 |
$(".enable_request_any").prop('disabled',false); |
| 1520 |
$(".requestspecific,.requestgrp").prop('checked', false); |
1532 |
$(".requestspecific,.requestgrp").prop('checked', false); |
| 1521 |
$(".requestspecific","#requestspecific").prop('disabled',true); |
|
|
| 1522 |
$("#hold_item_btn, #hold_grp_btn, #pickup-item-group").prop("disabled", true ); |
| 1523 |
$("#hold_any_btn").prop("disabled", false ); |
| 1524 |
} else if( $(".requestspecific").prop('checked') ) { |
1533 |
} else if( $(".requestspecific").prop('checked') ) { |
| 1525 |
$(".requestspecific","#requestspecific").prop('disabled',false); |
1534 |
$(".disable_request_specific").prop('disabled',true); |
| 1526 |
$("#holds_to_place_count, #pickup-item-group, #pickup-next-avail #itemtype, #hold_any_btn").prop('disabled', true); |
1535 |
$(".enable_request_specific").prop('disabled',false); |
| 1527 |
$("#hold_item_btn").prop("disabled", false ); |
|
|
| 1528 |
$("#hold_any_btn,#hold_grp_btn").prop("disabled", true ); |
| 1529 |
$("#requestany,.requestgrp").prop('checked', false); |
1536 |
$("#requestany,.requestgrp").prop('checked', false); |
| 1530 |
} else { |
1537 |
} else { |
| 1531 |
$("#holds_to_place_count, #pickup-next-avail, #itemtype, #hold_any_btn").prop('disabled', true); |
1538 |
$(".disable_request_group").prop('disabled',true); |
| 1532 |
$("#hold_grp_btn, #pickup-item-group").prop("disabled", false ); |
1539 |
$(".enable_request_group").prop('disabled',false); |
| 1533 |
$(".requestspecific","#requestspecific").prop('disabled',true); |
|
|
| 1534 |
$("#hold_any_btn,#hold_item_btn").prop("disabled", true ); |
| 1535 |
$("#requestany,.requestspecific").prop('checked', false); |
1540 |
$("#requestany,.requestspecific").prop('checked', false); |
| 1536 |
} |
1541 |
} |
| 1537 |
} |
1542 |
} |
| 1538 |
- |
|
|