Bugzilla – Attachment 150595 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]
removed comments and _add_rowdata
removed-comments-and-addrowdata.patch (text/plain), 1.68 KB, created by
Mark Hofstetter
on 2023-05-03 14:57:24 UTC
(
hide
)
Description:
removed comments and _add_rowdata
Filename:
MIME Type:
Creator:
Mark Hofstetter
Created:
2023-05-03 14:57:24 UTC
Size:
1.68 KB
patch
obsolete
>From 60c97bf7e5bd54c7ad0cc2ec7ed4bd10d1c8ea37 Mon Sep 17 00:00:00 2001 >From: Mark Hofstetter <mark@hofstetter.at> >Date: Wed, 3 May 2023 16:21:05 +0200 >Subject: [PATCH] removed comments and _add_rowdata > >https://bugs.koha-community.org/show_bug.cgi?id=28166 >--- > C4/Breeding.pm | 28 ---------------------------- > 1 file changed, 28 deletions(-) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index aaa675b708..849efc39c6 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -342,36 +342,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.20.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