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

(-)a/admin/columns_settings.yml (+32 lines)
Lines 1675-1680 modules: Link Here
1675
            -
1675
            -
1676
              columnname: action
1676
              columnname: action
1677
1677
1678
    holds:
1679
      patron_holds_table:
1680
        columns:
1681
            -
1682
              columnname: checkbox
1683
              cannot_be_toggled: 1
1684
              cannot_be_modified: 1
1685
            -
1686
              columnname: priority
1687
            -
1688
              columnname: change_priority
1689
            -
1690
              columnname: patron
1691
            -
1692
              columnname: notes
1693
            -
1694
              columnname: date
1695
            -
1696
              columnname: expiration
1697
            -
1698
              columnname: pickup_library
1699
            -
1700
              columnname: details
1701
            -
1702
              columnname: set_lowest_priority
1703
            -
1704
              columnname: delete
1705
            -
1706
              columnname: suspend
1707
            -
1708
              columnname: print_slip
1709
1678
    holdsratios:
1710
    holdsratios:
1679
      holds-ratios:
1711
      holds-ratios:
1680
        default_display_length: 20
1712
        default_display_length: 20
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-225 / +200 lines)
Lines 1-28 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
<table class="holds_table">
4
<table id="patron_holds_table" class="holds_table">
5
    <thead>
5
    <thead>
6
        <tr>
6
        <tr>
7
            <th><input type="checkbox" class="select_hold_all"/></th>
7
            <th id="checkbox" data-colname="checkbox"><input type="checkbox" class="select_hold_all"/></th>
8
            <th>Priority</th>
8
            <th id="priority" data-colname="priority">Priority</th>
9
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
9
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
10
                <th>&nbsp;</th>
10
                <th id="change_priority" data-colname="change_priority">Change priority</th>
11
            [% END %]
11
            [% END %]
12
            <th>Patron</th>
12
            <th id="patron" data-colname="patron">Patron</th>
13
            <th>Notes</th>
13
            <th id="notes" data-colname="notes">Notes</th>
14
            <th>Date</th>
14
            <th id="date" data-colname="date">Date</th>
15
            <th>Expiration</th>
15
            <th id="expiration" data-colname="expiration">Expiration</th>
16
            <th>Pickup library</th>
16
            <th id="pickup_library" data-colname="pickup_library">Pickup library</th>
17
            <th>Details</th>
17
            <th id="details" data-colname="details">Details</th>
18
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
18
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
19
                <th>
19
                <th id="set_lowest_priority" data-colname="set_lowest_priority"><i class="fa fa-lg fa-rotate-90 fa-fast-forward" title="Toggle set to lowest priority"></i></th>
20
                    <i class="fa fa-lg fa-rotate-90 fa-fast-forward" title="Toggle set to lowest priority"></i>
21
                </th>
22
            [% END %]
20
            [% END %]
23
            <th>&nbsp;</th>
21
            <th id="delete" data-colname="delete">Delete</th>
24
            <th>&nbsp;</th>
22
            <th id="suspend" data-colname="suspend">Suspend</th>
25
            <th>Print hold/transfer slip</th>
23
            <th id="print_slip" data-colname="print_slip">Print hold/transfer slip</th>
26
        </tr>
24
        </tr>
27
    </thead>
25
    </thead>
28
    [%- SET first_priority = 0 -%]
26
    [%- SET first_priority = 0 -%]
Lines 40-276 Link Here
40
            [%- loop_priority = loop_priority + 1- %]
38
            [%- loop_priority = loop_priority + 1- %]
41
        [%- END -%]
39
        [%- END -%]
42
    [% END %]
40
    [% END %]
43
41
    <tbody>
44
    [% FOREACH hold IN holds %]
42
        [% FOREACH hold IN holds %]
45
    [%- IF !hold.found && first_priority == 0 -%]
43
        [%- IF !hold.found && first_priority == 0 -%]
46
        [%- first_priority = hold.priority -%]
44
            [%- first_priority = hold.priority -%]
47
        [%- found_holds = loop.index() -%]
45
            [%- found_holds = loop.index() -%]
48
    [%- END -%]
46
        [%- END -%]
49
    [%- IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' -%]
47
        [%- IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' -%]
50
        [%- this_priority = hold.priority -%]
48
            [%- this_priority = hold.priority -%]
51
    [%- ELSE -%]
49
        [%- ELSE -%]
52
        [%- this_priority = loop.count() - found_holds -%]
50
            [%- this_priority = loop.count() - found_holds -%]
53
    [%- END -%]
51
        [%- END -%]
54
        [% IF hold.suspend %]
52
            [% IF hold.suspend %]
55
            <tr class="suspend">
53
                <tr class="suspend">
56
        [% ELSE %]
54
            [% ELSE %]
57
            <tr>
55
                <tr>
58
        [% END %]
56
            [% END %]
59
            <td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></td>
57
                <td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></td>
60
            <td>
58
                <td>
61
                <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
59
                    <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
62
                <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
60
                    <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
63
                <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
61
                    <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
64
                [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
62
                    [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
65
                    [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
63
                        [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
66
                        <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
64
                            <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
67
                        [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
65
                            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
68
                            [% PROCESS priority_dropdown %]
66
                                [% PROCESS priority_dropdown %]
69
                        [% ELSE %]
70
                            <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
71
                        [% END %]
72
                            <option value="del">del</option>
73
                        </select>
74
                    [% ELSE %]
75
                        <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
76
                        <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
77
                        [% IF ( hold.found ) %]
78
                            [% IF ( hold.intransit ) %]
79
                                <option value="T" selected="selected">In transit</option>
80
                            [% ELSIF (hold.inprocessing) %]
81
                                <option value="P" selected="selected">In processing</option>
82
                            [% ELSE %]
67
                            [% ELSE %]
83
                                <option value="W" selected="selected">Waiting</option>
68
                                <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
84
                            [% END %]
69
                            [% END %]
70
                                <option value="del">del</option>
71
                            </select>
85
                        [% ELSE %]
72
                        [% ELSE %]
86
                            <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
73
                            <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
74
                            <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
75
                            [% IF ( hold.found ) %]
76
                                [% IF ( hold.intransit ) %]
77
                                    <option value="T" selected="selected">In transit</option>
78
                                [% ELSIF (hold.inprocessing) %]
79
                                    <option value="P" selected="selected">In processing</option>
80
                                [% ELSE %]
81
                                    <option value="W" selected="selected">Waiting</option>
82
                                [% END %]
83
                            [% ELSE %]
84
                                <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
85
                            [% END %]
86
                            </select>
87
                        [% END %]
87
                        [% END %]
88
                        </select>
88
                    [% ELSE %]
89
                        <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
90
                        [% hold.priority | html %]
89
                    [% END %]
91
                    [% END %]
90
                [% ELSE %]
92
                </td>
91
                    <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
93
                [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
92
                    [% hold.priority | html %]
94
                [%- UNLESS hold.found -%]
93
                [% END %]
95
                        [%- SET prev_priority  = loop.prev.priority -%]
94
            </td>
96
                        [%- SET next_priority  = loop.next.priority -%]
95
            [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
97
                        <td style="white-space:nowrap;">
96
            [%- UNLESS hold.found -%]
98
                            <a class="hold-arrow" title="Move hold up" href="request.pl?action=move&amp;where=up&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
97
                    [%- SET prev_priority  = loop.prev.priority -%]
99
                                <i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i>
98
                    [%- SET next_priority  = loop.next.priority -%]
100
                            </a>
99
                    <td style="white-space:nowrap;">
100
                        <a class="hold-arrow" title="Move hold up" href="request.pl?action=move&amp;where=up&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
101
                            <i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i>
102
                        </a>
103
101
104
                        <a class="hold-arrow" title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
102
                            <a class="hold-arrow" title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
105
                            <i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i>
103
                                <i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i>
106
                        </a>
104
                            </a>
107
105
108
                        <a class="hold-arrow" title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
106
                            <a class="hold-arrow" title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
109
                            <i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i>
107
                                <i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i>
110
                        </a>
108
                            </a>
111
109
112
                        <a class="hold-arrow" title="Move hold down" href="request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
110
                            <a class="hold-arrow" title="Move hold down" href="request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
113
                            <i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i>
111
                                <i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i>
114
                        </a>
112
                            </a>
115
                    </td>
113
                        </td>
116
        [%- ELSE -%]
114
            [%- ELSE -%]
117
            <td></td>
115
                <td></td>
118
        [%- END -%]
119
            [%- END -%]
116
            [%- END -%]
120
            <td>
117
                [%- END -%]
121
                [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
118
                <td>
122
            </td>
119
                    [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
123
            <td>[% hold.notes | html | html_line_break %]</td>
120
                </td>
124
            <td>
121
                <td>[% hold.notes | html | html_line_break %]</td>
125
                [% IF Koha.Preference('AllowHoldDateInFuture') %]
122
                <td>
126
                    <input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" />
123
                    [% IF Koha.Preference('AllowHoldDateInFuture') %]
127
                [% ELSE %]
124
                        <input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" />
128
                    [% hold.date | $KohaDates %]
125
                    [% ELSE %]
129
                [% END %]
126
                        [% hold.date | $KohaDates %]
130
            </td>
127
                    [% END %]
131
            <td>
128
                </td>
132
                [% UNLESS hold.expired %]
129
                <td>
133
                    <input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" />
130
                    <input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" />
134
                [% ELSE %]
131
                </td>
135
                    <span class="expiredon"><label>Expired:</label> [% hold.expirationdate | $KohaDates %]</span>
132
                <td>
136
                [% END %]
133
                    [%- IF ( hold.found ) -%]
137
            </td>
134
                        <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
138
            <td>
135
                        [%- IF ( hold.atdestination ) -%]
139
                [%- IF ( hold.found ) -%]
136
                                Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %]
140
                    <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
137
                        [%- ELSIF (hold.intransit) -%]
141
                    [%- IF ( hold.atdestination ) -%]
138
                            Item being transferred to <strong> [% hold.wbrname | html %]</strong>
142
                            Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %]
139
                        [%- ELSIF (hold.inprocessing) -%]
143
                    [%- ELSIF (hold.intransit) -%]
140
                            Item being processed at <strong> [% hold.wbrname | html %]</strong>
144
                        Item being transferred to <strong> [% hold.wbrname | html %]</strong>
141
                        [%- ELSE -%]
145
                    [%- ELSIF (hold.inprocessing) -%]
142
                            Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status
146
                        Item being processed at <strong> [% hold.wbrname | html %]</strong>
143
                        [%- END -%]
147
                    [%- ELSE -%]
148
                        Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status
149
                    [%- END -%]
150
                [%- ELSE -%]
151
                    [%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%]
152
                        [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
153
                    [%- ELSE -%]
144
                    [%- ELSE -%]
154
                        <select class="pickup_location_dropdown"
145
                        [%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%]
155
                                data-selected="[% hold.branchcode | html %]"
146
                            [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
156
                                data-hold-id="[% hold.reserve_id | html %]"
157
                                data-pickup-location-source="hold"
158
                                name="pickup">
159
                            <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
160
                            <option value="" disabled="disabled" class="loading">Loading...</option>
161
                        </select>
162
                        <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
163
                    [%- END -%]
164
                [%- END -%]
165
            </td>
166
            <td>
167
                [%- IF ( hold.found ) -%]
168
                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
169
                        [%- IF ( hold.barcodenumber ) -%]
170
                            [%- hold.barcodenumber | html -%]
171
                            <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
172
                        [%- ELSE -%]
147
                        [%- ELSE -%]
173
                            <span>No barcode</span>
148
                            <select class="pickup_location_dropdown"
149
                                    data-selected="[% hold.branchcode | html %]"
150
                                    data-hold-id="[% hold.reserve_id | html %]"
151
                                    data-pickup-location-source="hold"
152
                                    name="pickup">
153
                                <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
154
                                <option value="" disabled="disabled" class="loading">Loading...</option>
155
                            </select>
156
                            <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
174
                        [%- END -%]
157
                        [%- END -%]
175
                    </a>
158
                    [%- END -%]
176
                [%- ELSE -%]
159
                </td>
177
                    [%- IF ( hold.item_level_hold ) -%]
160
                <td>
178
                        <em>
161
                    [%- IF ( hold.found ) -%]
179
                            [%- IF ! hold.change_hold_type_allowed -%]
162
                        <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
180
                            <span>Only item</span>
163
                            [%- IF ( hold.barcodenumber ) -%]
181
                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
164
                                [%- hold.barcodenumber | html -%]
182
                                [%- IF ( hold.barcodenumber ) -%]
165
                                <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
183
                                    [%- hold.barcodenumber | html -%]
184
                                    <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
185
                                [%- ELSE -%]
186
                                    <span>No barcode</span>
187
                                [%- END -%]
188
                            </a>
189
                            [%- ELSE -%]
166
                            [%- ELSE -%]
190
                                    <select name="change_hold_type_[% hold.reserve_id | html %]">
167
                                <span>No barcode</span>
191
                                    <option selected="selected" value="">Only item [%- IF ( hold.barcodenumber ) -%]
168
                            [%- END -%]
169
                        </a>
170
                    [%- ELSE -%]
171
                        [%- IF ( hold.item_level_hold ) -%]
172
                            <em>
173
                                <span>Only item</span>
174
                                <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
175
                                    [%- IF ( hold.barcodenumber ) -%]
192
                                        [%- hold.barcodenumber | html -%]
176
                                        [%- hold.barcodenumber | html -%]
177
                                        <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
193
                                    [%- ELSE -%]
178
                                    [%- ELSE -%]
194
                                        No barcode
179
                                        <span>No barcode</span>
195
                                    [%- END -%]
180
                                    [%- END -%]
196
                                    </option>
181
                                </a>
197
                                    <option value="1">Next available</option>
182
                            </em>
198
                                </select>
199
                                [%- IF ( hold.barcodenumber ) -%]
200
                                    <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
201
                                [%- END -%]
202
                                [%- IF hold.itemtype -%]
203
                                    <span style="display:none">Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</span>
204
                                [%- ELSE -%]
205
                                    <span style="display:none">Next available</span>
206
                                [%- END -%]
207
                            [%- END -%]
208
                        </em>
209
                    [%- ELSE -%]
210
                        [%- IF hold.itemtype -%]
211
                            <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
212
                        [%- ELSIF hold.object.item_group -%]
213
                            <em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em>
214
                        [%- ELSE -%]
183
                        [%- ELSE -%]
215
                            <em>Next available</em>
184
                            [%- IF hold.itemtype -%]
216
                        [%- END -%]
185
                                <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
186
                            [%- ELSIF hold.object.item_group -%]
187
                                <em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em>
188
                            [%- ELSE -%]
189
                                <em>Next available</em>
190
                            [%- END -%]
217
191
218
                        <input type="hidden" name="itemnumber" value="" />
192
                            <input type="hidden" name="itemnumber" value="" />
193
                        [%- END -%]
219
                    [%- END -%]
194
                    [%- END -%]
220
                [%- END -%]
195
                    [%- IF hold.non_priority -%]
221
                [%- IF hold.non_priority -%]
196
                        <br><i>Non priority hold</i>
222
                    <br><i>Non priority hold</i>
197
                    [%- END -%]
223
                [%- END -%]
198
                </td>
224
            </td>
199
                [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
225
            [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
200
                [%- UNLESS hold.found -%]
226
            [%- UNLESS hold.found -%]
201
                        <td>
227
                    <td>
202
                                [% IF ( hold.lowestPriority ) %]
228
                            [% IF ( hold.lowestPriority ) %]
203
                                    <a class="hold-arrow" title="Remove lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
229
                                <a class="hold-arrow" title="Remove lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
204
                                        <i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i>
230
                                    <i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i>
205
                                [% ELSE %]
231
                            [% ELSE %]
206
                                    <a class="hold-arrow" title="Set lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
232
                                <a class="hold-arrow" title="Set lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
207
                                        <i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i>
233
                                    <i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i>
208
                                [% END %]
234
                            [% END %]
209
                            </a>
235
                        </a>
210
                        </td>
236
                    </td>
211
            [%- ELSE -%]
237
        [%- ELSE -%]
212
                <td></td>
238
            <td></td>
239
        [%- END -%]
240
            [%- END -%]
213
            [%- END -%]
241
            <td>
214
                [%- END -%]
242
                <a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
215
                <td>
243
                    <i class="fa fa-trash-can" aria-label="Cancel hold"></i>
216
                    <a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
244
                </a>
217
                        <i class="fa fa-trash" aria-label="Cancel hold"></i>
245
            </td>
218
                    </a>
246
            <td>
219
                </td>
247
                [% IF Koha.Preference('SuspendHoldsIntranet') %]
220
                <td>
248
                    [% UNLESS ( hold.found ) %]
221
                    [% IF Koha.Preference('SuspendHoldsIntranet') %]
249
                        <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
222
                        [% UNLESS ( hold.found ) %]
250
                            [% IF ( hold.suspend ) %]
223
                            <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
251
                                <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
224
                                [% IF ( hold.suspend ) %]
252
                            [% ELSE %]
225
                                    <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
253
                                <i class="fa fa-pause" aria-hidden="true"></i> Suspend
226
                                [% ELSE %]
254
                            [% END %]
227
                                    <i class="fa fa-pause" aria-hidden="true"></i> Suspend
255
                        </button>
228
                                [% END %]
229
                            </button>
256
230
257
                        [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
231
                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
258
                            <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
232
                                <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
259
                            <input type="text" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | html %]" class="flatpickr" data-flatpickr-futuredate="true" />
233
                                <input type="text" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | html %]" class="flatpickr" data-flatpickr-futuredate="true" />
260
                        [%- ELSE -%]
234
                            [%- ELSE -%]
261
                            <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
235
                                <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
236
                            [%- END -%]
262
                        [%- END -%]
237
                        [%- END -%]
238
                    [%- END # IF SuspendHoldsIntranet -%]
239
                    [%- IF ( hold.found ) -%]
240
                        <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]" onclick="window.location.href='request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | uri %]&amp;last_priority=[% last_priority | uri %]&amp;prev_priority=0&amp;next_priority=1&amp;borrowernumber=[% hold.borrowernumber | uri %]&amp;biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]&amp;reserve_id=[% hold.reserve_id | uri %]&amp;date=[% hold.date | uri %]'">
263
                    [%- END -%]
241
                    [%- END -%]
264
                [%- END # IF SuspendHoldsIntranet -%]
242
                </td>
265
                [%- IF ( hold.found ) -%]
243
                [% IF ( hold.intransit || hold.atdestination ) %]
266
                    <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]" onclick="window.location.href='request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | uri %]&amp;last_priority=[% last_priority | uri %]&amp;prev_priority=0&amp;next_priority=1&amp;borrowernumber=[% hold.borrowernumber | uri %]&amp;biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]&amp;reserve_id=[% hold.reserve_id | uri %]&amp;date=[% hold.date | uri %]'">
244
                    <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td>
267
                [%- END -%]
245
                [% ELSE %]
268
            </td>
246
                    <td></td>
269
            [% IF ( hold.intransit || hold.atdestination ) %]
247
                [% END %]
270
                <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td>
248
            </tr>
271
            [% ELSE %]
249
        [% END %]
272
                <td></td>
250
    </tbody>
273
            [% END %]
274
        </tr>
275
    [% END %]
276
</table>
251
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +7 lines)
Lines 1301-1306 Link Here
1301
    [% END %]
1301
    [% END %]
1302
1302
1303
    <script>
1303
    <script>
1304
        $(document).ready(function () {
1305
            hold_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'patron_holds_table', 'json' ) | $raw %];
1306
            KohaTable("patron_holds_table", {
1307
                "bPaginate":false,
1308
                "bKohaColumnsUseNames": true,
1309
           }, hold_table_settings);
1310
        });
1304
        var Sticky;
1311
        var Sticky;
1305
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1312
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1306
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1313
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1307
- 

Return to bug 33575