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

(-)a/circ/circulation.pl (-3 / +15 lines)
Lines 97-102 my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( Link Here
97
97
98
my $branches = GetBranches();
98
my $branches = GetBranches();
99
99
100
my $force_allow_issue = $query->param('forceallow') || 0;
101
102
my @failedrenews = $query->param('failedrenew');    # expected to be itemnumbers
103
our %renew_failed = ();
104
for (@failedrenews) { $renew_failed{$_} = 1; }
105
106
my @failedreturns = $query->param('failedreturn');
107
our %return_failed = ();
108
for (@failedreturns) { $return_failed{$_} = 1; }
109
100
my $findborrower = $query->param('findborrower') || q{};
110
my $findborrower = $query->param('findborrower') || q{};
101
$findborrower =~ s|,| |g;
111
$findborrower =~ s|,| |g;
102
my $borrowernumber = $query->param('borrowernumber');
112
my $borrowernumber = $query->param('borrowernumber');
Lines 235-241 if ($borrowernumber) { Link Here
235
        #borrowercard expired, no issues
245
        #borrowercard expired, no issues
236
        $template->param(
246
        $template->param(
237
            flagged  => "1",
247
            flagged  => "1",
238
            noissues => "1",
248
            noissues => ($force_allow_issue) ? 0 : "1",
249
            forceallow => $force_allow_issue,
239
            expired => "1",
250
            expired => "1",
240
            renewaldate => format_date("$renew_year-$renew_month-$renew_day")
251
            renewaldate => format_date("$renew_year-$renew_month-$renew_day")
241
        );
252
        );
Lines 328-334 if ($barcode) { Link Here
328
        );
339
        );
329
        $blocker = 1;
340
        $blocker = 1;
330
    }
341
    }
331
    if( !$blocker ){
342
    if( !$blocker || $force_allow_issue ){
332
        my $confirm_required = 0;
343
        my $confirm_required = 0;
333
        unless($issueconfirmed){
344
        unless($issueconfirmed){
334
            #  Get the item title for more information
345
            #  Get the item title for more information
Lines 400-406 foreach my $flag ( sort keys %$flags ) { Link Here
400
    $flags->{$flag}->{'message'} =~ s#\n#<br />#g;
411
    $flags->{$flag}->{'message'} =~ s#\n#<br />#g;
401
    if ( $flags->{$flag}->{'noissues'} ) {
412
    if ( $flags->{$flag}->{'noissues'} ) {
402
        $template->param(
413
        $template->param(
403
            noissues => 'true',
414
            noissues => ($force_allow_issue) ? 0 : 'true',
415
            forceallow => $force_allow_issue,
404
        );
416
        );
405
        if ( $flag eq 'GNA' ) {
417
        if ( $flag eq 'GNA' ) {
406
            $template->param( gna => 'true' );
418
            $template->param( gna => 'true' );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +25 lines)
Lines 250-255 $(document).ready(function() { Link Here
250
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
250
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
251
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
251
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
252
252
253
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
254
253
[% IF ( RESERVED ) %]
255
[% IF ( RESERVED ) %]
254
    <p>
256
    <p>
255
    <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
257
    <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
Lines 289-294 $(document).ready(function() { Link Here
289
[% END %]
291
[% END %]
290
292
291
<form method="get" action="/cgi-bin/koha/circ/circulation.pl">
293
<form method="get" action="/cgi-bin/koha/circ/circulation.pl">
294
    [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
292
    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
295
    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
293
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
296
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
294
    <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
297
    <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
Lines 338-343 $(document).ready(function() { Link Here
338
                [% FOREACH book IN options %]
341
                [% FOREACH book IN options %]
339
                    <br />
342
                    <br />
340
                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
343
                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
344
                    [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
341
                        <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
345
                        <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
342
                        <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
346
                        <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
343
                        <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
347
                        <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
Lines 414-424 $(document).ready(function() { Link Here
414
        [% END %]
418
        [% END %]
415
        </ul>
419
        </ul>
416
420
421
        [% IF (forceallow) %]
422
            <li>Debarment overridden temporarily</li>
423
        [% END %]
424
417
</div></div>
425
</div></div>
418
[% ELSE %]
426
[% ELSE %]
419
[% IF ( soundon ) %]
427
[% IF ( soundon ) %]
420
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
428
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
421
[% END %]
429
[% END %]
430
431
  [% IF (forceallow) %]
432
      <div id="overridden_debarment" class="dialog alert">Debarment overridden temporarily</div>
433
  [% END %]
434
422
    [% END %] <!-- /impossible -->
435
    [% END %] <!-- /impossible -->
423
436
424
[% IF ( issued ) %]
437
[% IF ( issued ) %]
Lines 440-445 No patron matched <span class="ex">[% message %]</span> Link Here
440
<fieldset id="circ_circulation_selectborrower" class="brief">
453
<fieldset id="circ_circulation_selectborrower" class="brief">
441
    <legend>Patron selection</legend>
454
    <legend>Patron selection</legend>
442
455
456
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
443
    <input type="hidden" name="branch" value="[% branch %]" />
457
    <input type="hidden" name="branch" value="[% branch %]" />
444
    <input type="hidden" name="printer" value="[% printer %]" />
458
    <input type="hidden" name="printer" value="[% printer %]" />
445
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
459
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
Lines 478-483 No patron matched <span class="ex">[% message %]</span> Link Here
478
        <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
492
        <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
479
    [% END %]
493
    [% END %]
480
494
495
    [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
496
481
    <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
497
    <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
482
498
483
	<div class="hint">Enter item barcode:</div>
499
	<div class="hint">Enter item barcode:</div>
Lines 535-540 No patron matched <span class="ex">[% message %]</span> Link Here
535
		<h3>[% IF ( noissues ) %]
551
		<h3>[% IF ( noissues ) %]
536
		        Cannot check out!
552
		        Cannot check out!
537
		[% ELSE %]Attention:[% END %]</h3>
553
		[% ELSE %]Attention:[% END %]</h3>
554
555
538
		<ul>
556
		<ul>
539
557
540
			[% IF ( warndeparture ) %]
558
			[% IF ( warndeparture ) %]
Lines 603-608 No patron matched <span class="ex">[% message %]</span> Link Here
603
621
604
622
605
			</ul>
623
			</ul>
624
625
[% IF (noissues && borrowernumber) %]
626
<div class="override_debarment">
627
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&amp;borrowernumber=[% borrowernumber %]" class="btn btn-small">Override debarment temporarily</a>
628
</div>
629
[% END %]
630
606
        </div>
631
        </div>
607
632
608
			[% IF ( WaitingReserveLoop ) %]
633
			[% IF ( WaitingReserveLoop ) %]
609
- 

Return to bug 643