@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt | 7 +++++--
serials/checkexpiration.pl | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt
@@ -47,8 +47,11 @@
-
+ [% IF showhistoricexpired %]
+
+ [% ELSE %]
+
+ [% END %]
--- a/serials/checkexpiration.pl
+++ a/serials/checkexpiration.pl
@@ -70,7 +70,7 @@ my $issn = $query->param('issn');
my $branch = $query->param('branch');
my $date = $query->param('date');
$date = eval { dt_from_string( scalar $query->param('date') ) } if $date;
-my $showhistoricexpired = $query->param('showhistoryexpired');
+my $showhistoricexpired = $query->param('showhistoricexpired');
if ($date) {
my @subscriptions = SearchSubscriptions({ title => $title, issn => $issn, orderby => 'title' });
@@ -97,7 +97,7 @@ if ($date) {
my $expirationdate_dt = dt_from_string( $expirationdate, 'iso' );
my $today_dt = dt_from_string();
if ( DateTime->compare( $date, $expirationdate_dt ) == 1
- && ( $showhistoricexpired || DateTime->compare( $expiration_dt, $today_dt ) == 1 )
+ && ( $showhistoricexpired || DateTime->compare( $expirationdate_dt, $today_dt ) == 1 )
&& ( !$branch || ( $subscription->{'branchcode'} eq $branch ) ) ) {
push @subscriptions_loop, $subscription;
}
--