From 503c77c58a039d2cd25a84c093476fcf533fe087 Mon Sep 17 00:00:00 2001 From: Mark Hofstetter Date: Wed, 3 May 2023 16:21:05 +0200 Subject: [PATCH] Bug 28166: Removed comments and _add_rowdata --- C4/Breeding.pm | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/C4/Breeding.pm b/C4/Breeding.pm index 14a58bcca58..f450b023b9d 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -343,36 +343,8 @@ sub _do_xslt_proc { } } -sub _add_rowdata { - my ($row, $record)=@_; - my %fetch= ( - title => 'biblio.title', - author => 'biblio.author', - isbn =>'biblioitems.isbn', - lccn =>'biblioitems.lccn', #LC control number (not call number) - edition =>'biblioitems.editionstatement' - ); - $fetch{date} = C4::Context->preference('marcflavour') eq "MARC21" ? 'biblio.copyrightdate' : 'biblioitems.publicationyear'; - - #foreach my $k (keys %fetch) { - # $row->{$k} = C4::Biblio::TransformMarcToKohaOneField( $fetch{$k}, $record ); - #} - $row->{date}//= $row->{date2}; - $row->{isbn}=_isbn_replace($row->{isbn}); - - $row = _add_custom_field_rowdata( - $row, - $record, - C4::Context->preference('AdditionalFieldsInZ3950ResultSearch')) - if C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); - return $row; -} - sub _add_custom_field_rowdata { - # my ( $row, $record ) = @_; - # my $pref_newtags = C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); - # hks3 my ( $row, $record, $pref_newtags ) = @_; my $pref_flavour = C4::Context->preference('MarcFlavour'); -- 2.25.1