View | Details | Raw Unified | Return to bug 30579
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-374 / +368 lines)
Lines 99-104 Link Here
99
        .icon-set-lowest::before {
99
        .icon-set-lowest::before {
100
            content: "\f04e";
100
            content: "\f04e";
101
        }
101
        }
102
        :disabled{
103
            opacity:0.5
104
        }
102
    </style>
105
    </style>
103
[% END %]
106
[% END %]
104
</head>
107
</head>
Lines 623-672 Link Here
623
                                    [% END %]
626
                                    [% END %]
624
                                </legend>
627
                                </legend>
625
                                <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
628
                                <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
626
                                <ol>
629
                                <fieldset class="enable_request_any disable_request_group disable_request_specific">
630
                                    <ol>
627
631
628
                                    <li>
629
                                        <label for="pickup">Pickup at:</label>
630
                                        <select name="pickup" id="pickup-next-avail"
631
                                                data-biblio-id="[% biblio.biblionumber | html %]"
632
                                                data-patron-id="[% patron.borrowernumber | html %]"
633
                                                data-pickup-location-source="biblio">
634
                                            [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %]
635
                                        </select>
636
                                    </li>
637
638
                                    [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
639
                                        <li>
632
                                        <li>
640
                                            <label for="itemtype">Request specific item type:</label>
633
                                            <label for="pickup">Pickup at:</label>
641
                                            <select name="itemtype" id="itemtype">
634
                                            <select name="pickup" id="pickup-next-avail"
642
                                                <option value="">Any item type</option>
635
                                                    data-biblio-id="[% biblio.biblionumber | html %]"
643
                                                [%- FOREACH itemtype IN available_itemtypes %]
636
                                                    data-patron-id="[% patron.borrowernumber | html %]"
644
                                                    <option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option>
637
                                                    data-pickup-location-source="biblio">
645
                                                [%- END %]
638
                                                [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %]
646
                                            </select>
639
                                            </select>
647
                                        </li>
640
                                        </li>
648
                                    [% END %]
649
                                    [% IF remaining_holds_for_record > 1 %]
650
                                        <li>
651
                                            <label for="holds_to_place_count">Holds to place (count)</label>
652
                                            <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" />
653
                                        </li>
654
                                    [% ELSE %]
655
                                        <input type="hidden" name="holds_to_place_count" value="1" />
656
                                    [% END %]
657
                                </ol>
658
641
642
                                        [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
643
                                            <li>
644
                                                <label for="itemtype">Request specific item type:</label>
645
                                                <select name="itemtype" id="itemtype">
646
                                                    <option value="">Any item type</option>
647
                                                    [%- FOREACH itemtype IN available_itemtypes %]
648
                                                        <option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option>
649
                                                    [%- END %]
650
                                                </select>
651
                                            </li>
652
                                        [% END %]
653
                                        [% IF remaining_holds_for_record > 1 %]
654
                                            <li>
655
                                                <label for="holds_to_place_count">Holds to place (count)</label>
656
                                                <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" />
657
                                            </li>
658
                                        [% ELSE %]
659
                                            <input type="hidden" name="holds_to_place_count" value="1" />
660
                                        [% END %]
661
                                    </ol>
659
662
660
                            <fieldset class="action">
663
661
                                [% IF ( patron.borrowernumber ) %]
664
                                <fieldset class="action">
662
                                    [% IF ( override_required ) %]
665
                                    [% IF ( patron.borrowernumber ) %]
663
                                        <button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
666
                                        [% IF ( override_required ) %]
664
                                    [% ELSIF ( none_available ) %]
667
                                            <button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
665
                                        <button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button>
668
                                        [% ELSIF ( none_available ) %]
666
                                    [% ELSE %]
669
                                            <button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button>
667
                                        <button type="submit" id="hold_any_btn" class="btn btn-primary">Place hold</button>
670
                                        [% ELSE %]
671
                                            <button type="submit" id="hold_any_btn" class="btn btn-primary">Place hold</button>
672
                                        [% END %]
668
                                    [% END %]
673
                                    [% END %]
669
                                [% END %]
674
                                </fieldset>
670
                            </fieldset>
675
                            </fieldset>
671
                        </fieldset>
676
                        </fieldset>
672
677
Lines 690-695 Link Here
690
                                [% END %]
695
                                [% END %]
691
                            </legend>
696
                            </legend>
692
697
698
                            <fieldset class="enable_request_group disable_request_any disable_request_specific">
693
                            [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
699
                            [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
694
                                <span class="error">
700
                                <span class="error">
695
                                    <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
701
                                    <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
Lines 755-761 Link Here
755
                                    </li>
761
                                    </li>
756
                                </ul>
762
                                </ul>
757
                            [% END %]
763
                            [% END %]
758
                            <button type="submit" id="hold_grp_btn" class="btn btn-primary warning">Place hold</button>
764
                                <fieldset class="action">
765
                                    <button type="submit" id="hold_grp_btn" class="btn btn-primary warning">Place hold</button>
766
                                </fieldset>
767
                            </fieldset>
759
                        </fieldset>
768
                        </fieldset>
760
                        [% END %]
769
                        [% END %]
761
                        <!-- /ItemGroup level holds -->
770
                        <!-- /ItemGroup level holds -->
Lines 776-1144 Link Here
776
                                [% END %]
785
                                [% END %]
777
                            </legend>
786
                            </legend>
778
787
779
                            <ol>
788
                            <fieldset class="enable_request_specific disable_request_any disable_request_group">
780
                                [% UNLESS Koha.Preference('item-level_itypes') %]
789
                                <ol>
781
                                    <li>
790
                                    [% UNLESS Koha.Preference('item-level_itypes') %]
782
                                        <span class="label">Item type:</span>
791
                                        <li>
783
                                        [% biblio_info.itemtype.translated_description | html %]
792
                                            <span class="label">Item type:</span>
784
                                    </li>
793
                                            [% biblio_info.itemtype.translated_description | html %]
785
                                [% END %]
794
                                        </li>
795
                                    [% END %]
786
796
787
                                [% IF ( biblio_info.biblioitem.publicationyear ) %]
797
                                    [% IF ( biblio_info.biblioitem.publicationyear ) %]
788
                                    <li>
798
                                        <li>
789
                                        <span class="label">Publication year:</span>
799
                                            <span class="label">Publication year:</span>
790
                                        [% biblio_info.biblioitem.publicationyear | html %]
800
                                            [% biblio_info.biblioitem.publicationyear | html %]
791
                                    </li>
801
                                        </li>
792
                                [% END %]
802
                                    [% END %]
793
                            </ol>
803
                                </ol>
794
804
795
                            <table id="requestspecific">
805
                                <table id="requestspecific">
796
                                <thead>
806
                                    <thead>
797
                                    <tr>
807
                                        <tr>
798
                                        <th>Hold</th>
808
                                            <th>Hold</th>
799
                                        <th>Allowed pickup locations</th>
809
                                            <th>Allowed pickup locations</th>
800
                                        [% IF Koha.Preference('item-level_itypes') %]
810
                                            [% IF Koha.Preference('item-level_itypes') %]
801
                                            <th>Item type</th>
811
                                                <th>Item type</th>
802
                                        [% END %]
812
                                            [% END %]
803
                                        <th>Barcode</th>
813
                                            <th>Barcode</th>
804
                                        [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
814
                                            [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
805
                                            <th>Item group</th>
815
                                                <th>Item group</th>
806
                                        [% END %]
816
                                            [% END %]
807
                                        <th>Home library</th>
817
                                            <th>Home library</th>
808
                                        <th>Last location</th>
818
                                            <th>Last location</th>
809
                                        [% IF itemdata_ccode %]
819
                                            [% IF itemdata_ccode %]
810
                                            <th>Collection</th>
820
                                                <th>Collection</th>
811
                                        [% END %]
821
                                            [% END %]
812
                                        <th>Call number</th>
822
                                            <th>Call number</th>
813
                                        <th>Copy number</th>
823
                                            <th>Copy number</th>
814
                                        [% IF itemdata_enumchron %]
824
                                            [% IF itemdata_enumchron %]
815
                                            <th>Vol no.</th>
825
                                                <th>Vol no.</th>
816
                                        [% END %]
826
                                            [% END %]
817
                                        <th>Information</th>
827
                                            <th>Information</th>
818
                                    </tr>
828
                                        </tr>
819
                                </thead>
829
                                    </thead>
820
                                <tbody>
830
                                    <tbody>
821
                                    [% SET selected = 0 %]
831
                                        [% SET selected = 0 %]
822
                                    [% FOREACH itemloo IN biblio_info.itemloop %]
832
                                        [% FOREACH itemloo IN biblio_info.itemloop %]
823
                                        [% UNLESS ( itemloo.hide ) %]
833
                                            [% UNLESS ( itemloo.hide ) %]
824
                                            <tr class="[% itemloo.backgroundcolor | html %]">
834
                                                <tr class="[% itemloo.backgroundcolor | html %]">
825
                                                <td>
835
                                                    <td>
826
                                                    [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
836
                                                        [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
827
                                                        <span class="error">
837
                                                            <span class="error">
828
                                                            <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
838
                                                                <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
829
                                                            Hold must be record level
839
                                                                Hold must be record level
830
                                                        </span>
840
                                                            </span>
831
                                                    [% ELSIF force_hold_level == 'item_group' %]
841
                                                        [% ELSIF force_hold_level == 'item_group' %]
832
                                                        <span class="error">
842
                                                            <span class="error">
833
                                                            <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
843
                                                                <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
834
                                                            Hold must be item group level
844
                                                                Hold must be item group level
835
                                                        </span>
845
                                                            </span>
836
                                                    [% ELSIF ( itemloo.available ) %]
846
                                                        [% ELSIF ( itemloo.available ) %]
837
                                                        <input type="[% reserve_input_type | html %]" name="checkitem" class="requestspecific" value="[% itemloo.itemnumber | html %]" />
847
                                                            <input type="[% reserve_input_type | html %]" name="checkitem" class="requestspecific" value="[% itemloo.itemnumber | html %]" />
838
                                                    [% ELSIF ( itemloo.override ) %]
848
                                                        [% ELSIF ( itemloo.override ) %]
839
                                                        <input type="[% reserve_input_type | html %]" name="checkitem" class="needsoverride requestspecific" value="[% itemloo.itemnumber | html %]" />
849
                                                            <input type="[% reserve_input_type | html %]" name="checkitem" class="needsoverride requestspecific" value="[% itemloo.itemnumber | html %]" />
840
                                                        <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
850
                                                            <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
841
                                                    [% ELSE %]
851
                                                        [% ELSE %]
842
                                                        <span class="error">
852
                                                            <span class="error">
843
                                                            <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
853
                                                                <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
844
                                                            [% IF itemloo.not_holdable %]
854
                                                                [% IF itemloo.not_holdable %]
845
                                                                [% IF itemloo.not_holdable == 'damaged' %]
855
                                                                    [% IF itemloo.not_holdable == 'damaged' %]
846
                                                                    <span>Item damaged</span>
856
                                                                        <span>Item damaged</span>
847
                                                                [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
857
                                                                    [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
848
                                                                    <span>Age restricted</span>
858
                                                                        <span>Age restricted</span>
849
                                                                [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
859
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
850
                                                                    <span>Exceeded max holds per record</span>
860
                                                                        <span>Exceeded max holds per record</span>
851
                                                                [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
861
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
852
                                                                    <span>Daily hold limit reached for patron</span>
862
                                                                        <span>Daily hold limit reached for patron</span>
853
                                                                [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
863
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
854
                                                                    <span>Too many holds</span>
864
                                                                        <span>Too many holds</span>
855
                                                                [% ELSIF itemloo.not_holdable == 'notReservable' %]
865
                                                                    [% ELSIF itemloo.not_holdable == 'notReservable' %]
856
                                                                    <span>Not holdable</span>
866
                                                                        <span>Not holdable</span>
857
                                                                [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
867
                                                                    [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
858
                                                                    <span>Patron is from different library</span>
868
                                                                        <span>Patron is from different library</span>
859
                                                                [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
869
                                                                    [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
860
                                                                    <span>Cannot place hold from patron's library</span>
870
                                                                        <span>Cannot place hold from patron's library</span>
861
                                                                [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
871
                                                                    [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
862
                                                                    <span>Patron already has hold for this item</span>
872
                                                                        <span>Patron already has hold for this item</span>
863
                                                                [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
873
                                                                    [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
864
                                                                    <span>Cannot be transferred to pickup library</span>
874
                                                                        <span>Cannot be transferred to pickup library</span>
865
                                                                [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
875
                                                                    [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
866
                                                                    <span>Only pickup locations within the same hold group are allowed</span>
876
                                                                        <span>Only pickup locations within the same hold group are allowed</span>
867
                                                                [% ELSIF itemloo.not_holdable == 'noReservesAllowed' %]
877
                                                                    [% ELSIF itemloo.not_holdable == 'noReservesAllowed' %]
868
                                                                    <span>No holds are allowed on this item</span>
878
                                                                        <span>No holds are allowed on this item</span>
869
                                                                [% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %]
879
                                                                    [% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %]
870
                                                                    <span>Library is not a pickup location</span>
880
                                                                        <span>Library is not a pickup location</span>
871
                                                                [% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %]
881
                                                                    [% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %]
872
                                                                    <span>No valid pickup location</span>
882
                                                                        <span>No valid pickup location</span>
873
                                                                [% ELSIF itemloo.not_holdable == 'notforloan' %]
883
                                                                    [% ELSIF itemloo.not_holdable == 'notforloan' %]
874
                                                                    <span>Not for loan</span>
884
                                                                        <span>Not for loan</span>
875
                                                                [% ELSE %]
885
                                                                    [% ELSE %]
876
                                                                    <span>[% itemloo.not_holdable | html %]</span>
886
                                                                        <span>[% itemloo.not_holdable | html %]</span>
887
                                                                    [% END %]
877
                                                                [% END %]
888
                                                                [% END %]
889
                                                            </span>
890
                                                        [% END # /IF force_hold_level %]
891
                                                    </td>
892
                                                    <td>
893
                                                    [% IF (itemloo.pickup_locations_count > 0) || Koha.Preference('AllowHoldPolicyOverride') %]
894
                                                        <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations requestspecific" style="width:100%;"
895
                                                                data-item-id="[% itemloo.itemnumber | html %]"
896
                                                                data-patron-id="[% patron.borrowernumber | html %]"
897
                                                                data-pickup-location-source="item">
898
                                                        [% IF (itemloo.default_pickup_location) %]
899
                                                            <option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option>
900
                                                        [% END %]
901
                                                        </select>
902
                                                    [% END %]
903
                                                    </td>
904
                                                    [% IF Koha.Preference('item-level_itypes') %]
905
                                                        <td>
906
                                                            [% UNLESS ( noItemTypeImages ) %]
907
                                                                [% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %]
878
                                                            [% END %]
908
                                                            [% END %]
879
                                                        </span>
909
                                                            <span class="itypetext">[% itemloo.itemtype.translated_description | html %]</span>
880
                                                    [% END # /IF force_hold_level %]
910
                                                        </td>
881
                                                </td>
882
                                                <td>
883
                                                [% IF (itemloo.pickup_locations_count > 0) || Koha.Preference('AllowHoldPolicyOverride') %]
884
                                                    <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations requestspecific" style="width:100%;"
885
                                                            data-item-id="[% itemloo.itemnumber | html %]"
886
                                                            data-patron-id="[% patron.borrowernumber | html %]"
887
                                                            data-pickup-location-source="item">
888
                                                    [% IF (itemloo.default_pickup_location) %]
889
                                                        <option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option>
890
                                                    [% END %]
911
                                                    [% END %]
891
                                                    </select>
892
                                                [% END %]
893
                                                </td>
894
                                                [% IF Koha.Preference('item-level_itypes') %]
895
                                                    <td>
912
                                                    <td>
896
                                                        [% UNLESS ( noItemTypeImages ) %]
913
                                                        [% itemloo.barcode | html %]
897
                                                            [% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %]
898
                                                        [% END %]
899
                                                        <span class="itypetext">[% itemloo.itemtype.translated_description | html %]</span>
900
                                                    </td>
914
                                                    </td>
901
                                                [% END %]
915
                                                    [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
902
                                                <td>
916
                                                        <td>
903
                                                    [% itemloo.barcode | html %]
917
                                                            [% itemloo.object.item_group.description | html %]
904
                                                </td>
918
                                                        </td>
905
                                                [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
919
                                                    [% END %]
906
                                                    <td>
920
                                                    <td>
907
                                                        [% itemloo.object.item_group.description | html %]
921
                                                        [% Branches.GetName( itemloo.homebranch ) | html %]
908
                                                    </td>
922
                                                    </td>
909
                                                [% END %]
910
                                                <td>
911
                                                    [% Branches.GetName( itemloo.homebranch ) | html %]
912
                                                </td>
913
                                                <td>
914
                                                    [% Branches.GetName( itemloo.holdingbranch ) | html %]
915
                                                </td>
916
                                                [% IF itemdata_ccode %]
917
                                                    <td>
923
                                                    <td>
918
                                                        [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
924
                                                        [% Branches.GetName( itemloo.holdingbranch ) | html %]
919
                                                    </td>
925
                                                    </td>
920
                                                [% END %]
926
                                                    [% IF itemdata_ccode %]
921
                                                <td>
927
                                                        <td>
922
                                                    [% itemloo.itemcallnumber | html %]
928
                                                            [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
923
                                                </td>
929
                                                        </td>
924
                                                <td>
930
                                                    [% END %]
925
                                                    [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %]&nbsp;[% END %]
926
                                                </td>
927
                                                [% IF itemdata_enumchron %]
928
                                                    <td>
931
                                                    <td>
929
                                                        [% itemloo.enumchron | html %]
932
                                                        [% itemloo.itemcallnumber | html %]
930
                                                    </td>
933
                                                    </td>
931
                                                [% END %]
932
                                                [% IF ( itemloo.onloan ) %]
933
                                                    <td data-order="[% itemloo.date_due | html %]">
934
                                                        <span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
935
                                                [% ELSE %]
936
                                                    <td>
934
                                                    <td>
937
                                                        [% IF ( itemloo.transfertwhen ) %]
935
                                                        [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %]&nbsp;[% END %]
938
                                                            <span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
936
                                                    </td>
939
                                                            to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | $KohaDates %]</span>
937
                                                    [% IF itemdata_enumchron %]
940
                                                        [% END %]
938
                                                        <td>
941
                                                [% END %]
939
                                                            [% itemloo.enumchron | html %]
940
                                                        </td>
941
                                                    [% END %]
942
                                                    [% IF ( itemloo.onloan ) %]
943
                                                        <td data-order="[% itemloo.date_due | html %]">
944
                                                            <span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
945
                                                    [% ELSE %]
946
                                                        <td>
947
                                                            [% IF ( itemloo.transfertwhen ) %]
948
                                                                <span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
949
                                                                to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | $KohaDates %]</span>
950
                                                            [% END %]
951
                                                    [% END %]
942
952
943
                                                    [% IF ( itemloo.reservedate ) %]
953
                                                        [% IF ( itemloo.reservedate ) %]
944
                                                        [% IF ( itemloo.nocancel ) %]
954
                                                            [% IF ( itemloo.nocancel ) %]
945
                                                                <span>Can't be cancelled when item is in transit</span>
955
                                                                    <span>Can't be cancelled when item is in transit</span>
946
                                                        [% ELSE %]
947
                                                            [% IF ( itemloo.waitingdate ) %]
948
                                                                [% IF ( itemloo.canreservefromotherbranches ) %]
949
                                                                    <span>Waiting for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span>
950
                                                                [% ELSE %]
951
                                                                    <span>Waiting at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span>
952
                                                                [% END %]
953
                                                            [% ELSE %]
956
                                                            [% ELSE %]
954
                                                                [% IF ( itemloo.canreservefromotherbranches ) %]
957
                                                                [% IF ( itemloo.waitingdate ) %]
955
                                                                    [% IF itemloo.reservedate %]
958
                                                                    [% IF ( itemloo.canreservefromotherbranches ) %]
956
                                                                        <span>On hold for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since</span>
959
                                                                        <span>Waiting for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span>
957
                                                                    [% ELSE %]
960
                                                                    [% ELSE %]
958
                                                                        <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span>
961
                                                                        <span>Waiting at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.waitingdate | $KohaDates %]</span>
959
                                                                    [% END %]
962
                                                                    [% END %]
960
                                                                [% ELSIF itemloo.reservedate %]
961
                                                                    <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.reservedate | $KohaDates %]</span>
962
                                                                [% ELSE %]
963
                                                                [% ELSE %]
963
                                                                    <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span>
964
                                                                    [% IF ( itemloo.canreservefromotherbranches ) %]
965
                                                                        [% IF itemloo.reservedate %]
966
                                                                            <span>On hold for [% INCLUDE 'patron-title.inc' patron=itemloo.ReservedFor %] expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since</span>
967
                                                                        [% ELSE %]
968
                                                                            <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span>
969
                                                                        [% END %]
970
                                                                    [% ELSIF itemloo.reservedate %]
971
                                                                        <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since [% itemloo.reservedate | $KohaDates %]</span>
972
                                                                    [% ELSE %]
973
                                                                        <span>On hold expected at [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]</span>
974
                                                                    [% END %]
964
                                                                [% END %]
975
                                                                [% END %]
965
                                                            [% END %]
976
                                                            [% END # /IF itemloo.nocancel %]
966
                                                        [% END # /IF itemloo.nocancel %]
977
                                                        [% ELSE %]
967
                                                    [% ELSE %]
978
                                                            Not on hold
968
                                                        Not on hold
979
                                                        [% END # /IF itemloo.reservedate %]
969
                                                    [% END # /IF itemloo.reservedate %]
970
971
                                                    [% IF itemloo.item_level_holds == "N" %]
972
                                                        <br/>Item level hold not allowed from OPAC
973
                                                    [% ELSIF itemloo.item_level_holds == "F" %]
974
                                                        <br/>Item level hold forced from OPAC
975
                                                    [% END %]
976
980
977
                                                    [% IF ( itemloo.itemlost ) %]
981
                                                        [% IF itemloo.item_level_holds == "N" %]
978
                                                       <span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span>
982
                                                            <br/>Item level hold not allowed from OPAC
979
                                                    [% END %]
983
                                                        [% ELSIF itemloo.item_level_holds == "F" %]
984
                                                            <br/>Item level hold forced from OPAC
985
                                                        [% END %]
980
986
981
                                                    [% IF ( itemloo.damaged ) %]
987
                                                        [% IF ( itemloo.itemlost ) %]
982
                                                        <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span>
988
                                                           <span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span>
983
                                                    [% END %]
989
                                                        [% END %]
984
990
985
                                                    [% IF ( itemloo.withdrawn ) %]
991
                                                        [% IF ( itemloo.damaged ) %]
986
                                                       <span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span>
992
                                                            <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span>
987
                                                    [% END %]
993
                                                        [% END %]
988
994
989
                                                    [% IF ( itemloo.notforloan ) %]
995
                                                        [% IF ( itemloo.withdrawn ) %]
990
                                                       <span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span>
996
                                                           <span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span>
991
                                                    [% ELSIF ( itemloo.notforloanitype ) %]
997
                                                        [% END %]
992
                                                       <span class="nfl">Not for loan (Itemtype not for loan)</span>
993
                                                    [% END %]
994
                                                </td>
995
                                            </tr>
996
                                        [% END # / UNLESS itemloo.hide %]
997
                                    [% END # /FOREACH itemloo %]
998
                                </tbody>
999
                            </table> <!-- /#requestspecific -->
1000
1001
                            [% IF hiddencount %]
1002
                                <form method="get">
1003
                                    <p class="hiddencount">
1004
                                        <a href="request.pl?biblionumber=[% biblio_info.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
1005
                                    </p>
1006
                                </form>
1007
                            [% END # /IF hiddencount %]
1008
1009
                        [% ELSE # /UNLESS multi_hold %]
1010
                            <fieldset class="rows">
1011
                                <legend>Hold details</legend>
1012
                                <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
1013
                                        <input type="hidden" name="multi_holds" id="multi_holds" value="1" />
1014
                                        <input type="hidden" name="request" value="any"/>
1015
                                    <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
1016
                                        [% FOREACH biblioloo IN biblioloop %]
1017
                                            <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblioloo.biblionumber | html %]"/>
1018
                                            [% UNLESS biblioloo.none_avail %]
1019
                                                <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/>
1020
                                                <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
1021
                                                <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
1022
                                            [% END %]
1023
                                        [% END %]
1024
998
1025
                                <table id="requesttitles">
999
                                                        [% IF ( itemloo.notforloan ) %]
1026
                                    <tr>
1000
                                                           <span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span>
1027
                                        <th>&nbsp;</th>
1001
                                                        [% ELSIF ( itemloo.notforloanitype ) %]
1028
                                        <th>Pickup location</th>
1002
                                                           <span class="nfl">Not for loan (Itemtype not for loan)</span>
1029
                                        <th>Title</th>
1030
                                        [% UNLESS Koha.Preference('item-level_itypes') %]
1031
                                            <th>Item type</th>
1032
                                        [% END %]
1033
                                        <th>Priority</th>
1034
                                        <th>Information</th>
1035
                                    </tr>
1036
                                    [% FOREACH biblioloo IN biblioloop %]
1037
                                        [% IF ( biblioloo.warn ) %]
1038
                                            <tr class="onissue">
1039
                                        [% ELSE %]
1040
                                            <tr>
1041
                                        [% END %]
1042
                                            <td>
1043
                                                [% UNLESS ( biblioloo.warn ) %]
1044
                                                    <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
1045
                                                [% END %]
1046
                                            </td>
1047
                                            <td>
1048
                                                [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %]
1049
                                                    <select name="pickup_[% biblioloo.biblionumber | html %]"
1050
                                                            class="multi_pickup_select"
1051
                                                            data-biblio-id="[% biblioloo.biblionumber | html %]"
1052
                                                            data-patron-id="[% patron.borrowernumber | html %]"
1053
                                                            data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'>
1054
                                                        <option value=""></option>
1055
                                                        [% FOREACH pickup_location IN biblioloo.pickup_locations %]
1056
                                                            <option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option>
1057
                                                        [% END %]
1003
                                                        [% END %]
1058
                                                    </select>
1004
                                                    </td>
1005
                                                </tr>
1006
                                            [% END # / UNLESS itemloo.hide %]
1007
                                        [% END # /FOREACH itemloo %]
1008
                                    </tbody>
1009
                                </table> <!-- /#requestspecific -->
1010
1011
                                [% IF hiddencount %]
1012
                                    <form method="get">
1013
                                        <p class="hiddencount">
1014
                                            <a href="request.pl?biblionumber=[% biblio_info.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
1015
                                        </p>
1016
                                    </form>
1017
                                [% END # /IF hiddencount %]
1018
1019
                            [% ELSE # /UNLESS multi_hold %]
1020
                                <fieldset class="rows">
1021
                                    <legend>Hold details</legend>
1022
                                    <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
1023
                                            <input type="hidden" name="multi_holds" id="multi_holds" value="1" />
1024
                                            <input type="hidden" name="request" value="any"/>
1025
                                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
1026
                                            [% FOREACH biblioloo IN biblioloop %]
1027
                                                <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblioloo.biblionumber | html %]"/>
1028
                                                [% UNLESS biblioloo.none_avail %]
1029
                                                    <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/>
1030
                                                    <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
1031
                                                    <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
1059
                                                [% END %]
1032
                                                [% END %]
1060
                                            </td>
1033
                                            [% END %]
1061
                                            <td>
1034
1062
                                                <ul>
1035
                                    <table id="requesttitles">
1063
                                                    <li>
1036
                                        <tr>
1064
                                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
1037
                                            <th>&nbsp;</th>
1065
                                                        [% IF biblioloo.author %] by [% biblioloo.author | html %][% END %]
1038
                                            <th>Pickup location</th>
1066
                                                    </li>
1039
                                            <th>Title</th>
1067
                                                    [% IF ( biblioloo.publicationyear ) %]
1040
                                            [% UNLESS Koha.Preference('item-level_itypes') %]
1041
                                                <th>Item type</th>
1042
                                            [% END %]
1043
                                            <th>Priority</th>
1044
                                            <th>Information</th>
1045
                                        </tr>
1046
                                        [% FOREACH biblioloo IN biblioloop %]
1047
                                            [% IF ( biblioloo.warn ) %]
1048
                                                <tr class="onissue">
1049
                                            [% ELSE %]
1050
                                                <tr>
1051
                                            [% END %]
1052
                                                <td>
1053
                                                    [% UNLESS ( biblioloo.warn ) %]
1054
                                                        <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
1055
                                                    [% END %]
1056
                                                </td>
1057
                                                <td>
1058
                                                    [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %]
1059
                                                        <select name="pickup_[% biblioloo.biblionumber | html %]"
1060
                                                                class="multi_pickup_select"
1061
                                                                data-biblio-id="[% biblioloo.biblionumber | html %]"
1062
                                                                data-patron-id="[% patron.borrowernumber | html %]"
1063
                                                                data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'>
1064
                                                            <option value=""></option>
1065
                                                            [% FOREACH pickup_location IN biblioloo.pickup_locations %]
1066
                                                                <option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option>
1067
                                                            [% END %]
1068
                                                        </select>
1069
                                                    [% END %]
1070
                                                </td>
1071
                                                <td>
1072
                                                    <ul>
1068
                                                        <li>
1073
                                                        <li>
1069
                                                            <span class="label">Publication year:</span> [% biblioloo.publicationyear | html %]
1074
                                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
1075
                                                            [% IF biblioloo.author %] by [% biblioloo.author | html %][% END %]
1070
                                                        </li>
1076
                                                        </li>
1077
                                                        [% IF ( biblioloo.publicationyear ) %]
1078
                                                            <li>
1079
                                                                <span class="label">Publication year:</span> [% biblioloo.publicationyear | html %]
1080
                                                            </li>
1081
                                                        [% END %]
1082
                                                    </ul>
1083
                                                    [% IF ( biblioloo.warn ) %]
1084
                                                        <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
1071
                                                    [% END %]
1085
                                                    [% END %]
1072
                                                </ul>
1073
                                                [% IF ( biblioloo.warn ) %]
1074
                                                    <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
1075
                                                [% END %]
1076
                                            </td>
1077
                                            [% UNLESS Koha.Preference('item-level_itypes') %]
1078
                                                <td>
1079
                                                    <img src="[% biblioloo.itemtype.image_location | html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" />
1080
                                                </td>
1086
                                                </td>
1081
                                            [% END %]
1087
                                                [% UNLESS Koha.Preference('item-level_itypes') %]
1082
                                            <td>[% biblioloo.rank | html %]</td>
1088
                                                    <td>
1083
                                            <td>
1089
                                                        <img src="[% biblioloo.itemtype.image_location | html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" />
1084
                                                [% IF ( biblioloo.checked_previously ) %]
1090
                                                    </td>
1085
                                                    <span>Patron has previously checked out this title</span><br/>
1086
                                                [% END %]
1091
                                                [% END %]
1087
                                                [% IF ( biblioloo.alreadyres ) %]
1092
                                                <td>[% biblioloo.rank | html %]</td>
1088
                                                    <ul>
1093
                                                <td>
1089
                                                [% ELSE %]
1094
                                                    [% IF ( biblioloo.checked_previously ) %]
1090
                                                    [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1095
                                                        <span>Patron has previously checked out this title</span><br/>
1096
                                                    [% END %]
1097
                                                    [% IF ( biblioloo.alreadyres ) %]
1091
                                                        <ul>
1098
                                                        <ul>
1099
                                                    [% ELSE %]
1100
                                                        [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1101
                                                            <ul>
1102
                                                        [% END %]
1092
                                                    [% END %]
1103
                                                    [% END %]
1093
                                                [% END %]
1094
1095
                                                [% IF ( biblioloo.alreadyres ) %]
1096
                                                <li>
1097
                                                    [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] <strong>already has a hold</strong> on this item
1098
                                                </li>
1099
                                                [% END %]
1100
                                                [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1101
                                                    <li> <strong>No items are available</strong> to be placed on hold</li>
1102
                                                [% END %]
1103
1104
1104
                                                [% IF ( biblioloo.alreadyres ) %]
1105
                                                    [% IF ( biblioloo.alreadyres ) %]
1105
                                                    </ul>
1106
                                                    <li>
1106
                                                [% ELSE %]
1107
                                                        [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] <strong>already has a hold</strong> on this item
1108
                                                    </li>
1109
                                                    [% END %]
1107
                                                    [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1110
                                                    [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1111
                                                        <li> <strong>No items are available</strong> to be placed on hold</li>
1112
                                                    [% END %]
1113
1114
                                                    [% IF ( biblioloo.alreadyres ) %]
1108
                                                        </ul>
1115
                                                        </ul>
1116
                                                    [% ELSE %]
1117
                                                        [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
1118
                                                            </ul>
1119
                                                        [% END %]
1109
                                                    [% END %]
1120
                                                    [% END %]
1110
                                                [% END %]
1121
                                                </td>
1111
                                            </td>
1122
                                            </tr>
1112
                                        </tr>
1123
                                        [% END # /FOREACH biblioloo %]
1113
                                    [% END # /FOREACH biblioloo %]
1124
                                    </table> <!-- /#requesttitles -->
1114
                                </table> <!-- /#requesttitles -->
1125
                                </fieldset>
1115
                            </fieldset>
1126
                                <fieldset class="action">
1127
                                    [% IF ( patron AND patron.borrowernumber ) %]
1128
                                            [% IF ( override_required ) %]
1129
                                                <button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button>
1130
                                            [% ELSIF ( no_bibs_available ) %]
1131
                                                <button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button>
1132
                                            [% ELSIF ( none_available ) %]
1133
                                                <button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button>
1134
                                            [% ELSE %]
1135
                                                <button type="submit" id="hold_multi_btn" class="btn btn-primary" id="multi_hold_submit">Place holds</button>
1136
                                            [% END %]
1137
                                    [% END # /IF patron %]
1138
                                </fieldset> <!-- /.action -->
1116
1139
1117
                        [% END # /UNLESS multi_hold %]
1140
                            [% END # /UNLESS multi_hold %]
1118
1141
1119
                        <fieldset class="action">
1142
                        </fieldset>
1120
                            [% IF ( patron AND patron.borrowernumber ) %]
1121
                                [% IF ( multi_hold ) %]
1122
                                    [% IF ( override_required ) %]
1123
                                        <button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button>
1124
                                    [% ELSIF ( no_bibs_available ) %]
1125
                                        <button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button>
1126
                                    [% ELSIF ( none_available ) %]
1127
                                        <button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button>
1128
                                    [% ELSE %]
1129
                                        <button type="submit" id="hold_multi_btn" class="btn btn-primary" id="multi_hold_submit">Place holds</button>
1130
                                    [% END %]
1131
                                [% ELSE %]
1132
                                    [% IF ( override_required ) %]
1133
                                        <button type="submit" id="hold_item_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
1134
                                    [% ELSIF ( none_available ) %]
1135
                                        <button type="submit" id="hold_item_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place hold</button>
1136
                                    [% ELSE %]
1137
                                        <button type="submit" id="hold_item_btn" class="btn btn-primary">Place hold</button>
1138
                                    [% END %]
1139
                                [% END %]
1140
                            [% END # /IF patron %]
1141
                        </fieldset> <!-- /.action -->
1142
                    </fieldset> <!-- /.rows -->
1143
                    </fieldset> <!-- /.rows -->
1143
                </form> <!-- /#hold-request-form -->
1144
                </form> <!-- /#hold-request-form -->
1144
            [% END %]
1145
            [% END %]
Lines 1604-1625 Link Here
1604
1605
1605
        function ToggleHoldsToPlace() {
1606
        function ToggleHoldsToPlace() {
1606
            if ( $("#requestany").prop('checked') ) {
1607
            if ( $("#requestany").prop('checked') ) {
1607
                $("#holds_to_place_count, #pickup-next-avail, #itemtype, #hold_any_btn").prop('disabled', false);
1608
                $(".disable_request_any").prop('disabled',true);
1609
                $(".enable_request_any").prop('disabled',false);
1608
                $(".requestspecific,.requestgrp").prop('checked', false);
1610
                $(".requestspecific,.requestgrp").prop('checked', false);
1609
                $(".requestspecific","#requestspecific").prop('disabled',true);
1610
                $("#hold_item_btn, #hold_grp_btn, #pickup-item-group").prop("disabled", true );
1611
                $("#hold_any_btn").prop("disabled", false );
1612
            } else if( $(".requestspecific").prop('checked') ) {
1611
            } else if( $(".requestspecific").prop('checked') ) {
1613
                $(".requestspecific","#requestspecific").prop('disabled',false);
1612
                $(".disable_request_specific").prop('disabled',true);
1614
                $("#holds_to_place_count, #pickup-item-group, #pickup-next-avail #itemtype, #hold_any_btn").prop('disabled', true);
1613
                $(".enable_request_specific").prop('disabled',false);
1615
                $("#hold_item_btn").prop("disabled", false );
1616
                $("#hold_any_btn,#hold_grp_btn").prop("disabled", true );
1617
                $("#requestany,.requestgrp").prop('checked', false);
1614
                $("#requestany,.requestgrp").prop('checked', false);
1618
            } else {
1615
            } else {
1619
                $("#holds_to_place_count, #pickup-next-avail, #itemtype, #hold_any_btn").prop('disabled', true);
1616
                $(".disable_request_group").prop('disabled',true);
1620
                $("#hold_grp_btn, #pickup-item-group").prop("disabled", false );
1617
                $(".enable_request_group").prop('disabled',false);
1621
                $(".requestspecific","#requestspecific").prop('disabled',true);
1622
                $("#hold_any_btn,#hold_item_btn").prop("disabled", true );
1623
                $("#requestany,.requestspecific").prop('checked', false);
1618
                $("#requestany,.requestspecific").prop('checked', false);
1624
            }
1619
            }
1625
        }
1620
        }
1626
- 

Return to bug 30579