X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=serials%2Fcheckexpiration.pl;h=8dff415473c68d9a47d22d4652f68a2fab1885a5;hb=537c66403855437d2ce52eeb758fc009c7105633;hp=16529b0a7aa23a17e827d73cff3624a28968f334;hpb=df4b588c6e7166a50ca5724fde16e75c2c84d18c;p=koha_fer diff --git a/serials/checkexpiration.pl b/serials/checkexpiration.pl index 16529b0a7a..8dff415473 100755 --- a/serials/checkexpiration.pl +++ b/serials/checkexpiration.pl @@ -60,7 +60,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( query => $query, type => "intranet", authnotrequired => 0, - flagsrequired => { serials => 1 }, + flagsrequired => { serials => 'check_expiration' }, debug => 1, } ); @@ -79,6 +79,7 @@ if ($date) { $subscription->{expirationdate} = $expirationdate; next if $expirationdate !~ /\d{4}-\d{2}-\d{2}/; # next if not in ISO format. + next if $subscription->{closed}; if ( Date_to_Days(split "-",$expirationdate) < Date_to_Days(split "-",$date) && Date_to_Days(split "-",$expirationdate) > Date_to_Days(&Today) ) { $subscription->{expirationdate}=format_date($subscription->{expirationdate}); @@ -96,6 +97,6 @@ if ($date) { ); } $template->param ( - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), + (uc(C4::Context->preference("marcflavour"))) => 1 ); output_html_with_http_headers $query, $cookie, $template->output;