Bug 8918: (follow-up) allow t/db_dependent/Reserves.t to pass if marcflavour is UNIMARC
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 6 Feb 2014 14:42:08 +0000 (15:42 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 17:35:17 +0000 (17:35 +0000)
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>
t/db_dependent/Reserves.t

index 31708c2..1ea6f82 100755 (executable)
@@ -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.