Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
'-';
END %]</td>
<!-- PINES customization: Show alert if item is new -->
- <td>[% IF copy_info.age_protect && (date.format(copy_info.active_date) > date.format(date.now - 15552000)); '<a title="" data-toggle="tooltip" data-original-title="' _ l("This is a new item and may only be checked out locally.") _ '"><i class="fas fa-star" style="color:orange;" aria-hidden="true"></i></a>'; END; %]
+ <td>[%
+ 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);
+ '<a title="" data-toggle="tooltip" data-original-title="' _ l("This is a new item and may only be checked out locally.") _ '"><i class="fas fa-star" style="color:orange;" aria-hidden="true"></i></a>';
+ END; %]
</td>
</tr>