package BookPub::Import::Importer::Numilog::Version2;

use strict;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Import::Importer::Numilog';

sub _fieldMap {
    {
        rChannel               => 'B',
        currencyCode           => 'M',
        countryCode            => 'Q',
        rFormat                => 'H',
        rIsbn13                => 'G',
        rTitle                 => 'C',
        rImprint               => 'A',
        rUnits                 => 'I',
        rListPrice             => 'X',
        rListPriceCurrency     => 'M',
        rPurchasePrice         => 'S',
        rPurchasePriceCurrency => 'M',
        rRevenue               => 'N',
    };
}

sub _unverifiedFieldMap {
    {
        authorLastName  => 'D',
        authorFirstName => 'E',
    };
}

# Need to override the base class here
sub countryCode {
    my $self        = shift;
    my $countryCode = $self->_getByFieldName('countryCode');

    return $countryCode;
}

1;
