Lines 256-262
sub test_search{
Link Here
|
256 |
$agent->field('q', $search_key); |
256 |
$agent->field('q', $search_key); |
257 |
$agent->click(); |
257 |
$agent->click(); |
258 |
my $intra_text = $agent->text() ; |
258 |
my $intra_text = $agent->text() ; |
259 |
like( $intra_text, qr|Publisher: $publisher|, ); |
259 |
my $diag = sub { |
|
|
260 |
my $pref = 'OPACXSLTResultsDisplay'; |
261 |
my $xslt_file = C4::Context->preference('marcflavour') . 'slim2OPACResults.xsl'; |
262 |
my $xslt_filepath = C4::XSLT::_get_best_default_xslt_filename( C4::Context->config('opachtdocs'), C4::Context->preference("opacthemes"), $xslt_file ); |
263 |
return sprintf( "===DIAG===\n%s is %s\n%s %s\n==========", $pref, C4::Context->preference($pref), $xslt_filepath, ( -f $xslt_filepath ? 'exists' : 'does not exist' )); |
264 |
}; |
265 |
|
266 |
like( $intra_text, qr|Publisher: $publisher|, ) or diag($diag->()); |
260 |
|
267 |
|
261 |
$agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); |
268 |
$agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); |
262 |
$agent->form_number(5); |
269 |
$agent->form_number(5); |
263 |
- |
|
|