@@ -, +, @@ --- C4/XSLT.pm | 2 +- t/db_dependent/Search.t | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -252,7 +252,7 @@ sub XSLTParse4Display { if (C4::Context->preference('item-level_itypes')) { @biblio_itemtypes = $biblio->items->get_column("itype"); } else { - push @biblio_itemtypes, $biblio->biblioitem->itemtype; + push @biblio_itemtypes, $biblio->itemtype; } my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') ); my %original = (); --- a/t/db_dependent/Search.t +++ a/t/db_dependent/Search.t @@ -180,6 +180,12 @@ $contextmodule->mock('preference', sub { return '1'; } elsif ($pref eq 'EasyAnalyticalRecords') { return '0'; + } elsif ($pref eq 'OpenURLResolverURL') { + return '0'; + } elsif ($pref eq 'OPACShowOpenURL') { + return '0'; + } elsif ($pref eq 'OpenURLText') { + return '0'; } else { warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating" unless $pref =~ m/(XSLT|item|branch|holding|image)/i; --