https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36437

--- Comment #6 from MichaƂ <schodkowy.omegi...@icloud.com> ---
Created attachment 173716
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=173716&action=edit
Bug 36437: add pub year facet to Elasticsearch

Notes:
- I labeled it as "Year of publication" instead of "Date of publication" since
it seems to be more occurate (since the field is a year and that's gonna be
better to translate to other langauge)
- the third word is not capitalized, since I'm following the naming convention
of existing facet labels
- facet_order was set to 3, since that should be a pretty common field and
useful to display high up to get a quick idea for the range of years the
results are from

Test plan:
0. Ensure Elasticsearch index is rebuilt (should be on fresh ktd startup?)
1. On intranet go to /cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl
2. Go to second tab there
3. Ensure date-of-publication is in the table, has label in parentheses, has
facetable set to Yes
4. Scrolldown to the order of facets table
5. Ensure date-of-publication is there, has label, is third on the list
6. Search for something in intranet, ensure the facet is visible, its value is
year, it's clickable and working
7. Search for something in OPAC, as above ensure it works (important to check
both OPAC and intranet since facets use different templates to display in
both...)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to