From 0424c2418d3efb22886cabb816287b0bbe190fd6 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 6 Feb 2014 15:42:08 +0100 Subject: [PATCH] Bug 8918: t/db_dependent/Reserves.t fails if marcflavour is UNIMARC Content-Type: text/plain; charset=utf-8 Set marcflavour to MARC21 to make tests pass. Signed-off-by: Marcel de Rooy Works for MARC21. But I would prefer a better fix for UNIMARC. Will send a follow-up for that. --- t/db_dependent/Reserves.t | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index 31708c2..1ea6f82 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -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. -- 1.7.7.6