Lines 13-19
Link Here
|
13 |
<th>Pickup library</th> |
13 |
<th>Pickup library</th> |
14 |
<th>Details</th> |
14 |
<th>Details</th> |
15 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
15 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
16 |
<th><img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th> |
16 |
<th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th> |
17 |
[% END %] |
17 |
[% END %] |
18 |
<th> </th> |
18 |
<th> </th> |
19 |
[% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %] |
19 |
[% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %] |
Lines 22-30
Link Here
|
22 |
[% FOREACH hold IN holds %] |
22 |
[% FOREACH hold IN holds %] |
23 |
<tr> |
23 |
<tr> |
24 |
<td> |
24 |
<td> |
25 |
<input type="hidden" name="reserve_id" value="[% hold.reserve_id %]" /> |
25 |
<input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" /> |
26 |
<input type="hidden" name="borrowernumber" value="[% hold.borrowernumber %]" /> |
26 |
<input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" /> |
27 |
<input type="hidden" name="biblionumber" value="[% hold.biblionumber %]" /> |
27 |
<input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" /> |
28 |
<select name="rank-request"> |
28 |
<select name="rank-request"> |
29 |
[% IF ( hold.found ) %] |
29 |
[% IF ( hold.found ) %] |
30 |
[% IF ( hold.intransit ) %] |
30 |
[% IF ( hold.intransit ) %] |
Lines 38-59
Link Here
|
38 |
[% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %] |
38 |
[% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %] |
39 |
[% FOREACH optionloo IN hold.optionloop %] |
39 |
[% FOREACH optionloo IN hold.optionloop %] |
40 |
[% IF ( optionloo.selected ) %] |
40 |
[% IF ( optionloo.selected ) %] |
41 |
<option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option> |
41 |
<option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option> |
42 |
[% ELSE %] |
42 |
[% ELSE %] |
43 |
<option value="[% optionloo.num %]">[% optionloo.num %]</option> |
43 |
<option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option> |
44 |
[% END %] |
44 |
[% END %] |
45 |
[% END %] |
45 |
[% END %] |
46 |
[% ELSE %] |
46 |
[% ELSE %] |
47 |
[% FOREACH h IN holds %] |
47 |
[% FOREACH h IN holds %] |
48 |
[% IF ( h.priority == hold.priority ) %] |
48 |
[% IF ( h.priority == hold.priority ) %] |
49 |
<option value="[% h.priority %]" selected="selected">[% loop.index + 1 %]</option> |
49 |
<option value="[% h.priority | html %]" selected="selected">[% loop.index + 1 | html %]</option> |
50 |
[% ELSE %] |
50 |
[% ELSE %] |
51 |
<option value="[% h.priority %]">[% loop.index + 1 %]</option> |
51 |
<option value="[% h.priority | html %]">[% loop.index + 1 | html %]</option> |
52 |
[% END %] |
52 |
[% END %] |
53 |
[% END %] |
53 |
[% END %] |
54 |
[% END %] |
54 |
[% END %] |
55 |
[% ELSIF !hold.found %] |
55 |
[% ELSIF !hold.found %] |
56 |
<option value="[% hold.priority %]" selected="selected">[% hold.priority %]</option> |
56 |
<option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option> |
57 |
[% END %] |
57 |
[% END %] |
58 |
|
58 |
|
59 |
<option value="del">del</option> |
59 |
<option value="del">del</option> |
Lines 65-87
Link Here
|
65 |
[% SET last_priority = holds.last.priority %] |
65 |
[% SET last_priority = holds.last.priority %] |
66 |
[% SET prev_priority = loop.prev.priority %] |
66 |
[% SET prev_priority = loop.prev.priority %] |
67 |
[% SET next_priority = loop.next.priority %] |
67 |
[% SET next_priority = loop.next.priority %] |
68 |
[% holds.index %] |
68 |
[% holds.index | html %] |
69 |
|
69 |
|
70 |
<td style="white-space:nowrap;"> |
70 |
<td style="white-space:nowrap;"> |
71 |
<a title="Move hold up" href="request.pl?action=move&where=up&first_priority=[% first_priority %]&last_priority=[% last_priority %]&prev_priority=[% prev_priority %]&next_priority=[% next_priority %]&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
71 |
<a title="Move hold up" href="request.pl?action=move&where=up&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
72 |
<img src="[% interface %]/[% theme %]/img/go-up.png" alt="Go up" /> |
72 |
<img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" /> |
73 |
</a> |
73 |
</a> |
74 |
|
74 |
|
75 |
<a title="Move hold to top" href="request.pl?action=move&where=top&first_priority=[% first_priority %]&last_priority=[% last_priority %]&prev_priority=[% prev_priority %]&next_priority=[% next_priority %]&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
75 |
<a title="Move hold to top" href="request.pl?action=move&where=top&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
76 |
<img src="[% interface %]/[% theme %]/img/go-top.png" alt="Go top" /> |
76 |
<img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" /> |
77 |
</a> |
77 |
</a> |
78 |
|
78 |
|
79 |
<a title="Move hold to bottom" href="request.pl?action=move&where=bottom&first_priority=[% first_priority %]&last_priority=[% last_priority %]&prev_priority=[% prev_priority %]&next_priority=[% next_priority %]&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
79 |
<a title="Move hold to bottom" href="request.pl?action=move&where=bottom&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
80 |
<img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Go bottom" /> |
80 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" /> |
81 |
</a> |
81 |
</a> |
82 |
|
82 |
|
83 |
<a title="Move hold down" href="request.pl?action=move&where=down&first_priority=[% first_priority %]&last_priority=[% last_priority %]&prev_priority=[% prev_priority %]&next_priority=[% next_priority %]&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
83 |
<a title="Move hold down" href="request.pl?action=move&where=down&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
84 |
<img src="[% interface %]/[% theme %]/img/go-down.png" alt="Go down" /> |
84 |
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" /> |
85 |
</a> |
85 |
</a> |
86 |
</td> |
86 |
</td> |
87 |
[% END %] |
87 |
[% END %] |
Lines 90-113
Link Here
|
90 |
[% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] |
90 |
[% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] |
91 |
</td> |
91 |
</td> |
92 |
|
92 |
|
93 |
<td>[% hold.notes %]</td> |
93 |
<td>[% hold.notes | html %]</td> |
94 |
<td>[% hold.date %]</td> |
94 |
<td>[% hold.date | html %]</td> |
95 |
<td>[% hold.expirationdate %]</td> |
95 |
<td>[% hold.expirationdate | html %]</td> |
96 |
|
96 |
|
97 |
<td> |
97 |
<td> |
98 |
[% IF ( hold.found ) %] |
98 |
[% IF ( hold.found ) %] |
99 |
[% IF ( hold.atdestination ) %] |
99 |
[% IF ( hold.atdestination ) %] |
100 |
[% IF ( hold.found ) %] |
100 |
[% IF ( hold.found ) %] |
101 |
Item waiting at <b> [% hold.wbrname %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode %]" /> since [% hold.waiting_date | $KohaDates %] |
101 |
Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %] |
102 |
[% ELSE %] |
102 |
[% ELSE %] |
103 |
Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode %]" /> |
103 |
Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> |
104 |
[% END %] |
104 |
[% END %] |
105 |
[% ELSE %] |
105 |
[% ELSE %] |
106 |
Item being transferred to <b> [% hold.wbrname %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode %]" /> |
106 |
Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> |
107 |
[% END %] |
107 |
[% END %] |
108 |
[% ELSE %] |
108 |
[% ELSE %] |
109 |
[% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %] |
109 |
[% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %] |
110 |
[% Branches.GetName(hold.branchcode) %] <input type="hidden" name="pickup" value="[% hold.branchcode %]" /> |
110 |
[% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
111 |
[% ELSE %] |
111 |
[% ELSE %] |
112 |
<select name="pickup"> |
112 |
<select name="pickup"> |
113 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode ) %] |
113 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode ) %] |
Lines 118-127
Link Here
|
118 |
|
118 |
|
119 |
<td> |
119 |
<td> |
120 |
[% IF ( hold.found ) %] |
120 |
[% IF ( hold.found ) %] |
121 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber %]"> |
121 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | html %]"> |
122 |
[% IF ( hold.barcodenumber ) %] |
122 |
[% IF ( hold.barcodenumber ) %] |
123 |
[% hold.barcodenumber %] |
123 |
[% hold.barcodenumber | html %] |
124 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber %]" /> |
124 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
125 |
[% ELSE %] |
125 |
[% ELSE %] |
126 |
No barcode |
126 |
No barcode |
127 |
[% END %] |
127 |
[% END %] |
Lines 130-139
Link Here
|
130 |
[% IF ( hold.item_level_hold ) %] |
130 |
[% IF ( hold.item_level_hold ) %] |
131 |
<i> |
131 |
<i> |
132 |
Only item |
132 |
Only item |
133 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber %]"> |
133 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | html %]"> |
134 |
[% IF ( hold.barcodenumber ) %] |
134 |
[% IF ( hold.barcodenumber ) %] |
135 |
[% hold.barcodenumber %] |
135 |
[% hold.barcodenumber | html %] |
136 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber %]" /> |
136 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
137 |
[% ELSE %] |
137 |
[% ELSE %] |
138 |
No barcode |
138 |
No barcode |
139 |
[% END %] |
139 |
[% END %] |
Lines 141-147
Link Here
|
141 |
</i> |
141 |
</i> |
142 |
[% ELSE %] |
142 |
[% ELSE %] |
143 |
[% IF hold.itemtype %] |
143 |
[% IF hold.itemtype %] |
144 |
<i>Next available [% ItemTypes.GetDescription( hold.itemtype ) %] item</i> |
144 |
<i>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</i> |
145 |
[% ELSE %] |
145 |
[% ELSE %] |
146 |
<i>Next available</i> |
146 |
<i>Next available</i> |
147 |
[% END %] |
147 |
[% END %] |
Lines 153-185
Link Here
|
153 |
|
153 |
|
154 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
154 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
155 |
<td> |
155 |
<td> |
156 |
<a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
156 |
<a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
157 |
[% IF ( hold.lowestPriority ) %] |
157 |
[% IF ( hold.lowestPriority ) %] |
158 |
<img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Unset lowest priority" /> |
158 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" /> |
159 |
[% ELSE %] |
159 |
[% ELSE %] |
160 |
<img src="[% interface %]/[% theme %]/img/go-down.png" alt="Set to lowest priority" /> |
160 |
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" /> |
161 |
[% END %] |
161 |
[% END %] |
162 |
</a> |
162 |
</a> |
163 |
</td> |
163 |
</td> |
164 |
[% END %] |
164 |
[% END %] |
165 |
|
165 |
|
166 |
<td> |
166 |
<td> |
167 |
<a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&reserve_id=[% hold.reserve_id %]&date=[% hold.date %]"> |
167 |
<a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
168 |
<img src="[% interface %]/[% theme %]/img/x.png" alt="Cancel" /> |
168 |
<img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" /> |
169 |
</a> |
169 |
</a> |
170 |
</td> |
170 |
</td> |
171 |
|
171 |
|
172 |
[% IF SuspendHoldsIntranet %] |
172 |
[% IF SuspendHoldsIntranet %] |
173 |
<td> |
173 |
<td> |
174 |
[% UNLESS ( hold.found ) %] |
174 |
[% UNLESS ( hold.found ) %] |
175 |
<input type="button" value="[% IF ( hold.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&reserve_id=[% hold.reserve_id %]&borrowernumber=[% hold.borrowernumber %]&biblionumber=[% hold.biblionumber %]&date=[% hold.date %]&suspend_until=' + $('#suspend_until_[% hold.reserve_id %]').val()" /> |
175 |
<input type="button" value="[% IF ( hold.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&reserve_id=[% hold.reserve_id | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&date=[% hold.date | html %]&suspend_until=' + $('#suspend_until_[% hold.reserve_id | html %]').val()" /> |
176 |
|
176 |
|
177 |
[% IF AutoResumeSuspendedHolds %] |
177 |
[% IF AutoResumeSuspendedHolds %] |
178 |
<label for="suspend_until_[% hold.reserve_id %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label> |
178 |
<label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label> |
179 |
<input name="suspend_until" id="suspend_until_[% hold.reserve_id %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" /> |
179 |
<input name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" /> |
180 |
<a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id %]').value='';">Clear date</a> |
180 |
<a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a> |
181 |
[% ELSE %] |
181 |
[% ELSE %] |
182 |
<input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id %]" value=""/> |
182 |
<input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" value=""/> |
183 |
[% END %] |
183 |
[% END %] |
184 |
|
184 |
|
185 |
[% ELSE %] |
185 |
[% ELSE %] |