From 3727a8b01d417c4201874e49dd769804ffb64823 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Sun, 17 Jan 2021 13:09:05 -0500 Subject: [PATCH] PINES Custom OPAC Copy Table: Display Age Protection Star Fixes a thinko with my previous commit to display a star next to age-protected items. Signed-off-by: Terran McCanna --- Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 | 2 +- 1 file changed, 1 insertion(+), 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 26c786841d..0175f04a30 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,7 @@ END; # FOREACH bib '-'; END %] - [% IF copy_info.age_protect && copy_info.create_date < (date.now - 15552000); ''; END; %] + [% IF copy_info.age_protect && (date.format(copy_info.active_date) > date.format(date.now - 15552000)); ''; END; %] -- 2.11.0