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} ) : () ) } )->as_list; |
171 |
} else { |
171 |
} else { |
172 |
$options->{items} = $self->items; |
172 |
$options->{items} = $self->items->as_list; |
173 |
} |
173 |
} |
174 |
} |
174 |
} |
175 |
|
175 |
|
176 |
- |
|
|