Marcel de Rooy
50bc4170ce
Move Isbd.t and TransformKohaToMarc.t to db_dependent. Next patch will add a few adjustments too. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lee Jamison <ldjamison@marywood.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
31 lines
785 B
Perl
31 lines
785 B
Perl
use Modern::Perl;
|
|
use Test::More tests => 1;
|
|
use MARC::Record;
|
|
|
|
use t::lib::Mocks;
|
|
use C4::Biblio;
|
|
|
|
t::lib::Mocks::mock_preference('marcflavour', 'MARC21');
|
|
|
|
my $record = C4::Biblio::TransformKohaToMarc({
|
|
"biblioitems.illus" => "Other physical details", # 300$b
|
|
"biblioitems.pages" => "Extent", # 300$a
|
|
"biblioitems.size" => "Dimensions", # 300$c
|
|
});
|
|
|
|
my @subfields = $record->field('300')->subfields();
|
|
is_deeply( \@subfields, [
|
|
[
|
|
'a',
|
|
'Extent'
|
|
],
|
|
[
|
|
'b',
|
|
'Other physical details'
|
|
],
|
|
[
|
|
'c',
|
|
'Dimensions'
|
|
]
|
|
],
|
|
'TransformKohaToMarc should returns sorted subfields (regression test for bug 12343)' );
|