Bugzilla – Attachment 78688 Details for
Bug 12747
Add configurable extra column in Z3950 search result
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12747: (QA follow-up) Treat 010 according to marcflavour
Bug-12747-QA-follow-up-Treat-010-according-to-marc.patch (text/plain), 1.47 KB, created by
Biblibre Sandboxes
on 2018-09-14 18:39:12 UTC
(
hide
)
Description:
Bug 12747: (QA follow-up) Treat 010 according to marcflavour
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2018-09-14 18:39:12 UTC
Size:
1.47 KB
patch
obsolete
>From caeaf9269361bbb0ed36897af4d9063ee100b926 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Wed, 29 Aug 2018 11:43:49 -0400 >Subject: [PATCH] Bug 12747: (QA follow-up) Treat 010 according to marcflavour >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >--- > C4/Breeding.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index d187703..894ef2c 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -394,6 +394,7 @@ sub _add_custom_field_rowdata > { > my ( $row, $record ) = @_; > my $pref_newtags = C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); >+ my $pref_flavour = C4::Context->preference('MarcFlavour'); > > $pref_newtags =~ s/^\s+|\s+$//g; > $pref_newtags =~ s/\h+/ /g; >@@ -418,7 +419,9 @@ sub _add_custom_field_rowdata > if ( not $str eq '') { > push @content, $str; > } >- } elsif ( $tag <= 10 ) { >+ } elsif ( $tag == 10 ) { >+ push @content, ( $pref_flavour eq "MARC21" ? $marcfield->data : $marcfield->as_string ); >+ } elsif ( $tag < 10 ) { > push @content, $marcfield->data(); > } else { > push @content, $marcfield->as_string(); >-- >2.7.4
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 12747
:
30713
|
36823
|
37836
|
37893
|
38221
|
38233
|
38240
|
38286
|
38439
|
38440
|
38456
|
38457
|
38458
|
38460
|
41313
|
41317
|
41318
|
41319
|
58424
|
58425
|
58426
|
60965
|
66586
|
66587
|
66588
|
66589
|
67314
|
67315
|
68214
|
68215
|
69297
|
72706
|
72896
|
72897
|
72898
|
72979
|
72980
|
72981
|
73930
|
73955
|
74035
|
74037
|
74038
|
74039
|
74040
|
74783
|
74784
|
74785
|
74786
|
74787
|
75096
|
77729
|
78270
|
78271
|
78272
|
78687
|
78688
|
79349
|
79350
|
79351