better eliminination of empty subfields
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 25 Aug 2006 16:35:47 +0000 (16:35 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 25 Aug 2006 16:35:47 +0000 (16:35 +0000)
git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@67 4670fa4d-42ec-0310-ab5b-a66af6943492

lib/Biblio/Isis.pm

index f310501..3f70647 100644 (file)
@@ -599,7 +599,7 @@ sub to_hash {
                                        next if (! $t);
                                        my ($sf,$v) = (substr($t,0,1), substr($t,1));
                                        # XXX this might be option, but why?
-                                       next unless ($v);
+                                       next unless (defined($v) && $v ne '');
 #                                      warn "### $f_nr^$sf:$v",$/ if ($self->{debug} > 1);
 
                                        if (ref( $val->{$sf} ) eq 'ARRAY') {