From 9311abebeddce4fe8ef48fc41af2f751795ef4b3 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 23 Nov 2020 12:55:55 -0500 Subject: [PATCH] OPAC: Show Age Protection Alert In Bootstrap OPAC, add a star with help popup next to items that are marked for age protection and are newer than 6 months. Signed-off-by: Terran McCanna --- .../templates-bootstrap/opac/parts/record/copy_table.tt2 | 16 +++++++++++++++- 1 file changed, 15 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 bc4bff5c44..3e7b8ef4b8 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 @@ -111,6 +111,9 @@ IF has_copies or ctx.foreign_copies; [%- IF ctx.geo_sort && ctx.has_valid_coords %] [% l("Distance") %] [%- END %] + [% l("Status") %] + [% l("Due Date") %] +   @@ -309,7 +312,18 @@ END; # FOREACH bib [%- FOREACH course IN copy_info.courses %]
[% course.course_number %]
[% END %] - + [% + IF copy_info.due_date; + date.format( + ctx.parse_datetime(copy_info.due_date, copy_info.circ_circ_lib), + DATE_FORMAT + ); + ELSE; + '-'; + END %] + + [% IF copy_info.age_protect && copy_info.create_date < (date.now - 15552000); ''; END; %] + [% IF copy_info.notes; %] -- 2.11.0