make solr limit configurable in OAI plugin
This commit is contained in:
parent
84b3d3c69e
commit
00d555e503
|
@ -977,6 +977,10 @@ class tx_dlf_oai extends tx_dlf_plugin {
|
||||||
|
|
||||||
$solr = tx_dlf_solr::getInstance($this->conf['solrcore']);
|
$solr = tx_dlf_solr::getInstance($this->conf['solrcore']);
|
||||||
|
|
||||||
|
if (intval($this->conf['solr_limit']) > 0) {
|
||||||
|
$solr->limit = intval($this->conf['solr_limit']);
|
||||||
|
}
|
||||||
|
|
||||||
// We only care about the UID in the results and want them sorted
|
// We only care about the UID in the results and want them sorted
|
||||||
$parameters = array ("fl" => "uid", "sort" => "uid asc");
|
$parameters = array ("fl" => "uid", "sort" => "uid asc");
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,18 @@
|
||||||
</config>
|
</config>
|
||||||
</TCEforms>
|
</TCEforms>
|
||||||
</solrcore>
|
</solrcore>
|
||||||
|
<solr_limit>
|
||||||
|
<TCEforms>
|
||||||
|
<displayCond>FIELD:pages:REQ:true</displayCond>
|
||||||
|
<exclude>1</exclude>
|
||||||
|
<label>LLL:EXT:dlf/plugins/oai/locallang.xml:tt_content.pi_flexform.solr_limit</label>
|
||||||
|
<config>
|
||||||
|
<type>input</type>
|
||||||
|
<eval>required,num,int</eval>
|
||||||
|
<default>50000</default>
|
||||||
|
</config>
|
||||||
|
</TCEforms>
|
||||||
|
</solr_limit>
|
||||||
<stylesheet>
|
<stylesheet>
|
||||||
<TCEforms>
|
<TCEforms>
|
||||||
<exclude>1</exclude>
|
<exclude>1</exclude>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<label index="tt_content.pi_flexform.expired">Expiration time for resumption token (seconds)</label>
|
<label index="tt_content.pi_flexform.expired">Expiration time for resumption token (seconds)</label>
|
||||||
<label index="tt_content.pi_flexform.show_userdefined">Show user-defined collections?</label>
|
<label index="tt_content.pi_flexform.show_userdefined">Show user-defined collections?</label>
|
||||||
<label index="tt_content.pi_flexform.solrcore">Solr Core</label>
|
<label index="tt_content.pi_flexform.solrcore">Solr Core</label>
|
||||||
|
<label index="tt_content.pi_flexform.solr_limit">Maximum Solr results</label>
|
||||||
<label index="tt_content.pi_flexform.stylesheet">Transformation stylesheet</label>
|
<label index="tt_content.pi_flexform.stylesheet">Transformation stylesheet</label>
|
||||||
<label index="tt_content.pi_flexform.unqualified_epicur">Use unqualified epicur?</label>
|
<label index="tt_content.pi_flexform.unqualified_epicur">Use unqualified epicur?</label>
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
<label index="tt_content.pi_flexform.expired">Gültigkeitsdauer des Resumption Tokens (Sekunden)</label>
|
<label index="tt_content.pi_flexform.expired">Gültigkeitsdauer des Resumption Tokens (Sekunden)</label>
|
||||||
<label index="tt_content.pi_flexform.show_userdefined">Benutzerdefinierte Kollektionen anzeigen?</label>
|
<label index="tt_content.pi_flexform.show_userdefined">Benutzerdefinierte Kollektionen anzeigen?</label>
|
||||||
<label index="tt_content.pi_flexform.solrcore">Solr Kern</label>
|
<label index="tt_content.pi_flexform.solrcore">Solr Kern</label>
|
||||||
|
<label index="tt_content.pi_flexform.solr_limit">Maximale Solr-Ergebnissen</label>
|
||||||
<label index="tt_content.pi_flexform.stylesheet">XSL-Stylesheet</label>
|
<label index="tt_content.pi_flexform.stylesheet">XSL-Stylesheet</label>
|
||||||
<label index="tt_content.pi_flexform.unqualified_epicur">Unqualifiziertes Epicur verwenden?</label>
|
<label index="tt_content.pi_flexform.unqualified_epicur">Unqualifiziertes Epicur verwenden?</label>
|
||||||
<label index="badArgument">Die Anfrage enthält ungültige Parameter, es fehlen benötigte Parameter oder Parameter haben ungültige Werte.</label>
|
<label index="badArgument">Die Anfrage enthält ungültige Parameter, es fehlen benötigte Parameter oder Parameter haben ungültige Werte.</label>
|
||||||
|
|
Loading…
Reference in New Issue