TransformHtmlToXml() now checks from UNIMARC flavour, before inserting encoding info...
authorMason James <mason.james@liblime.com>
Wed, 2 Jan 2008 07:25:04 +0000 (01:25 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 2 Jan 2008 13:54:30 +0000 (07:54 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm

index 1b9c02f..6f54a84 100755 (executable)
@@ -2575,7 +2575,7 @@ sub TransformHtmlToXml {
         }
         $prevtag = @$tags[$i];
     }
-    if (C4::Context->preference('marcflavour') and !$unimarc_and_100_exist) {
+    if (C4::Context->preference('marcflavour') eq 'UNIMARC' and !$unimarc_and_100_exist) {
 #     warn "SETTING 100 for $auth_type";
         use POSIX qw(strftime);
         my $string = strftime( "%Y%m%d", localtime(time) );