projects
/
MARC-Fast
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
correctly upgrade repeatable field value to array
[MARC-Fast]
/
Fast.pm
diff --git
a/Fast.pm
b/Fast.pm
index
aa510ba
..
ace03b3
100644
(file)
--- a/
Fast.pm
+++ b/
Fast.pm
@@
-336,7
+336,7
@@
sub to_hash {
# repeatable subfiled -- convert it to array
if ($val->{$f}) {
- if (
$sf_usage->{$f} == 2
) {
+ if (
ref($val->{$f}) ne 'ARRAY'
) {
$val->{$f} = [ $val->{$f}, $val ];
} else {
push @{$val->{$f}}, $val;