my $details = retrieve_hold_queue_status_impl($e, $hold);
my $resp = {
- hold => $hold,
+ hold => $hold,
+ bre_id => $bre->id,
($copy ? (copy => $copy) : ()),
($volume ? (volume => $volume) : ()),
($issuance ? (issuance => $issuance) : ()),
suppress_notices => 1,
suppress_transits => 1,
suppress_mvr => 1,
- suppress_patron_details => 1,
- include_bre => $flesh ? 1 : 0
+ suppress_patron_details => 1
};
# ----------------------------------------------------------------
@collected = grep { $_->{hold}->{status} == 4 } @collected;
}
while(my $blob = pop(@collected)) {
- $blob->{marc_xml} = XML::LibXML->new->parse_string($blob->{hold}->{bre}->marc) if $flesh;
+ my (undef, @data) = $self->get_records_and_facets(
+ [$blob->{hold}->{bre_id}], undef, {flesh => '{mra}'}
+ );
+ $blob->{marc_xml} = $data[0]->{marc_xml};
push(@holds, $blob);
}
}
<td width="64">
<div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
[% IF attrs.format_icon %]
- <img src="[% ctx.media_prefix %]/images/[% attrs.form_icon %]"
- title="[% attrs.format %]" alt="[% attrs.format %]" />
- [% ELSE;
- attrs.format;
- END %]
+ <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
+ [% END %]
</div>
</td>
<td width="136">
<td width="64">
<div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
[% IF attrs.format_icon %]
- <img src="[% ctx.media_prefix %]/images/[% attrs.form_icon %]"
- title="[% attrs.format %]" alt="[% attrs.format %]" />
- [% ELSE;
- attrs.format;
- END %]
+ <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
+ [% END %]
</div>
</td>
<td width="136">