Commit 157a6d7e authored by ssp's avatar ssp
Browse files

support facet configuration through TypoScript

and add support for 'country' and 'source-type' facets.
parent 307029cd
......@@ -188,6 +188,9 @@ class Tx_Pazpar2_Controller_Pazpar2Controller extends Tx_Extbase_MVC_Controller_
if ($this->conf['sortOrder']) {
$jsVariables['displaySort'] = json_encode(array_values(array_filter($this->conf['sortOrder'])));
}
if ($this->conf['termLists']) {
$jsVariables['termLists'] = json_encode($this->conf['termLists']);
}
$jsCommand = "\n";
foreach ($jsVariables as $name => $value) {
......
......@@ -59,6 +59,26 @@ plugin.tx_pazpar2 {
3.direction = ascending
}
triggeredByNKWGOKMenu = 0
termLists {
xtargets {
maxFetch = 25
minDisplay = 1
}
medium {
maxFetch = 12
minDisplay = 1
}
language {
maxFetch = 5
minDisplay = 1
}
filterDate {
maxFetch = 10
minDisplay = 5
}
}
showSearchForm = 1
allowExtendedSearch = 1
fulltextSearch = 2
......
This diff is collapsed.
Subproject commit 1000200f6f110fe52bf22f3f2401d0c057b59fbf
Subproject commit fa5dc857a806b17bc65736e3bab4ff33cf6b851c
Supports Markdown
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