From fc363fabef19ab55f92028fcaf7350435ecdedf6 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Sun, 17 Jan 2021 15:20:27 -0500 Subject: [PATCH] PINES Custom: 3rd attempt to fix the age protection star Signed-off-by: Terran McCanna --- Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 index 0175f04a30..8af0e6da7d 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 @@ -320,7 +320,12 @@ END; # FOREACH bib '-'; END %] - [% IF copy_info.age_protect && (date.format(copy_info.active_date) > date.format(date.now - 15552000)); ''; END; %] + [% + vActive = date.format(copy_info.active_date,'%Y%m%d'); + v6MonthsAgo = date.format(date.now - 15552000,'%Y%m%d'); + IF copy_info.age_protect && (vActive > v6MonthsAgo); + ''; + END; %] -- 2.11.0