|
Lines 218-224
sub GetRecords {
Link Here
|
| 218 |
|
218 |
|
| 219 |
my $biblioitem = $biblio->biblioitem->unblessed; |
219 |
my $biblioitem = $biblio->biblioitem->unblessed; |
| 220 |
|
220 |
|
| 221 |
my $record = $biblio->metadata->record({ embed_items => 1 }); |
221 |
my $record = $biblio->metadata->record({ embed_items => 1, opac => 1, }); |
| 222 |
if ($record) { |
222 |
if ($record) { |
| 223 |
$biblioitem->{marcxml} = $record->as_xml_record( C4::Context->preference('marcflavour') ); |
223 |
$biblioitem->{marcxml} = $record->as_xml_record( C4::Context->preference('marcflavour') ); |
| 224 |
} |
224 |
} |
|
Lines 236-242
sub GetRecords {
Link Here
|
| 236 |
foreach my $checkout (@$checkouts) { |
236 |
foreach my $checkout (@$checkouts) { |
| 237 |
delete $checkout->{'borrowernumber'}; |
237 |
delete $checkout->{'borrowernumber'}; |
| 238 |
} |
238 |
} |
| 239 |
my @items = $biblio->items->as_list; |
239 |
my @items = $biblio->items->filter_by_visible_in_opac->as_list; |
| 240 |
|
240 |
|
| 241 |
$biblioitem->{items}->{item} = []; |
241 |
$biblioitem->{items}->{item} = []; |
| 242 |
|
242 |
|
| 243 |
- |
|
|