View | Details | Raw Unified | Return to bug 12782
Collapse All | Expand All

(-)a/t/db_dependent/XISBN.t (-2 / +6 lines)
Lines 10-15 use MARC::Record; Link Here
10
use C4::Biblio;
10
use C4::Biblio;
11
use C4::XISBN;
11
use C4::XISBN;
12
use C4::Context;
12
use C4::Context;
13
use C4::Search;
13
use Test::MockModule;
14
use Test::MockModule;
14
15
15
BEGIN {
16
BEGIN {
Lines 113-118 sub Mock_SimpleSearch { Link Here
113
    }
114
    }
114
    $record->append_fields($biblionumber_field);
115
    $record->append_fields($biblionumber_field);
115
116
116
    push @results, $record->as_usmarc;
117
    my $indexing_mode = C4::Context->config('zebra_bib_index_mode') // 'dom';
118
    push @results, ( $indexing_mode eq 'dom' )
119
                    ? $record->as_xml()
120
                    : $record->as_usmarc() ;
121
117
    return ( undef, \@results, 1 );
122
    return ( undef, \@results, 1 );
118
}
123
}
119
- 

Return to bug 12782