Bugzilla – Attachment 54449 Details for
Bug 11213
GetItemsInfo() called twice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug_11213: Include XSLT processing for searchResults() test
bug11213-Include-XSLT-processing-for-searchResults.patch (text/plain), 1.79 KB, created by
Srdjan Jankovic
on 2016-08-15 03:19:46 UTC
(
hide
)
Description:
bug_11213: Include XSLT processing for searchResults() test
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2016-08-15 03:19:46 UTC
Size:
1.79 KB
patch
obsolete
>From 50e271ff0ede6207f46e25890aa7fef48a136b28 Mon Sep 17 00:00:00 2001 >From: Srdjan <srdjan@catalyst.net.nz> >Date: Mon, 31 Mar 2014 16:12:17 +1300 >Subject: [PATCH] bug_11213: Include XSLT processing for searchResults() test > >* Added template paths to temp test dir, so XSLT templates can be picked > up >--- > C4/XSLT.pm | 1 + > t/db_dependent/Search.t | 11 +++++++++++ > 2 files changed, 12 insertions(+) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 3513123..142abe3 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -25,6 +25,7 @@ use strict; > use warnings; > > use C4::Context; >+use C4::Templates; > use C4::Branch; > use C4::Items; > use C4::Koha; >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index aeec564..0603f1d 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -126,6 +126,8 @@ $contextmodule->mock('preference', sub { > return 'en'; > } elsif ($pref eq 'AlternateHoldingsField') { > return '490av'; >+ } elsif ($pref =~ m/XSLTResultsDisplay/) { >+ return 'default'; > } elsif ($pref eq 'AuthoritySeparator') { > return '--'; > } elsif ($pref eq 'DisplayLibraryFacets') { >@@ -194,6 +196,15 @@ sub mock_marcfromkohafield { > sub run_marc21_search_tests { > my $indexing_mode = shift; > $datadir = tempdir(); >+ # Unix friendly, but so is the zebra_config.pl command below... >+ my $tpl_dir = File::Spec->rel2abs( dirname(__FILE__) ) . "/../../koha-tmpl"; >+ my $opac_dir = "$datadir/opac"; >+ mkdir $opac_dir; >+ symlink "$tpl_dir/opac-tmpl", "$opac_dir/templates"; >+ my $intranet_dir = "$datadir/intranet"; >+ mkdir $intranet_dir; >+ symlink "$tpl_dir/intranet-tmpl", "$intranet_dir/templates"; >+ > system(dirname(__FILE__) . "/zebra_config.pl $datadir marc21 $indexing_mode"); > > mock_marcfromkohafield('marc21'); >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11213
:
22800
|
26394
|
26430
|
26431
|
26499
|
26500
|
26695
|
26696
|
26713
|
26718
|
26719
|
26720
|
26721
|
29557
|
29558
|
29559
|
29560
|
29561
|
29562
|
29563
|
29564
|
38584
|
38585
|
38586
|
38587
|
38588
|
38589
|
38590
|
39023
|
39024
|
39025
|
39026
|
39027
|
39028
|
39029
|
42234
|
42235
|
42236
|
42237
|
42238
|
42239
|
42240
|
42425
|
49750
|
49751
|
49752
|
49753
|
49754
|
49755
|
50163
|
50164
|
50165
|
50166
|
50167
|
50168
|
54447
|
54448
|
54449
|
54450
|
54451
|
54452
|
57578
|
57579
|
57580
|
57581
|
57582
|
57583
|
62434
|
62435
|
62436
|
62437
|
62438
|
62439
|
68646
|
68818
|
68819
|
68820
|
68821
|
68822
|
68823