EpiDoc / EFES

EFES (EpiDoc Front End Services) is a custom and readily customizable platform for publication and search/indexing of EpiDoc files, based on the Kiln platform
Apache License 2.0
31 stars 38 forks source link

Simplify renaming of facets #67

Closed IreneVagionakis closed 2 years ago

IreneVagionakis commented 2 years ago

Unless I missed something, currently in order to change the facets labels in the search page it is necessary to edit the facets name in several files (tei-to-solr.xml, schema.xml, config.xmap, facet_query.xml). Would it be possible to just change the labels of facets as they appear in the search page instead of having to edit all those files?

ajenhl commented 2 years ago

Modify solr/results-to-html.xsl, specifically the template matching on lst[@name='facet_fields']/lst/@name in the mode search-results. You can add specific renaming of facets.

Alternatively, since this is wrapped in i18n:text, you can create translations for them (key is the name of the facet prefixed with "facet-". If you're making any use of i18n in your site, this is the better option.