Lines 113-118
$contextmodule->mock('preference', sub {
Link Here
|
113 |
return ''; |
113 |
return ''; |
114 |
} elsif ($pref eq 'AlternateHoldingsField') { |
114 |
} elsif ($pref eq 'AlternateHoldingsField') { |
115 |
return '490av'; |
115 |
return '490av'; |
|
|
116 |
} elsif ($pref =~ m/XSLTResultsDisplay/) { |
117 |
return 'default'; |
116 |
} elsif ($pref eq 'authoritysep') { |
118 |
} elsif ($pref eq 'authoritysep') { |
117 |
return '--'; |
119 |
return '--'; |
118 |
} else { |
120 |
} else { |
Lines 177-182
sub mock_marcfromkohafield {
Link Here
|
177 |
sub run_marc21_search_tests { |
179 |
sub run_marc21_search_tests { |
178 |
my $indexing_mode = shift; |
180 |
my $indexing_mode = shift; |
179 |
$datadir = tempdir(); |
181 |
$datadir = tempdir(); |
|
|
182 |
# Unix friendly, but so is the zebra_config.pl command below... |
183 |
my $tpl_dir = File::Spec->rel2abs( dirname(__FILE__) ) . "/../../koha-tmpl"; |
184 |
my $opac_dir = "$datadir/opac"; |
185 |
mkdir $opac_dir; |
186 |
symlink "$tpl_dir/opac-tmpl", "$opac_dir/templates"; |
187 |
my $intranet_dir = "$datadir/intranet"; |
188 |
mkdir $intranet_dir; |
189 |
symlink "$tpl_dir/intranet-tmpl", "$intranet_dir/templates"; |
190 |
|
180 |
system(dirname(__FILE__) . "/zebra_config.pl $datadir marc21 $indexing_mode"); |
191 |
system(dirname(__FILE__) . "/zebra_config.pl $datadir marc21 $indexing_mode"); |
181 |
|
192 |
|
182 |
mock_marcfromkohafield('marc21'); |
193 |
mock_marcfromkohafield('marc21'); |
183 |
- |
|
|