Lines 162-205
Link Here
|
162 |
</div> |
162 |
</div> |
163 |
[% END %] |
163 |
[% END %] |
164 |
|
164 |
|
165 |
[% IF ( wrongbranch ) %] |
165 |
[% IF wrongbranch %] |
166 |
<div class="dialog alert"><h3>Cannot check in</h3> |
166 |
<div id="wrong-branch-modal" class="modal fade audio-alert-action"> |
167 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
167 |
<div class="modal-dialog"> |
168 |
</p><strong>NOT CHECKED IN</strong></p> |
168 |
<div class="modal-content"> |
169 |
<p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p> |
169 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
|
|
170 |
<div class="modal-header"> |
171 |
<h3> |
172 |
Cannot check in |
173 |
</h3> |
174 |
</div> |
175 |
<div class="modal-body"> |
176 |
<p> |
177 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
178 |
[% itembarcode | html %]: [% title | html %] |
179 |
</a> |
180 |
</p> |
181 |
<p> |
182 |
<strong> |
183 |
NOT CHECKED IN |
184 |
</strong> |
185 |
</p> |
186 |
<p> |
187 |
This item must be checked in at following library: |
188 |
<strong> |
189 |
[% Branches.GetName( rightbranch ) | html %] |
190 |
</strong> |
191 |
</p> |
192 |
</div> |
193 |
<div class="modal-footer"> |
194 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check" onclick="$('#barcode').focus(); return false;"></i> OK</button> |
195 |
</div> |
196 |
</form> |
197 |
</div> |
198 |
</div> |
170 |
</div> |
199 |
</div> |
171 |
[% END %] |
200 |
[% END %] |
172 |
|
201 |
|
173 |
<!-- case of a mistake in transfer loop --> |
202 |
<!-- case of a mistake in transfer loop --> |
174 |
[% IF ( WrongTransfer && !transfertodo ) %] |
203 |
[% IF WrongTransfer && !transfertodo %] |
175 |
<div id="return2" class="dialog message"> |
204 |
<div id="wrong-transfer-modal" class="modal fade audio-alert-action"> |
176 |
<!-- WrongTransfer --> |
205 |
<div class="modal-dialog"> |
177 |
<h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3> |
206 |
<div class="modal-content"> |
178 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
207 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
179 |
<button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
208 |
<div class="modal-header"> |
180 |
<button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button> |
209 |
<h3> |
181 |
[% IF ( patron.cardnumber ) %]<h5>Hold for:</h5> |
210 |
Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %] |
182 |
<ul> |
211 |
</h3> |
183 |
<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]"> |
212 |
</div> |
184 |
[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li> |
213 |
<div class="modal-body"> |
185 |
[% INCLUDE display_holdpatron_address %] |
214 |
<p> |
186 |
[% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %] |
215 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
187 |
[% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %] |
216 |
[% itembarcode | html %]: [% title | html %] |
188 |
</ul> |
217 |
</a> |
189 |
|
218 |
</p> |
190 |
<form method="post" action="returns.pl" class="confirm"> |
219 |
</div> |
191 |
<input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" /> |
220 |
<div class="modal-footer"> |
192 |
<input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" /> |
221 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check" onclick="$('#barcode').focus(); return false;"></i> OK</button> |
193 |
<input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" /> |
222 |
<button type="submit" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
194 |
<button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button> |
223 |
<button class="btn btn-default deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button> |
195 |
<input type="hidden" name="print_slip" value="0" /> |
224 |
</div> |
196 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
225 |
</form> |
197 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
226 |
</div> |
198 |
<button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and confirm</button> |
227 |
</div> |
199 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
228 |
</div> |
200 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
|
|
201 |
</form> |
202 |
[% END %]</div> |
203 |
[% END %] |
229 |
[% END %] |
204 |
|
230 |
|
205 |
[% IF ( found ) %] |
231 |
[% IF ( found ) %] |
Lines 337-375
Link Here
|
337 |
</div> |
363 |
</div> |
338 |
[% END %] |
364 |
[% END %] |
339 |
|
365 |
|
340 |
[% IF ( transfer ) %] |
366 |
[% IF transfer || needstransfer %] |
341 |
<!-- transfer: item with no reservation, must be returned according to home library circulation rules --> |
367 |
<div id="item-transfer-modal" class="modal fade audio-alert-action"> |
342 |
<div id="return1" class="dialog message audio-alert-action"> |
368 |
<div class="modal-dialog"> |
343 |
<h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3> |
369 |
<div class="modal-content"> |
344 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
370 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
345 |
<p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p> |
371 |
<div class="modal-header"> |
|
|
372 |
<h3> |
373 |
Please return this item to [% Branches.GetName( returnbranch ) | html %] |
374 |
</h3> |
375 |
</div> |
376 |
<div class="modal-body"> |
377 |
<p> |
378 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
379 |
[% itembarcode | html %]: [% title | html %] |
380 |
</a> |
381 |
</p> |
382 |
[% IF !transfer %] |
383 |
<p> |
384 |
Transfer now? |
385 |
</p> |
386 |
<input type="hidden" name="tobranch" value="[% returnbranch | html %]" /> |
387 |
<input type="hidden" name="transferitem" value="[% itemnumber | html %]" /> |
388 |
<input type="hidden" name="exemptfine" value="[% exemptfine | html %]" /> |
389 |
<input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" /> |
390 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
391 |
[% FOREACH inputloo IN inputloop %] |
392 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
393 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
394 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
395 |
[% END %] |
396 |
<input type="hidden" name="barcode" value="0" /> |
397 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
398 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
399 |
[% END %] |
400 |
</div> |
401 |
<div class="modal-footer"> |
402 |
[% IF !transfer %] |
403 |
<button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button> |
404 |
<button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button><button type="submit" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times" onclick="$('#barcode').focus(); return false;"></i> No</button> |
405 |
[% ELSE %] |
406 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check" onclick="$('#barcode').focus(); return false;"></i> OK</button> |
407 |
<button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button> |
408 |
[% END %] |
409 |
</div> |
410 |
</form> |
411 |
</div> |
346 |
</div> |
412 |
</div> |
347 |
[% END %] |
413 |
</div> |
348 |
|
|
|
349 |
[% IF ( needstransfer ) %] |
350 |
<!-- needstransfer --> |
351 |
<div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3> |
352 |
Transfer now?<br /> |
353 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
354 |
[% IF itemnumber %] |
355 |
<button type="submit" name="dotransfer" value="Yes" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button> |
356 |
[% END %] |
357 |
<button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button> |
358 |
<button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button> |
359 |
<input type="hidden" name="tobranch" value="[% returnbranch | html %]" /> |
360 |
<input type="hidden" name="transferitem" value="[% itemnumber | html %]" /> |
361 |
<input type="hidden" name="exemptfine" value="[% exemptfine | html %]" /> |
362 |
<input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" /> |
363 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
364 |
[% FOREACH inputloo IN inputloop %] |
365 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
366 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
367 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
368 |
[% END %] |
369 |
<input type="hidden" name="barcode" value="0" /> |
370 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
371 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
372 |
</form> </div> |
373 |
[% END %] |
414 |
[% END %] |
374 |
|
415 |
|
375 |
[% IF ( diffbranch ) %] |
416 |
[% IF ( diffbranch ) %] |
376 |
- |
|
|