projects
/
koha_fer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca5bb3
)
Bug 12343: QA follow-up
author
Jonathan Druart
<jonathan.druart@biblibre.com>
Wed, 11 Jun 2014 11:36:28 +0000
(13:36 +0200)
committer
Tomas Cohen Arazi
<tomascohen@gmail.com>
Sun, 15 Jun 2014 14:27:20 +0000
(11:27 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
C4/Biblio.pm
patch
|
blob
|
history
diff --git
a/C4/Biblio.pm
b/C4/Biblio.pm
index
7e10e69
..
0ee661b
100644
(file)
--- 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)];
}