View | Details | Raw Unified | Return to bug 9752
Collapse All | Expand All

(-)a/C4/Installer.pm (-4 / +4 lines)
Lines 407-416 sub load_sql_in_order { Link Here
407
Set the 'marcflavour' system preference.  The incoming
407
Set the 'marcflavour' system preference.  The incoming
408
C<$marcflavour> references to a subdirectory of
408
C<$marcflavour> references to a subdirectory of
409
installer/data/$dbms/$lang/marcflavour, and is
409
installer/data/$dbms/$lang/marcflavour, and is
410
normalized to MARC21 or UNIMARC.
410
normalized to MARC21, UNIMARC or NORMARC.
411
411
412
FIXME: this method assumes that the MARC flavour will be either
412
FIXME: this method assumes that the MARC flavour will be either
413
MARC21 or UNIMARC.
413
MARC21, UNIMARC or NORMARC.
414
414
415
=cut
415
=cut
416
416
Lines 422-430 sub set_marcflavour_syspref { Link Here
422
    # marc_cleaned finds the marcflavour, without the variant.
422
    # marc_cleaned finds the marcflavour, without the variant.
423
    my $marc_cleaned = 'MARC21';
423
    my $marc_cleaned = 'MARC21';
424
    $marc_cleaned = 'UNIMARC' if $marcflavour =~ /unimarc/i;
424
    $marc_cleaned = 'UNIMARC' if $marcflavour =~ /unimarc/i;
425
    $marc_cleaned = 'NORMARC' if $marcflavour =~ /normarc/i;
425
    my $request =
426
    my $request =
426
        $self->{'dbh'}->prepare(
427
        $self->{'dbh'}->prepare(
427
          "INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('marcflavour','$marc_cleaned','Define global MARC flavor (MARC21 or UNIMARC) used for character encoding','MARC21|UNIMARC','Choice');"
428
          "INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('marcflavour','$marc_cleaned','Define global MARC flavor (MARC21, UNIMARC or NORMARC) used for character encoding','MARC21|UNIMARC|NORMARC','Choice');"
428
        );
429
        );
429
    $request->execute;
430
    $request->execute;
430
}
431
}
431
- 

Return to bug 9752