diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index d5b9a67a4f..d17639e41e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -125,7 +125,11 @@ [% END %] - + [% UNLESS hold.expired %] + + [% ELSE %] + [% hold.expirationdate | $KohaDates %] + [% END %] [%- IF ( hold.found ) -%] diff --git a/reserve/request.pl b/reserve/request.pl index be406d2420..efa352aa51 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -615,8 +615,9 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) $reserve{'item_level_hold'} = 1; } } - $reserve{'expirationdate'} = $res->expirationdate; + $reserve{'expired'} = 1 + if ( DateTime->compare( dt_from_string( $res->expirationdate ), dt_from_string() ) == -1 ); $reserve{'date'} = $res->reservedate; $reserve{'borrowernumber'} = $res->borrowernumber(); $reserve{'biblionumber'} = $res->biblionumber();