$ctx->{marc_xml} = $rec_data[0]->{marc_xml};
$ctx->{copies} = $copy_rec->gather(1);
+
+ # Add public 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;
padding-left: 13px;
text-align: left;
}
+#rdetails_status tbody td.copy_note {
+ color: [% css_colors.primary %];
+ text-wrap:normal;
+ white-space:pre-wrap !important;
+ word-wrap:normal;
+}
.rdetail_extras {
height: 29px;
[%- ELSE -%]
<th id='copy_header_library'>[% l("Location") %]</th>
[%- END %]
- <th id='copy_header_callnmber'>[% l("Call Number") %]</th>
+ <th id='copy_header_callnmber'>[% l("Call Number / Copy Notes") %]</th>
[%- IF has_parts == 'true' %]
<th id='copy_header_part'>[% l("Part") %]</th>
[%- END %]
'-';
END %]</td>
</tr>
+
+ [% IF copy_info.notes; %]
+ [% FOREACH note IN copy_info.notes; %]
+ <tr><td> </td><td class="copy_note" colspan="4"><strong>[% note.title | html %]:</strong> [% note.value | html %]</td></tr>
+ [% END %]
+ [% END %]
+
[%- END %]
<tr>
[%- IF ctx.copy_offset > 0 AND NOT serial_holdings;