TransformHtmlToXml() now checks from UNIMARC flavour, before inserting encoding info to 100$a

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Mason James 2008-01-02 01:25:04 -06:00 committed by Joshua Ferraro
parent fb61283115
commit 5dacccedec
1 changed files with 1 additions and 1 deletions

View File

@ -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) );