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