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