Bugzilla – Attachment 28778 Details for
Bug 12343
TransformKohaToMarc() is adding MARC subfields in random order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12343: QA follow-up
Bug-12343-QA-follow-up.patch (text/plain), 1013 bytes, created by
Jonathan Druart
on 2014-06-11 11:37:47 UTC
(
hide
)
Description:
Bug 12343: QA follow-up
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-06-11 11:37:47 UTC
Size:
1013 bytes
patch
obsolete
>From aba7661e1a0c4f0f6fbbbf69222eb6717cf930a8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 11 Jun 2014 13:36:28 +0200 >Subject: [PATCH] Bug 12343: QA follow-up > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/Biblio.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 7e10e69..0ee661b 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2194,9 +2194,10 @@ sub TransformKohaToMarc { > while ( my ($name, $value) = each %$hash ) { > next unless my $dtm = $db_to_marc->{''}->{$name}; > next unless ( scalar( @$dtm ) ); >- my ($tag, $letter) = @$dtm; $tag .= ''; >+ my ($tag, $letter) = @$dtm; >+ $tag .= ''; > foreach my $value ( split(/\s?\|\s?/, $value, -1) ) { >- $value eq '' && next; >+ next if $value eq ''; > $tag_hr->{$tag} //= []; > push @{$tag_hr->{$tag}}, [($letter, $value)]; > } >-- >2.0.0.rc2
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 12343
:
28631
|
28719
|
28776
|
28777
| 28778