Skip to content
Snippets Groups Projects
Commit 7df0e666 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed typo that broke Summon facet translation; added config comments.

Thanks to Michael Wiesen for reporting the problem and fix.
parent d2a65ec4
No related merge requests found
...@@ -117,6 +117,13 @@ facet_limit = 30 ; how many values should we show for each facet? ...@@ -117,6 +117,13 @@ facet_limit = 30 ; how many values should we show for each facet?
; control. ; control.
special_facets = daterange special_facets = daterange
; Any facets named in the list below will have their values run through the
; translation code; unlisted facets will displayed as-is without translation. For
; translated facets, be sure that all of the necessary strings are included in the
; language files found in the web/lang directory. By default, no facets are
; translated -- uncomment or add lines below to turn on this feature.
;translated_facets[] = ContentType
; This section shows which search types will display in the basic search box at ; This section shows which search types will display in the basic search box at
; the top of Summon pages. The name of each setting below corresponds with an ; the top of Summon pages. The name of each setting below corresponds with an
; index defined in the Summon API. The value of each setting is the text to ; index defined in the Summon API. The value of each setting is the text to
......
...@@ -69,7 +69,7 @@ class Options extends \VuFind\Search\Base\Options ...@@ -69,7 +69,7 @@ class Options extends \VuFind\Search\Base\Options
// Load facet preferences: // Load facet preferences:
$facetSettings = $this->getServiceLocator()->get('VuFind\Config') $facetSettings = $this->getServiceLocator()->get('VuFind\Config')
->get($this->facetsIni); ->get($this->facetsIni);
if (isset($facetSettings->Advanced_Settings->translated_facets) if (isset($facetSettings->Advanced_Facet_Settings->translated_facets)
&& count($facetSettings->Advanced_Facet_Settings->translated_facets) > 0 && count($facetSettings->Advanced_Facet_Settings->translated_facets) > 0
) { ) {
$list = $facetSettings->Advanced_Facet_Settings->translated_facets; $list = $facetSettings->Advanced_Facet_Settings->translated_facets;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment