Lines 68-76
Link Here
|
68 |
<input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]"> |
68 |
<input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]"> |
69 |
<select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]"> |
69 |
<select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]"> |
70 |
[% IF ( hold.found ) %] |
70 |
[% IF ( hold.found ) %] |
71 |
[% IF ( hold.intransit ) %] |
71 |
[% IF ( hold.found == 'T' ) %] |
72 |
<option value="T" selected="selected">In transit</option> |
72 |
<option value="T" selected="selected">In transit</option> |
73 |
[% ELSIF (hold.inprocessing) %] |
73 |
[% ELSIF ( hold.found == 'P' ) %] |
74 |
<option value="P" selected="selected">In processing</option> |
74 |
<option value="P" selected="selected">In processing</option> |
75 |
[% ELSE %] |
75 |
[% ELSE %] |
76 |
<option value="W" selected="selected">Waiting</option> |
76 |
<option value="W" selected="selected">Waiting</option> |
Lines 86-101
Link Here
|
86 |
[%- SET prev_priority = loop.prev.priority -%] |
86 |
[%- SET prev_priority = loop.prev.priority -%] |
87 |
[%- SET next_priority = loop.next.priority -%] |
87 |
[%- SET next_priority = loop.next.priority -%] |
88 |
<td style="white-space:nowrap;"> |
88 |
<td style="white-space:nowrap;"> |
89 |
<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 %]"> |
89 |
<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.reservedate | html %]"> |
90 |
<img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" /> |
90 |
<img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" /> |
91 |
</a> |
91 |
</a> |
92 |
<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 %]"> |
92 |
<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.reservedate | html %]"> |
93 |
<img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" /> |
93 |
<img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" /> |
94 |
</a> |
94 |
</a> |
95 |
<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 %]"> |
95 |
<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.reservedate | html %]"> |
96 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" /> |
96 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" /> |
97 |
</a> |
97 |
</a> |
98 |
<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 %]"> |
98 |
<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.reservedate | html %]"> |
99 |
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" /> |
99 |
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" /> |
100 |
</a> |
100 |
</a> |
101 |
</td> |
101 |
</td> |
Lines 106-117
Link Here
|
106 |
<td> |
106 |
<td> |
107 |
[% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] |
107 |
[% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] |
108 |
</td> |
108 |
</td> |
109 |
<td>[% hold.notes | html | html_line_break %]</td> |
109 |
<td>[% hold.reservenotes | html | html_line_break %]</td> |
110 |
<td> |
110 |
<td> |
111 |
[% IF Koha.Preference('AllowHoldDateInFuture') %] |
111 |
[% IF Koha.Preference('AllowHoldDateInFuture') %] |
112 |
<input type="text" class="flatpickr" value="[% hold.date | $KohaDates %]" required="required" size="10" name="reservedate" /> |
112 |
<input type="text" class="flatpickr" value="[% hold.reservedate | $KohaDates %]" required="required" size="10" name="reservedate" /> |
113 |
[% ELSE %] |
113 |
[% ELSE %] |
114 |
[% hold.date | $KohaDates %] |
114 |
[% hold.reservedate | $KohaDates %] |
115 |
[% END %] |
115 |
[% END %] |
116 |
</td> |
116 |
</td> |
117 |
<td> |
117 |
<td> |
Lines 119-144
Link Here
|
119 |
</td> |
119 |
</td> |
120 |
<td> |
120 |
<td> |
121 |
[%- IF ( hold.found ) -%] |
121 |
[%- IF ( hold.found ) -%] |
122 |
<input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> |
122 |
<input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
123 |
[%- IF ( hold.atdestination ) -%] |
123 |
[%- IF ( hold.found == 'W' && hold.item.holdingbranch == hold.branchcode ) -%] |
124 |
Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %] |
124 |
Item waiting at <strong> [% hold.branch.branchname | html %]</strong>[% IF hold.desk %], [% hold.desk.desk_name | html %],[% END %] since [% hold.waitingdate | $KohaDates %] |
125 |
[%- ELSIF (hold.intransit) -%] |
125 |
[%- ELSIF (hold.found == 'T') -%] |
126 |
Item being transferred to <strong> [% hold.wbrname | html %]</strong> |
126 |
Item being transferred to <strong> [% hold.branch.branchname | html %]</strong> |
127 |
[%- ELSIF (hold.inprocessing) -%] |
127 |
[%- ELSIF (hold.found == 'P') -%] |
128 |
Item being processed at <strong> [% hold.wbrname | html %]</strong> |
128 |
Item being processed at <strong> [% hold.branch.branchname | html %]</strong> |
129 |
[%- ELSE -%] |
129 |
[%- ELSE -%] |
130 |
Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status |
130 |
Hold expected at <strong>[% hold.branch.branchname | html %]</strong>, please checkin to verify status |
131 |
[%- END -%] |
131 |
[%- END -%] |
132 |
[%- ELSE -%] |
132 |
[%- ELSE -%] |
133 |
[%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%] |
133 |
[%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%] |
134 |
[% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
134 |
[% hold.branch.branchname | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
135 |
[%- ELSE -%] |
135 |
[%- ELSE -%] |
136 |
<select class="pickup_location_dropdown" |
136 |
<select class="pickup_location_dropdown" |
137 |
data-selected="[% hold.branchcode | html %]" |
137 |
data-selected="[% hold.branchcode | html %]" |
138 |
data-hold-id="[% hold.reserve_id | html %]" |
138 |
data-hold-id="[% hold.reserve_id | html %]" |
139 |
data-pickup-location-source="hold" |
139 |
data-pickup-location-source="hold" |
140 |
name="pickup"> |
140 |
name="pickup"> |
141 |
<option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option> |
141 |
<option selected="selected" value="[% hold.branchcode | html %]">[% hold.branch.branchname | html %]</option> |
142 |
<option value="" disabled="disabled" class="loading">Loading...</option> |
142 |
<option value="" disabled="disabled" class="loading">Loading...</option> |
143 |
</select> |
143 |
</select> |
144 |
<img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/> |
144 |
<img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/> |
Lines 148-155
Link Here
|
148 |
<td> |
148 |
<td> |
149 |
[%- IF ( hold.found ) -%] |
149 |
[%- IF ( hold.found ) -%] |
150 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
150 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
151 |
[%- IF ( hold.barcodenumber ) -%] |
151 |
[%- IF ( hold.item.barcode ) -%] |
152 |
[%- hold.barcodenumber | html -%] |
152 |
[%- hold.item.barcode | html -%] |
153 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
153 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
154 |
[%- ELSE -%] |
154 |
[%- ELSE -%] |
155 |
<span>No barcode</span> |
155 |
<span>No barcode</span> |
Lines 160-167
Link Here
|
160 |
<em> |
160 |
<em> |
161 |
<span>Only item</span> |
161 |
<span>Only item</span> |
162 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
162 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
163 |
[%- IF ( hold.barcodenumber ) -%] |
163 |
[%- IF ( hold.item.barcode ) -%] |
164 |
[%- hold.barcodenumber | html -%] |
164 |
[%- hold.item.barcode | html -%] |
165 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
165 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
166 |
[%- ELSE -%] |
166 |
[%- ELSE -%] |
167 |
<span>No barcode</span> |
167 |
<span>No barcode</span> |
Lines 185-191
Link Here
|
185 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
185 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
186 |
[%- UNLESS hold.found -%] |
186 |
[%- UNLESS hold.found -%] |
187 |
<td> |
187 |
<td> |
188 |
<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 %]"> |
188 |
<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.reservedate | html %]"> |
189 |
[%- IF ( hold.lowestPriority ) -%] |
189 |
[%- IF ( hold.lowestPriority ) -%] |
190 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" /> |
190 |
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" /> |
191 |
[%- ELSE -%] |
191 |
[%- ELSE -%] |
Lines 198-204
Link Here
|
198 |
[%- END -%] |
198 |
[%- END -%] |
199 |
[%- END -%] |
199 |
[%- END -%] |
200 |
<td> |
200 |
<td> |
201 |
<a class="btn btn-default btn-xs cancel-hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]"> |
201 |
<a class="btn btn-default btn-xs cancel-hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.reservedate | html %]"> |
202 |
<i class="fa fa-trash" aria-hidden="true"></i> Cancel |
202 |
<i class="fa fa-trash" aria-hidden="true"></i> Cancel |
203 |
</a> |
203 |
</a> |
204 |
</td> |
204 |
</td> |
Lines 222-231
Link Here
|
222 |
[%- END -%] |
222 |
[%- END -%] |
223 |
[%- END # IF SuspendHoldsIntranet -%] |
223 |
[%- END # IF SuspendHoldsIntranet -%] |
224 |
[%- IF ( hold.found ) -%] |
224 |
[%- IF ( hold.found ) -%] |
225 |
<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&where=down&first_priority=[% first_priority | uri %]&last_priority=[% last_priority | uri %]&prev_priority=0&next_priority=1&borrowernumber=[% hold.borrowernumber | uri %]&biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]&reserve_id=[% hold.reserve_id | uri %]&date=[% hold.date | uri %]'"> |
225 |
<input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.found == 'T' %]Revert transit status[% ELSE %]Revert waiting status[% END %]" onclick="window.location.href='request.pl?action=move&where=down&first_priority=[% first_priority | uri %]&last_priority=[% last_priority | uri %]&prev_priority=0&next_priority=1&borrowernumber=[% hold.borrowernumber | uri %]&biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]&reserve_id=[% hold.reserve_id | uri %]&date=[% hold.reservedate | uri %]'"> |
226 |
[%- END -%] |
226 |
[%- END -%] |
227 |
</td> |
227 |
</td> |
228 |
[% IF ( hold.intransit || hold.atdestination ) %] |
228 |
[% IF ( hold.found == 'T' || ( hold.found == 'W' && hold.item.holdingbranch == hold.branchcode ) ) %] |
229 |
<td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td> |
229 |
<td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td> |
230 |
[% ELSE %] |
230 |
[% ELSE %] |
231 |
<td></td> |
231 |
<td></td> |