{
#borrowercard expired, no issues
$template->param(
- flagged => "1",
noissues => ($force_allow_issue) ? 0 : "1",
forceallow => $force_allow_issue,
expired => "1",
{
# borrower card soon to expire warn librarian
$template->param( "warndeparture" => $borrower->{dateexpiry} ,
- flagged => "1"
);
if (C4::Context->preference('ReturnBeforeExpiry')){
$template->param("returnbeforeexpiry" => 1);
#title
my $flags = $borrower->{'flags'};
foreach my $flag ( sort keys %$flags ) {
- $template->param( flagged=> 1);
$flags->{$flag}->{'message'} =~ s#\n#<br />#g;
if ( $flags->{$flag}->{'noissues'} ) {
$template->param(
}
);
-if( $librarian_messages->count or $patron_messages->count ) {
- $template->param(flagged => 1)
-}
-
my $fast_cataloging = 0;
if (defined getframeworkinfo('FA')) {
$fast_cataloging = 1
</form>
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
- [% UNLESS flagged && noissues %]
+ [% UNLESS noissues %]
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber %]&borrowernumber=[% borrowernumber %]'"><i class="fa fa-times-circle"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
[% END %]
[% END %]
[% END %]
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
-[% IF ( flagged ) %]
<div class="yui-u first">
-[% ELSE %]
-<div>
-
-[% END %]
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
<input type="hidden" name="restoreduedatespec" />
[% END %]
<button type="submit" class="btn">Check out</button>
- [% UNLESS flagged and noissues %]
+ [% UNLESS noissues %]
<div class="date-select">
[% IF NEEDSCONFIRMATION %]
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
<div class="yui-u">
[% END %]
- [% IF flagged %]
[% IF ( noissues ) %]
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
<div id="circmessages" class="circmessage attention">
</ul>
</div>
- <!-- /If flagged -->[% END %]
-
-
</div>
</div>