Bugzilla – Attachment 35743 Details for
Bug 13404
More System information about GRS1 vs DOM settings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13404 - More System information about GRS1 vs DOM settings
Bug-13404---More-System-information-about-GRS1-vs-.patch (text/plain), 7.44 KB, created by
Marcel de Rooy
on 2015-02-09 09:00:00 UTC
(
hide
)
Description:
Bug 13404 - More System information about GRS1 vs DOM settings
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-02-09 09:00:00 UTC
Size:
7.44 KB
patch
obsolete
>From e6763fc81ae6e20a684aeb797320adbc1fd1b7be Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Sun, 7 Dec 2014 18:39:51 +0100 >Subject: [PATCH] Bug 13404 - More System information about GRS1 vs DOM > settings >Content-Type: text/plain; charset=utf-8 > >System information indicates missing <zebra_bib_index_mode> and <zebra_auth_index_mode> entries in koha-conf.xml. > >This patch > >- adds warnings about a possible mismatch between these settings and the actual setup >- adds info about the actual setup/what values to use for <zebra_bib_index_mode> and <zebra_auth_index_mode> if they are not set. > >The assumption is that a path including 'zebra-*-dom.cfg' in the respective section indicates a DOM setup. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > about.pl | 46 ++++++++++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 42 ++++++++++++++++++++ > 2 files changed, 88 insertions(+), 0 deletions(-) > >diff --git a/about.pl b/about.pl >index 9fd1545..3ac9c11 100755 >--- a/about.pl >+++ b/about.pl >@@ -80,24 +80,70 @@ my $warnIsRootUser = (! $loggedinuser); > my $warnNoActiveCurrency = (! defined C4::Budgets->GetCurrency()); > my @xml_config_warnings; > >+my $context = new C4::Context; >+ > if ( ! defined C4::Context->config('zebra_bib_index_mode') ) { > push @xml_config_warnings, { > error => 'zebra_bib_index_mode_warn' > }; >+ if ($context->{'server'}->{'biblioserver'}->{'config'} !=~ /zebra-biblios-dom.cfg/) { >+ push @xml_config_warnings, { >+ error => 'zebra_bib_mode_seems_grs1' >+ }; >+ } >+ else { >+ push @xml_config_warnings, { >+ error => 'zebra_bib_mode_seems_dom' >+ }; >+ } > } else { > push @xml_config_warnings, { error => 'zebra_bib_grs_warn' } > 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/) ) { >+ 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/) ) { >+ push @xml_config_warnings, { >+ error => 'zebra_bib_index_mode_mismatch_warn' >+ }; >+} >+ > if ( ! defined C4::Context->config('zebra_auth_index_mode') ) { > push @xml_config_warnings, { > error => 'zebra_auth_index_mode_warn' > }; >+ if ($context->{'server'}->{'authorityserver'}->{'config'} !=~ /zebra-authorities-dom.cfg/) { >+ push @xml_config_warnings, { >+ error => 'zebra_auth_mode_seems_grs1' >+ }; >+ } >+ else { >+ push @xml_config_warnings, { >+ error => 'zebra_auth_mode_seems_dom' >+ }; >+ } > } else { > push @xml_config_warnings, { error => 'zebra_auth_grs_warn' } > if C4::Context->config('zebra_auth_index_mode') eq 'grs1'; > } > >+if ( (C4::Context->config('zebra_auth_index_mode') eq 'dom') && ($context->{'server'}->{'authorityserver'}->{'config'} !=~ /zebra-authorities-dom.cfg/) ) { >+ push @xml_config_warnings, { >+ error => 'zebra_auth_index_mode_mismatch_warn' >+ }; >+} >+ >+if ( (C4::Context->config('zebra_auth_index_mode') eq 'grs1') && ($context->{'server'}->{'authorityserver'}->{'config'} =~ /zebra-authorities-dom.cfg/) ) { >+ push @xml_config_warnings, { >+ error => 'zebra_auth_index_mode_mismatch_warn' >+ }; >+} >+ > # Test QueryParser configuration sanity > if ( C4::Context->preference( 'UseQueryParser' ) ) { > # Get the QueryParser configuration file name >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 340d808..e94316e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -152,6 +152,20 @@ > It will default to <strong>dom</strong>. > </td> > </tr> >+ [% ELSIF config_entry.error == 'zebra_bib_mode_seems_grs1' %] >+ <tr> >+ <th scope="row"><b>Info</b></th> >+ <td>Your configuration file indicates that <strong>grs1</strong> is the correct setting >+ for <zebra_bib_index_mode>. >+ </td> >+ </tr> >+ [% ELSIF config_entry.error == 'zebra_bib_mode_seems_dom' %] >+ <tr> >+ <th scope="row"><b>Info</b></th> >+ <td>Your configuration file indicates that <strong>dom</strong> is the correct setting >+ for <zebra_bib_index_mode>. >+ </td> >+ </tr> > [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %] > <tr> > <th scope="row"><b>Warning</b></th> >@@ -160,6 +174,20 @@ > It will default to <strong>dom</strong>. > </td> > </tr> >+ [% ELSIF config_entry.error == 'zebra_auth_mode_seems_grs1' %] >+ <tr> >+ <th scope="row"><b>Info</b></th> >+ <td>Your configuration file indicates that <strong>grs1</strong> is the correct setting >+ for <zebra_auth_index_mode>. >+ </td> >+ </tr> >+ [% ELSIF config_entry.error == 'zebra_auth_mode_seems_dom' %] >+ <tr> >+ <th scope="row"><b>Info</b></th> >+ <td>Your configuration file indicates that <strong>dom</strong> is the correct setting >+ for <zebra_auth_index_mode>. >+ </td> >+ </tr> > [% ELSIF config_entry.error == 'zebra_bib_grs_warn' %] > <tr> > <th scope="row"><b>Warning</b></th> >@@ -169,6 +197,13 @@ > <strong>dom</strong> (full reindex required). > </td> > </tr> >+ [% ELSIF config_entry.error == 'zebra_bib_index_mode_mismatch_warn' %] >+ <tr> >+ <th scope="row"><b>Warning</b></th> >+ <td>The <zebra_bib_index_mode> entry is set to <strong>dom</strong>, but your system appears to be set up for <strong>grs1</strong> indexing. >+ It is safe to ignore this warning if biblio search is working. >+ </td> >+ </tr> > [% ELSIF config_entry.error == 'zebra_auth_grs_warn' %] > <tr> > <th scope="row"><b>Warning</b></th> >@@ -178,6 +213,13 @@ > <strong>dom</strong> (full reindex required). > </td> > </tr> >+ [% ELSIF config_entry.error == 'zebra_auth_index_mode_mismatch_warn' %] >+ <tr> >+ <th scope="row"><b>Warning</b></th> >+ <td>The <zebra_auth_index_mode> entry is set to <strong>dom</strong>, but your system appears to be set up for <strong>grs1</strong> indexing. >+ It is safe to ignore this warning if authority search is working. >+ </td> >+ </tr> > [% ELSIF config_entry.error == 'queryparser_entry_missing' %] > <tr> > <th scope="row"><b>Warning</b></th> >-- >1.7.7.6
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 13404
:
34165
|
34166
|
34745
|
34912
| 35743 |
35744
|
35745