Public copy notes should be displayed on the TPAC record details page.
Loop over the returned copies and gathers any copy notes for display,
then display the notes in the TPAC record details page.
Signed-off-by: David Busby <code@edoceo.com>
$ctx->{marc_xml} = $rec_data[0]->{marc_xml};
$ctx->{copies} = $copy_rec->gather(1);
+
+ # Add Copy Notes to Each Copy?
+ foreach my $copy (@{$ctx->{copies}}) {
+ $copy->{notes} = $U->simplereq(
+ 'open-ils.circ',
+ 'open-ils.circ.copy_note.retrieve.all',
+ {itemid => $copy->{id}, pub => 1 }
+ );
+ }
+
$self->timelog("past store copy retrieval call");
$ctx->{copy_limit} = $copy_limit;
$ctx->{copy_offset} = $copy_offset;
'-';
END %]</td>
</tr>
+ <!-- @edoceo The Copy Notes Dump -->
+ [% IF copy_info.notes; %]
+ [% FOREACH note IN copy_info.notes; %]
+ <tr><td> </td><td colspan="2" style="color: #00593d;"><strong>[% note.title | html %]:</strong> [% note.value | html %]</td></tr>
+ [% END %]
+ [% END %]
+
[%- END %]
<tr>
[%- IF ctx.copy_offset > 0 AND NOT serial_holdings;