Lines 126-131
$contextmodule->mock('preference', sub {
Link Here
|
126 |
return 'en'; |
126 |
return 'en'; |
127 |
} elsif ($pref eq 'AlternateHoldingsField') { |
127 |
} elsif ($pref eq 'AlternateHoldingsField') { |
128 |
return '490av'; |
128 |
return '490av'; |
|
|
129 |
} elsif ($pref =~ m/XSLTResultsDisplay/) { |
130 |
return 'default'; |
129 |
} elsif ($pref eq 'AuthoritySeparator') { |
131 |
} elsif ($pref eq 'AuthoritySeparator') { |
130 |
return '--'; |
132 |
return '--'; |
131 |
} elsif ($pref eq 'DisplayLibraryFacets') { |
133 |
} elsif ($pref eq 'DisplayLibraryFacets') { |
Lines 194-199
sub mock_marcfromkohafield {
Link Here
|
194 |
sub run_marc21_search_tests { |
196 |
sub run_marc21_search_tests { |
195 |
my $indexing_mode = shift; |
197 |
my $indexing_mode = shift; |
196 |
$datadir = tempdir(); |
198 |
$datadir = tempdir(); |
|
|
199 |
# Unix friendly, but so is the zebra_config.pl command below... |
200 |
my $tpl_dir = File::Spec->rel2abs( dirname(__FILE__) ) . "/../../koha-tmpl"; |
201 |
my $opac_dir = "$datadir/opac"; |
202 |
mkdir $opac_dir; |
203 |
symlink "$tpl_dir/opac-tmpl", "$opac_dir/templates"; |
204 |
my $intranet_dir = "$datadir/intranet"; |
205 |
mkdir $intranet_dir; |
206 |
symlink "$tpl_dir/intranet-tmpl", "$intranet_dir/templates"; |
207 |
|
197 |
system(dirname(__FILE__) . "/zebra_config.pl $datadir marc21 $indexing_mode"); |
208 |
system(dirname(__FILE__) . "/zebra_config.pl $datadir marc21 $indexing_mode"); |
198 |
|
209 |
|
199 |
mock_marcfromkohafield('marc21'); |
210 |
mock_marcfromkohafield('marc21'); |
200 |
- |
|
|