|
Lines 165-175
sub metadata_record {
Link Here
|
| 165 |
|
165 |
|
| 166 |
if ( $params->{embed_items} ) { |
166 |
if ( $params->{embed_items} ) { |
| 167 |
push @filters, 'EmbedItems'; |
167 |
push @filters, 'EmbedItems'; |
| 168 |
if ( $params->{interface} eq 'opac' ) { |
168 |
if ( $params->{interface} && $params->{interface} eq 'opac' ) { |
| 169 |
$options->{items} = $self->items->filter_by_visible_in_opac( |
169 |
$options->{items} = $self->items->filter_by_visible_in_opac( |
| 170 |
{ ( $params->{patron} ? ( patron => $params->{patron} ) : () ) } ); |
170 |
{ ( $params->{patron} ? ( patron => $params->{patron} ) : () ) } )->unblessed; |
| 171 |
} else { |
171 |
} else { |
| 172 |
$options->{items} = $self->items; |
172 |
$options->{items} = $self->items->unblessed; |
| 173 |
} |
173 |
} |
| 174 |
} |
174 |
} |
| 175 |
|
175 |
|
| 176 |
- |
|
|