Bug 8918: (follow-up) allow t/db_dependent/Reserves.t to pass if marcflavour is UNIMARC

Set marcflavour to MARC21 to make tests pass.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Works for MARC21. But I would prefer a better fix for UNIMARC.
Will send a follow-up for that.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Julian Maurice 2014-02-06 15:42:08 +01:00 committed by Galen Charlton
parent 9b9fd85979
commit adc09764bc

View file

@ -51,6 +51,8 @@ $bib->append_fields(
MARC::Field->new('245', ' ', ' ', a => $title),
);
my ($bibnum, $bibitemnum);
# If marcflavour is UNIMARC, AddBiblio fails and all following tests fail too.
C4::Context->set_preference('marcflavour', 'MARC21');
($bibnum, $title, $bibitemnum) = AddBiblio($bib, '');
# Helper item for that biblio.