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