make solr limit configurable in OAI plugin

This commit is contained in:
Alexander Bigga 2018-06-14 14:37:41 +02:00
parent 84b3d3c69e
commit 00d555e503
3 changed files with 18 additions and 0 deletions

View File

@ -977,6 +977,10 @@ class tx_dlf_oai extends tx_dlf_plugin {
$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
$parameters = array ("fl" => "uid", "sort" => "uid asc");

View File

@ -105,6 +105,18 @@
</config>
</TCEforms>
</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>
<TCEforms>
<exclude>1</exclude>

View File

@ -21,6 +21,7 @@
<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.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.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.show_userdefined">Benutzerdefinierte Kollektionen anzeigen?</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.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>