Bug Fixing ISBD parser had problems with commas
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 16 Oct 2007 21:02:33 +0000 (16:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 17 Oct 2007 12:06:38 +0000 (07:06 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
catalogue/ISBDdetail.pl

index 72f6b5e..8401511 100755 (executable)
@@ -141,7 +141,7 @@ foreach my $isbdfield ( split /#/, $bloc ) {
                         $subf[$i][1], '', $dbh );
                     my $tagsubf = $tag . $subfieldcode;
                     $calculated =~
-s/\{(.?.?.?)$tagsubf(.*?)\}/$1$subfieldvalue\{$1$tagsubf$2\}$2/g;
+s/\{(.?.?.?)$tagsubf(.*?)\}/$1$subfieldvalue$2\{$1$tagsubf$2\}/g;
                 }
 
                 # field builded, store the result