From: Terran McCanna Date: Mon, 23 Nov 2020 17:55:55 +0000 (-0500) Subject: OPAC: Show Age Protection Alert X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ae2fc12fa726c9b2074008208dffa09aaaf265fd;p=evergreen%2Fpines.git 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 --- 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 a35873640c..f68c00a96b 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 @@ -53,7 +53,9 @@ IF has_copies or ctx.foreign_copies; [%- IF ctx.is_staff OR serial_holdings %] [% l("Holdable?") %] [%- END %] - [% l("Status") %] + [% l("Status") %] + [% l("Due Date") %] +   @@ -214,7 +216,18 @@ END; # FOREACH bib schema_copy_status.${copy_info.status_code}; copy_info.copy_status | html; -%] - + [% + 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; %]