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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-96 / +181 lines)
Lines 19-24 function Dopop(link) { Link Here
19
    $("#barcode").focus();
19
    $("#barcode").focus();
20
}
20
}
21
$(document).ready(function () {
21
$(document).ready(function () {
22
    $(".modal").modal();
22
23
23
    [% IF print_slip %]
24
    [% IF print_slip %]
24
        Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]');
25
        Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]');
Lines 195-249 $(document).ready(function () { Link Here
195
[% END %]
196
[% END %]
196
197
197
[% IF ( found ) %]
198
[% IF ( found ) %]
198
<!-- found -->
199
<!-- case of a reservation found, and display info -->
200
    [% IF ( waiting ) %]
199
    [% IF ( waiting ) %]
201
	<!-- waiting -->
200
        <div id="hold-found1" class="modal fade audio-alert-action">
202
201
            <form method="post" action="returns.pl" class="confirm">
203
    <div id="hold-found1" class="dialog message audio-alert-action">
202
                <div class="modal-header">
204
        <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
203
                    <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title | html %]</a></h3>
205
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
204
                </div>
206
        <h4>Hold for:</h4>
205
207
			<ul>
206
                <div class="modal-body">
208
            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
207
                    [% IF ( reservenotes ) %]
209
            <li>[% borstnum %] [% boraddress %]<br />
208
                        <h4>Notes: [% reservenotes %]</h4>
210
			[% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
209
                    [% END %]
211
            [% borcity %] [% borzip %]</li>
212
           [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
213
		   [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
214
[% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
215
[% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
216
		[% IF ( transfertodo ) %]
217
            <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
218
		[% ELSE %]
219
		<h4><strong>Hold at</strong> [% destbranchname %]</h4>
220
        [% END %]
221
        <form method="post" action="returns.pl" class="confirm">
222
            <input type="hidden" name="cancel_reserve" value="0" />
223
            <input type="submit" class="deny" value="Cancel" onclick="this.form.cancel_reserve.value = 1; this.form.submit();" />
224
210
225
            <input type="submit" class="approve" value="Confirm" />
211
                    <h4>Hold for:</h4>
226
212
227
            <input type="hidden" name="print_slip" value="0" />
213
                    <li>
228
            <input type="submit" value="Print and confirm" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();" />
214
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
229
            [% FOREACH inputloo IN inputloop %]
215
                    </li>
230
                <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
216
231
                <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
217
                    <li>
232
                <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
218
                        [% borstnum %] [% boraddress %]<br />
233
            [% END %]
219
                        [% IF ( boraddress2 ) %]
234
                <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
220
                            [% boraddress2 %]<br />
235
                <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
221
                        [% END %]
236
                <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
222
                        [% borcity %] [% borzip %]
237
                <input type="hidden" name="resbarcode" value="[% barcode %]" />
223
                    </li>
238
                <input type="hidden" name="diffBranch" value="[% destbranch %]" />
224
239
                <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
225
                    [% IF ( borphone ) %]
240
                <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
226
                        <li> [% borphone %]</li>
241
                <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
227
                    [% END %]
242
228
243
                <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
229
                    [% IF ( boremail ) %]
244
                <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
230
                        <li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>
245
                </form>
231
                    [% END %]
246
	</div>
232
233
                    [% IF ( debarred ) %]
234
                        <li class="error">Patron is RESTRICTED</li>
235
                    [% END %]
236
237
                    [% IF ( gonenoaddress ) %]
238
                        <li class="error">Patron's address is in doubt</li>
239
                    [% END %]
240
241
                    [% IF ( transfertodo ) %]
242
                        <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
243
                    [% ELSE %]
244
                        <h4><strong>Hold at</strong> [% destbranchname %]</h4>
245
                    [% END %]
246
247
                    [% FOREACH inputloo IN inputloop %]
248
                        <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
249
                        <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
250
                        <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
251
                    [% END %]
252
253
                    <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
254
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
255
                    <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
256
                    <input type="hidden" name="resbarcode" value="[% barcode %]" />
257
                    <input type="hidden" name="diffBranch" value="[% destbranch %]" />
258
                    <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
259
                    <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
260
                    <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
261
262
                    <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
263
                    <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
264
                </div>
265
266
                <div class="modal-footer">
267
                    <input type="hidden" name="cancel_reserve" value="0" />
268
                    <button type="submit" class="btn btn-danger deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
269
                        <i class="fa fa-times"></i> Cancel
270
                    </button>
271
272
                    <button type="submit" class="btn approve">
273
                        <i class="fa fa-check"></i> Confirm
274
                    </button>
275
276
                    <input type="hidden" name="print_slip" value="0" />
277
                    <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit();">
278
                        <i class="fa fa-print"></i> Print and confirm
279
                    </button>
280
                </div>
281
            </form>
282
        </div>
247
    [% END %]
283
    [% END %]
248
284
249
    [% IF ( diffbranch ) %]
285
    [% IF ( diffbranch ) %]
Lines 352-406 $(document).ready(function () { Link Here
352
388
353
    <!-- case of simple return no issue or transfer but with a reservation  -->
389
    <!-- case of simple return no issue or transfer but with a reservation  -->
354
    [% IF ( reserved ) %]
390
    [% IF ( reserved ) %]
355
	<!--  reserved  -->
391
        <div id="hold-found2" class="modal fade audio-alert-action">
356
392
            <form method="post" action="returns.pl" class="confirm">
357
    <div id="hold-found2" class="dialog message audio-alert-action">
393
                <div class="modal-header">
358
      <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
394
                    <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
359
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
395
                </div>
360
        <h5>Hold for:</h5>
396
361
		<ul>
397
                <div class="modal-body">
362
            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
398
                    [% IF ( reservenotes ) %]
363
                [% borsurname %], [% borfirstname %]
399
                        <h4>Notes: [% reservenotes %]</h4>
364
            </a> ([% borcnum %])</li>
400
                    [% END %]
365
            <li>[% borstnum %] [% boraddress %]<br />
401
                    <h5>Hold for:</h5>
366
			[% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
402
367
			[% borcity %] [% borzip %]</li>
403
                        <li>
368
            [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
404
                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
369
            [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
405
                                [% borsurname %], [% borfirstname %]
370
[% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
406
                            </a>
371
[% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
407
                            ([% borcnum %])
372
        </ul>
408
                        </li>
373
        [% IF ( transfertodo ) %]
409
374
            <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
410
                        <li>
375
		[% ELSE %]
411
                            [% borstnum %] [% boraddress %]<br />
376
		<h4><strong>Hold at</strong> [% destbranchname %]</h4>
412
                            [% IF ( boraddress2 ) %]
377
        [% END %]
413
                                [% boraddress2 %]<br />
378
        <form method="post" action="returns.pl" class="confirm">
414
                            [% END %]
379
            <input type="hidden" name="print_slip" value="0" />
415
                            [% borcity %] [% borzip %]
380
            [% IF ( transfertodo ) %]
416
                        </li>
381
                <input type="submit" class="approve" value="Confirm hold and transfer" />
417
382
                <input type="submit" value="Print slip, transfer, and confirm" class="print" onclick="this.form.print_slip.value = 1; this.form.submit()" />
418
                        [% IF ( borphone ) %]
383
            [% ELSE %]
419
                            <li>[% borphone %]</li>
384
                <input type="submit" class="approve" value="Confirm hold" />
420
                        [% END %]
385
                <input type="submit" value="Print slip and confirm" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();" />
421
386
            [% END %]
422
                        [% IF ( boremail ) %]
387
                <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
423
                            <li>
388
            [% FOREACH inputloo IN inputloop %]
424
                                [% IF ( transfertodo ) %]
389
	<input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
425
                                    [% boremail %]
390
	<input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
426
                                [% ELSE %]
391
	<input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
427
                                    <a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>
392
            <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
428
                                [% END %]
393
            <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
429
                            </li>
394
            <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
430
                        [% END %]
395
            <input type="hidden" name="resbarcode" value="[% barcode %]" />
431
396
            <input type="hidden" name="diffBranch" value="[% destbranch %]" />
432
                        [% IF ( debarred ) %]
397
            <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
433
                            <li class="error">Patron is RESTRICTED</li>
398
            <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
434
                        [% END %]
399
            <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
435
400
            <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
436
                        [% IF ( gonenoaddress ) %]
401
            <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
437
                            <li class="error">Patron's address is in doubt</li>
402
        </form>
438
                        [% END %]
403
	</div>
439
440
                    [% IF ( transfertodo ) %]
441
                        <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
442
                    [% ELSE %]
443
                        <h4><strong>Hold at</strong> [% destbranchname %]</h4>
444
                    [% END %]
445
446
                    <input type="hidden" name="print_slip" value="0" />
447
448
449
                    [% FOREACH inputloo IN inputloop %]
450
                        <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
451
                        <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
452
                        <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
453
                    [% END %]
454
455
                    <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
456
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
457
                    <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
458
                    <input type="hidden" name="resbarcode" value="[% barcode %]" />
459
                    <input type="hidden" name="diffBranch" value="[% destbranch %]" />
460
                    <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
461
                    <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
462
                    <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
463
                    <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
464
                    <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
465
                </div>
466
467
                <div class="modal-footer">
468
                    [% IF ( transfertodo ) %]
469
                        <button type="submit" class="btn approve">
470
                            <i class="fa fa-check"></i> Confirm hold and transfer
471
                        </button>
472
                        <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit()">
473
                            <i class="fa fa-print"></i> Print slip, transfer, and confirm
474
                        </button>
475
                    [% ELSE %]
476
                        <button type="submit" class="btn approve">
477
                            <i class="fa fa-check"></i> Confirm hold
478
                        </button>
479
                        <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit();">
480
                            <i class="fa fa-print"></i> Print slip and confirm
481
                        </button>
482
                    [% END %]
483
484
                    <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;">
485
                        <i class="fa fa-times"></i> Ignore
486
                    </button>
487
                </div>
488
            </form>
489
        </div>
404
    [% END %]
490
    [% END %]
405
[% END %]
491
[% END %]
406
492
407
- 

Return to bug 11360