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:
Fridolin Somers 2022-12-13 11:24:54 -10:00 committed by Tomas Cohen Arazi
parent 75c9b07c5c
commit 4cb5f36c2a
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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);