On commit
cadf5aea814636ccccd85fcc38aa30f751d779c0
Bug 11592: MARCView and ISBD followup
The prototype of C4::Biblio::GetISBDView has been changed to take a
hashref in parameter.
But the tests have not been updated
Test plan:
prove t/Biblio/Isbd.t
should return green
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
https://bugs.koha-community.org/show_bug.cgi?id=17637
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
);
my ($bibnum, $title, $bibitemnum) = AddBiblio($record, '');
-my $isbd = GetISBDView($bibnum);
+my $isbd = GetISBDView({ record => $record });
is($isbd, '<h2>Title : Mountains by Keith Lye</h2>', 'ISBD is correct');
-my $opacisbd = GetISBDView($bibnum, 'opac');
+my $opacisbd = GetISBDView({ record => $record, template => 'opac' });
is($opacisbd, '<h2>Title : Mountains (Keith Lye)</h2>', 'OPAC ISBD is correct');