Fixes a thinko with my previous commit to display a star
next to age-protected items.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
'-';
END %]</td>
<!-- PINES customization: Show alert if item is new -->
- <td>[% IF copy_info.age_protect && copy_info.create_date < (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>[% 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>
</tr>