important fix: identifiers should be first two characters and than ^,
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Dec 2004 04:21:21 +0000 (04:21 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Dec 2004 04:21:21 +0000 (04:21 +0000)
otherwise, leave them alone.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@23 4670fa4d-42ec-0310-ab5b-a66af6943492

IsisDB.pm

index d8919d2..6f31967 100644 (file)
--- a/IsisDB.pm
+++ b/IsisDB.pm
@@ -520,7 +520,7 @@ sub to_hash {
                        my $val;
 
                        # has identifiers?
-                       ($val->{'i1'},$val->{'i2'}) = ($1,$2) if ($l =~ s/^([01 #])([01 #])//);
+                       ($val->{'i1'},$val->{'i2'}) = ($1,$2) if ($l =~ s/^([01 #])([01 #])\^/\^/);
 
                        # has subfields?
                        if ($l =~ m/\^/) {