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

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

Return to bug 11360