]> git.koha-community.org Git - koha.git/commit
Bug 18829: Elasticsearch - Put a better display for the view of ES indexed record
authorAxel Amghar <axel.amghar@biblibre.com>
Mon, 29 Apr 2019 09:27:49 +0000 (11:27 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Apr 2023 18:39:43 +0000 (15:39 -0300)
commit372aa0fb8a7710c5ec5ae92a67dbd1bf5611ff22
tree83beaf5809c0b9526366fe834723928805e6f6b5
parent942b07a0cecc9f63d956beafe55027b02d7b9aa3
Bug 18829: Elasticsearch - Put a better display for the view of ES indexed record

To test:
- apply the patch
- go to global sysPref
- make sure that SearchEngine have "ElasticSearch" as value
- Search whatever you want in Search the catalog and select a record
- Search the link (Ctrl f) : "Elasticsearch Record :" , click on the link
- make sure that the pop-up open and you should see the elasticsearch result in JSON (the pop-up look the same as MARC preview)
- note fields are alphabetized
- from the command line delete the es record:
    curl -XDELETE es:9200/koha_kohadev_biblios/data/5
- click the preview link, it syas record not found
- check the logs - you see the error on missing record

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
catalogue/showelastic.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt [new file with mode: 0644]