Bugzilla – Attachment 150596 Details for
Bug 28166
Optionally add MARC fields to authority search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28166: Removed comments and _add_rowdata
Bug-28166-Removed-comments-and-addrowdata.patch (text/plain), 1.64 KB, created by
Jonathan Druart
on 2023-05-03 15:07:22 UTC
(
hide
)
Description:
Bug 28166: Removed comments and _add_rowdata
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-03 15:07:22 UTC
Size:
1.64 KB
patch
obsolete
>From 503c77c58a039d2cd25a84c093476fcf533fe087 Mon Sep 17 00:00:00 2001 >From: Mark Hofstetter <mark@hofstetter.at> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28166
:
120139
|
120154
|
120155
|
148749
|
148755
|
148778
|
150590
|
150594
|
150595
|
150596
|
150601
|
153431
|
156166
|
156167
|
156550
|
156551
|
157646
|
157647