Bugzilla – Attachment 38207 Details for
Bug 14006
about.pl checks the wrong zebra index mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14006: about.pl checks the wrong zebra index mode
Bug-14006-aboutpl-checks-the-wrong-zebra-index-mod.patch (text/plain), 1.86 KB, created by
Tomás Cohen Arazi (tcohen)
on 2015-04-20 18:48:25 UTC
(
hide
)
Description:
Bug 14006: about.pl checks the wrong zebra index mode
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2015-04-20 18:48:25 UTC
Size:
1.86 KB
patch
obsolete
>From 4dfaaaffdadc58be88736f42091b1bb01a508341 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 20 Apr 2015 15:39:45 -0300 >Subject: [PATCH] Bug 14006: about.pl checks the wrong zebra index mode > >This trivial patch makes the about page correctly test for >configuration mismatches. Specifically it fixes the situation >in which the koha-config.xml file points to zebra-biblios-dom.xml >but has 'zebra_bib_index_mode' set to grs1. >The test incorrectly queried for 'zebra_auth_index_mode' being set to grs1.' > >To test: >- Have a DOM setup. >- Change koha-conf.xml so zebra_bib_index_mode = grs1 >=> FAIL: No configuration missmatch is shown. >- Apply the patch >- Reload the about page >=> SUCCESS: A zebra configuration missmatch is shown. >--- > about.pl | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/about.pl b/about.pl >index 709a667..cf8ab4f 100755 >--- a/about.pl >+++ b/about.pl >@@ -101,13 +101,17 @@ if ( ! defined C4::Context->config('zebra_bib_index_mode') ) { > if C4::Context->config('zebra_bib_index_mode') eq 'grs1'; > } > >-if ( (C4::Context->config('zebra_bib_index_mode') eq 'dom') && ($context->{'server'}->{'biblioserver'}->{'config'} !~ /zebra-biblios-dom.cfg/) ) { >+if ( (C4::Context->config('zebra_bib_index_mode') eq 'dom') && >+ ($context->{'server'}->{'biblioserver'}->{'config'} !~ /zebra-biblios-dom.cfg/) ) { >+ > push @xml_config_warnings, { > error => 'zebra_bib_index_mode_mismatch_warn' > }; > } > >-if ( (C4::Context->config('zebra_auth_index_mode') eq 'grs1') && ($context->{'server'}->{'biblioserver'}->{'config'} =~ /zebra-biblios-dom.cfg/) ) { >+if ( (C4::Context->config('zebra_bib_index_mode') eq 'grs1') && >+ ($context->{'server'}->{'biblioserver'}->{'config'} =~ /zebra-biblios-dom.cfg/) ) { >+ > push @xml_config_warnings, { > error => 'zebra_bib_index_mode_mismatch_warn' > }; >-- >2.3.5
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 14006
:
38207
|
38463
|
38632