Daniel-KM / Omeka-S-module-Solr

Module for Omeka S that implements a Solr adapter for the Search module
Other
2 stars 0 forks source link

Labels for facet results #2

Open pprw opened 5 years ago

pprw commented 5 years ago

There is an option in solr module configuration to add a label for the facet title. For example, if I want to have the facet "resource class" (binded to resource_class_s), I can add the label "Type de ressources".

However, it seems not possible to add a label for each resource class. It is the ontology name which is presented by default. Here is a example:

Screenshot-2019-3-13 Recherche · e-hp

How can I add a label to obtain "Section de livre" for example instead of "bibo:BookSection"

Daniel-KM commented 5 years ago

Probably the simplest is to work on the view in Search : https://github.com/Daniel-KM/Omeka-S-module-Search/blob/master/view/search/facets.phtml