From: Terran McCanna Date: Sun, 17 Jan 2021 20:20:27 +0000 (-0500) Subject: PINES Custom: 3rd attempt to fix the age protection star X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d6e835f3f91d0198ff9ec067dc2dd790759f1c53;p=evergreen%2Fpines.git PINES Custom: 3rd attempt to fix the age protection star Signed-off-by: Terran McCanna --- 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 274051276a..17410114ff 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 @@ -216,7 +216,12 @@ END; # FOREACH bib copy_info.copy_status | html; -%] - [% 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; %]