return {
select => {
- acp => ['id', 'barcode', 'circ_lib', 'create_date',
+ acp => ['id', 'barcode', 'circ_lib', 'create_date', 'active_date',
'age_protect', 'holdable', 'copy_number'],
acpl => [
{column => 'name', alias => 'copy_location'},
[%- IF ctx.is_staff %]
<th scope='col'>[% l("Age Hold Protection") %]</th>
<th scope='col'>[% l("Create Date") %]</th>
+ <th scope='col'>[% l("Active/Create Date") %]</th>
[%- END %]
[%- IF ctx.is_staff OR serial_holdings %]
<th scope='col'>[% l("Holdable?") %]</th>
[% copy_info.age_protect ?
ctx.get_crahp(copy_info.age_protect).name : l('None') | html %]
</td>
- <td>[% date.format(
- ctx.parse_datetime(copy_info.create_date),
+ <td>[%
+ IF ctx.get_org_setting(copy_info.circ_lib, 'circ.holds.age_protect.active_date') == 1;
+ disp_date = copy_info.active_date ? copy_info.active_date : copy_info.create_date;
+ ELSE;
+ disp_date = copy_info.create_date;
+ END;
+
+ date.format(
+ ctx.parse_datetime(disp_date),
DATE_FORMAT
) %]</td>
[% END # is_staff %]