Bugzilla – Attachment 65388 Details for
Bug 14385
Extend OpacHiddenItems to allow specifying exempt borrower categories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14385: Properly trigger all changes in C4/Search.pm
Bug-14385-Properly-trigger-all-changes-in-C4Search.patch (text/plain), 2.61 KB, created by
Mark Tompsett
on 2017-08-01 01:44:53 UTC
(
hide
)
Description:
Bug 14385: Properly trigger all changes in C4/Search.pm
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-08-01 01:44:53 UTC
Size:
2.61 KB
patch
obsolete
>From 5946fc0657fec557cf118428c9c01f93a58ecdfc Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 31 Jul 2017 21:30:25 -0400 >Subject: [PATCH] Bug 14385: Properly trigger all changes in C4/Search.pm > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/Search.t | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 27eeb85..d9c6e5d 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -22,6 +22,7 @@ use utf8; > use YAML; > > use C4::Debug; >+use C4::XSLT; > require C4::Context; > > # work around spurious wide character warnings >@@ -99,6 +100,11 @@ our $QueryFuzzy = 0; > our $UseQueryParser = 0; > our $SearchEngine = 'Zebra'; > our $marcflavour = 'MARC21'; >+our $htdocs = File::Spec->rel2abs(dirname($0)); >+my @htdocs = split /\//, $htdocs; >+$htdocs[-2] = 'koha-tmpl'; >+$htdocs[-1] = 'opac-tmpl'; >+$htdocs = join '/', @htdocs; > our $contextmodule = new Test::MockModule('C4::Context'); > $contextmodule->mock('preference', sub { > my ($self, $pref) = @_; >@@ -140,6 +146,38 @@ $contextmodule->mock('preference', sub { > return ''; > } elsif ($pref eq 'template') { > return ''; >+ } elsif ($pref eq 'OPACXSLTResultsDisplay') { >+ return C4::XSLT::_get_best_default_xslt_filename($htdocs, 'bootstrap','en',$marcflavour . 'slim2OPACResults.xsl'); >+ } elsif ($pref eq 'BiblioDefaultView') { >+ return 'normal'; >+ } elsif ($pref eq 'IdRef') { >+ return '0'; >+ } elsif ($pref eq 'IntranetBiblioDefaultView') { >+ return 'normal'; >+ } elsif ($pref eq 'OPACBaseURL') { >+ return 'http://library.mydnsname.org'; >+ } elsif ($pref eq 'OPACResultsLibrary') { >+ return 'homebranch'; >+ } elsif ($pref eq 'OpacSuppression') { >+ return '0'; >+ } elsif ($pref eq 'OPACURLOpenInNewWindow') { >+ return '0'; >+ } elsif ($pref eq 'TraceCompleteSubfields') { >+ return '0'; >+ } elsif ($pref eq 'TraceSubjectSubdivisions') { >+ return '0'; >+ } elsif ($pref eq 'TrackClicks') { >+ return '0'; >+ } elsif ($pref eq 'URLLinkText') { >+ return q{}; >+ } elsif ($pref eq 'UseAuthoritiesForTracings') { >+ return '1'; >+ } elsif ($pref eq 'UseControlNumber') { >+ return '0'; >+ } elsif ($pref eq 'UseICU') { >+ return '0'; >+ } elsif ($pref eq 'viewISBD') { >+ return '1'; > } else { > warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating" > unless $pref =~ m/(XSLT|item|branch|holding|image)/i; >-- >2.1.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 14385
:
40158
|
53483
|
53494
|
53505
|
53506
|
53507
|
55593
|
64688
|
64689
|
64690
|
64691
|
64692
|
64693
|
65322
|
65323
|
65324
|
65325
|
65376
|
65377
|
65378
|
65379
|
65380
|
65381
|
65382
|
65383
|
65384
|
65385
|
65386
|
65387
|
65388
|
65389
|
65408
|
65409
|
65410
|
65411
|
66103
|
66104
|
66105
|
66106
|
66107
|
66108
|
66109
|
66110
|
66111
|
66112
|
66113
|
66114
|
66115
|
66116
|
66117
|
66118
|
66125
|
66126
|
66127
|
66128
|
66129
|
66130
|
66131
|
66132
|
66192
|
66193
|
66194
|
66195
|
66196
|
66197
|
66198
|
66199
|
66200
|
66201
|
66202
|
66203
|
66204
|
66205
|
66206
|
66207
|
66208
|
66209
|
66210
|
66302
|
66303
|
66347
|
66361
|
66372
|
66401
|
66403
|
66520
|
66521
|
66522
|
66523
|
66524
|
66525
|
66526
|
66527
|
66528
|
66529
|
66530
|
66531
|
66532
|
66533
|
66534
|
66535
|
66536
|
66537
|
66538
|
66539
|
66540
|
66541
|
66542
|
66543
|
66544
|
66545
|
70256
|
70257
|
70258
|
70259
|
72445
|
72446
|
72447
|
72448
|
72449
|
72450
|
72451
|
72452
|
72453
|
72454
|
74001
|
78654
|
78655
|
78656
|
78657
|
78825
|
78826
|
78827
|
78828
|
80411
|
80463
|
80464
|
80465
|
80466
|
80467
|
89963
|
90038