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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-35 / +41 lines)
Lines 47-92 Link Here
47
            [% SET tr_class = hold.suspend ? 'suspend' : '' %]
47
            [% SET tr_class = hold.suspend ? 'suspend' : '' %]
48
            <tr class="[% tr_class | html %]">
48
            <tr class="[% tr_class | html %]">
49
                <td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]" /></td>
49
                <td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]" /></td>
50
                <td>
50
                <td style="min-width:185px;" data-order="[% priority | html %]">
51
                    <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
51
                    <div>
52
                    <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
52
                        <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
53
                    <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
53
                        <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
54
                    [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
54
                        <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
55
                        [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
55
                        [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
56
                            <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
56
                            [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
57
                                [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
57
                                <label for="rank-request_[% hold.reserve_id | html %]">Change priority to:</label>
58
                                    [% FOREACH priority IN all_priorities %]
58
                                <select name="rank-request" id="rank-request_[% hold.reserve_id | html %]" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
59
                                        [% IF priority == this_priority %]
59
                                    [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
60
                                            <option value="[% priority | html %]" selected="selected">[% priority | html %]</option>
60
                                        [% FOREACH priority IN all_priorities %]
61
                                        [% ELSIF priority > 0 %]
61
                                            [% IF priority == this_priority %]
62
                                            <option value="[% priority | html %]">[% priority | html %]</option>
62
                                                <option value="[% priority | html %]" selected="selected">[% priority | html %]</option>
63
                                            [% ELSIF priority > 0 %]
64
                                                <option value="[% priority | html %]">[% priority | html %]</option>
65
                                            [% END %]
63
                                        [% END %]
66
                                        [% END %]
67
                                    [% ELSE %]
68
                                        <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
64
                                    [% END %]
69
                                    [% END %]
65
                                [% ELSE %]
70
                                    <option value="del">del</option>
66
                                    <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
71
                                </select>
67
                                [% END %]
72
                            [% ELSE %]
68
                                <option value="del">del</option>
73
                                <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" />
69
                            </select>
74
                                <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
70
                        [% ELSE %]
75
                                    [% IF ( hold.found ) %]
71
                            <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" />
76
                                        [% IF ( hold.intransit ) %]
72
                            <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
77
                                            <option value="T" selected="selected">In transit</option>
73
                                [% IF ( hold.found ) %]
78
                                        [% ELSIF (hold.inprocessing) %]
74
                                    [% IF ( hold.intransit ) %]
79
                                            <option value="P" selected="selected">In processing</option>
75
                                        <option value="T" selected="selected">In transit</option>
80
                                        [% ELSE %]
76
                                    [% ELSIF (hold.inprocessing) %]
81
                                            <option value="W" selected="selected">Waiting</option>
77
                                        <option value="P" selected="selected">In processing</option>
82
                                        [% END %]
78
                                    [% ELSE %]
83
                                    [% ELSE %]
79
                                        <option value="W" selected="selected">Waiting</option>
84
                                        <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
80
                                    [% END %]
85
                                    [% END %]
81
                                [% ELSE %]
86
                                </select>
82
                                    <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
87
                            [% END %]
83
                                [% END %]
88
                        [% ELSE %]
84
                            </select>
89
                            <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" />
85
                        [% END %]
90
                        [% END %]
86
                    [% ELSE %]
91
                        <div>
87
                        <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" />
92
                            <label for="current_priority_[% hold.reserve_id | html %]">Current priority: </label>
88
                        [% hold.priority | html %]
93
                            <span id="current_priority_[% hold.reserve_id | html %]" class="current_priority badge text-bg-info">[% hold.priority | html %]</span>
89
                    [% END %]
94
                        </div>
95
                    </div>
90
                </td>
96
                </td>
91
                [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
97
                [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
92
                    [%- UNLESS hold.found -%]
98
                    [%- UNLESS hold.found -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +8 lines)
Lines 105-110 Link Here
105
        :disabled {
105
        :disabled {
106
            opacity: 0.5;
106
            opacity: 0.5;
107
        }
107
        }
108
        .current_priority {
109
            width: 50px;
110
            text-align: left;
111
            margin-top: 5px;
112
        }
113
        .rank-request {
114
            width: 50px;
115
        }
108
    </style>
116
    </style>
109
[% END %]
117
[% END %]
110
</head>
118
</head>
111
- 

Return to bug 40654