Bug 32464: Koha::Item->as_marc_field obsolete option mss
Since Bug 28445 the method Koha::Item->as_marc_field has the option mss not anymore. This patch removes this in Koha::Filter::MARC::EmbedItems. Test with : prove t/db_dependent/Koha/Filter/EmbedItems.t Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
75c9b07c5c
commit
4cb5f36c2a
1 changed files with 1 additions and 3 deletions
|
@ -71,13 +71,11 @@ sub filter {
|
|||
return unless defined $record and ref($record) eq 'MARC::Record';
|
||||
|
||||
my $items = $self->{params}->{options}->{items};
|
||||
my $mss = $self->{params}->{options}->{mss}
|
||||
// C4::Biblio::GetMarcSubfieldStructure( '', { unsafe => 1 } );
|
||||
|
||||
my @item_fields;
|
||||
|
||||
foreach my $item ( @{$items} ) {
|
||||
push @item_fields, $item->as_marc_field( { mss => $mss } );
|
||||
push @item_fields, $item->as_marc_field;
|
||||
}
|
||||
|
||||
$record->append_fields(@item_fields);
|
||||
|
|
Loading…
Reference in a new issue