Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Tomas Cohen Arazi a0e44e1920 Bug 19542: Add Elasticsearch information in the 'About' page
This patch adds Elasticsearch related information to the 'About' page.

The information is gathered and displayed only when the 'SearchEngine' syspref
is set to 'Elasticsearch'. It displays configured nodes, and the status:
- Running
- Not running

In case it is running, it displays the defined indices and the document count on each.
If there are configuration problems, exceptions are catch and a convenient warning
message is displayed.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/Koha/SearchEngine/Elasticsearch.t
=> SUCCESS: Tests pass!
- Have ES configured in your koha-conf.xml file (by default in kohadevbox)
- Set the 'SearchEngine' syspref to 'Elasticsearch'
- Comment out pieces of the elasticsearch-specific entries (server, index_name,
  the whole elasticsearch block). Reload on each change.
=> SUCCESS: Warning messages are displayed and make sense in the context of your changes.
----> the rest of the tests require having ES running on the dev env. This can be easily
      achieved by creating the kohadevbox using:
        $ KOHA_ELASTICSEARCH=1 vagrant up
- Stop the 'elasticsearch' service:
  $ sudo service elasticsearch stop
- Reload about.pl
=> SUCCESS: The configured nodes are displayed, and the status is 'not running'
- Start the 'elasticsearch' service:
  $ sudo service elasticsearch start
- Reload about.pl
=> SUCCESS: The configured nodes are displayed, the status is 'running' and
            created indices info is displayed, along with the document count
            on each index.
- Sign off :-D

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-11 14:30:42 -03:00
..
acqui
admin Bug 19726: Move admin templates JavaScript to the footer: Preferences 2017-12-11 11:34:23 -03:00
authorities
basket
batch
catalogue Bug 19697: Move template JavaScript to the footer: Search results 2017-12-11 11:34:23 -03:00
cataloguing Bug 19646: (QA follow-up) Fix tab character 2017-12-07 09:37:09 -03:00
circ Bug 19700: Move template JavaScript to the footer: Some circulation pages 2017-12-11 11:34:23 -03:00
clubs
common
course_reserves Bug 19628: Move course reserves templates JS to the footer 2017-12-11 11:34:21 -03:00
errors
help Bug 19096: Online help changes 2017-12-07 14:44:15 -03:00
ill Bug 7317: Display all the libraries, not only one 2017-11-09 13:31:10 -03:00
installer
labels
members Bug 11210: Writeoff partial amounts 2017-12-11 14:30:42 -03:00
offline_circ
onboarding
patron_lists Bug 19647: Move patron lists templates JS to the footer 2017-12-11 11:34:20 -03:00
patroncards
plugins Bug 19710: Move plugins templates javascript to the footer 2017-12-11 11:34:23 -03:00
reports
reserve Bug 19769: 'Pickup library is different' message does not display library branch name when placing hold 2017-12-11 14:30:42 -03:00
reviews
rotating_collections Bug 19656: Move rotating collections templates JS to the footer 2017-12-11 11:34:22 -03:00
serials
services
suggestion Bug 19659: Move JS to the footer: Suggestions and tags 2017-12-11 11:34:22 -03:00
tags Bug 19659: Move JS to the footer: Suggestions and tags 2017-12-11 11:34:22 -03:00
test
tools Bug 19680: Move JS to the footer: Patron and circulation tools 2017-12-11 11:34:23 -03:00
virtualshelves Bug 19657: Move lists templates JS to the footer 2017-12-11 11:34:22 -03:00
about.tt Bug 19542: Add Elasticsearch information in the 'About' page 2017-12-11 14:30:42 -03:00
auth.tt
intranet-main.tt