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

(-)a/C4/Circulation.pm (-2 / +4 lines)
Lines 667-672 sub CanBookBeIssued { Link Here
667
    my ( $borrower, $barcode, $duedate, $inprocess, $ignore_reserves ) = @_;
667
    my ( $borrower, $barcode, $duedate, $inprocess, $ignore_reserves ) = @_;
668
    my %needsconfirmation;    # filled with problems that needs confirmations
668
    my %needsconfirmation;    # filled with problems that needs confirmations
669
    my %issuingimpossible;    # filled with problems that causes the issue to be IMPOSSIBLE
669
    my %issuingimpossible;    # filled with problems that causes the issue to be IMPOSSIBLE
670
    my %alerts;               # filled with messages that shouldn't stop issuing, but the librarian should be aware of.
671
    
670
    my $item = GetItem(GetItemnumberFromBarcode( $barcode ));
672
    my $item = GetItem(GetItemnumberFromBarcode( $barcode ));
671
    my $issue = GetItemIssue($item->{itemnumber});
673
    my $issue = GetItemIssue($item->{itemnumber});
672
	my $biblioitem = GetBiblioItemData($item->{biblioitemnumber});
674
	my $biblioitem = GetBiblioItemData($item->{biblioitemnumber});
Lines 849-855 sub CanBookBeIssued { Link Here
849
        $issuingimpossible{RESTRICTED} = 1;
851
        $issuingimpossible{RESTRICTED} = 1;
850
    }
852
    }
851
    if ( $item->{'itemlost'} ) {
853
    if ( $item->{'itemlost'} ) {
852
        $needsconfirmation{ITEM_LOST} = GetAuthorisedValueByCode( 'LOST', $item->{'itemlost'} );
854
        $alerts{ITEM_LOST} = GetAuthorisedValueByCode( 'LOST', $item->{'itemlost'} );
853
    }
855
    }
854
    if ( C4::Context->preference("IndependantBranches") ) {
856
    if ( C4::Context->preference("IndependantBranches") ) {
855
        my $userenv = C4::Context->userenv;
857
        my $userenv = C4::Context->userenv;
Lines 926-932 sub CanBookBeIssued { Link Here
926
            }
928
            }
927
        }
929
        }
928
    }
930
    }
929
    return ( \%issuingimpossible, \%needsconfirmation );
931
    return ( \%issuingimpossible, \%needsconfirmation, \%alerts );
930
}
932
}
931
933
932
=head2 AddIssue
934
=head2 AddIssue
(-)a/circ/circulation.pl (-1 / +3 lines)
Lines 275-284 if ($borrowernumber) { Link Here
275
#
275
#
276
if ($barcode) {
276
if ($barcode) {
277
    # always check for blockers on issuing
277
    # always check for blockers on issuing
278
    my ( $error, $question ) =
278
    my ( $error, $question, $alerts ) =
279
    CanBookBeIssued( $borrower, $barcode, $datedue , $inprocess );
279
    CanBookBeIssued( $borrower, $barcode, $datedue , $inprocess );
280
    my $blocker = $invalidduedate ? 1 : 0;
280
    my $blocker = $invalidduedate ? 1 : 0;
281
281
282
    $template->param( %$alerts );
283
282
    delete $question->{'DEBT'} if ($debt_confirmed);
284
    delete $question->{'DEBT'} if ($debt_confirmed);
283
    foreach my $impossible ( keys %$error ) {
285
    foreach my $impossible ( keys %$error ) {
284
        $template->param(
286
        $template->param(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-5 / +4 lines)
Lines 233-238 function refocus(calendar) { Link Here
233
    </div>
233
    </div>
234
[% END %]
234
[% END %]
235
235
236
[% IF ( ITEM_LOST ) %]
237
    <div class="dialog message">This item has been lost with a status of "[% ITEM_LOST %]".</div>
238
[% END %]
239
236
[% IF ( NEEDSCONFIRMATION ) %]
240
[% IF ( NEEDSCONFIRMATION ) %]
237
<div class="yui-g">
241
<div class="yui-g">
238
242
Lines 279-288 function refocus(calendar) { Link Here
279
[% IF ( USERBLOCKEDOVERDUE ) %]
283
[% IF ( USERBLOCKEDOVERDUE ) %]
280
    <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).  Check out anyway?</li>
284
    <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).  Check out anyway?</li>
281
[% END %]
285
[% END %]
282
283
[% IF ( ITEM_LOST ) %]
284
    <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li>
285
[% END %]
286
</ul>
286
</ul>
287
287
288
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
288
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
289
- 

Return to bug 7758