Adapt to new Solr config
This commit is contained in:
@@ -316,14 +316,14 @@ class NetBiblio extends WebService
|
|||||||
$bs = new BookSearch();
|
$bs = new BookSearch();
|
||||||
|
|
||||||
if (isset($queryArray['queryType'])) {
|
if (isset($queryArray['queryType'])) {
|
||||||
$bs->addSortField('author_s', SolrQuery::ORDER_ASC);
|
$bs->addSortField('author', SolrQuery::ORDER_ASC);
|
||||||
$bs->addSortField('title_s', SolrQuery::ORDER_ASC);
|
$bs->addSortField('title', SolrQuery::ORDER_ASC);
|
||||||
$bs->addSortField('producer');
|
$bs->addSortField('producer');
|
||||||
$bs->addSortField('mediatype', SolrQuery::ORDER_ASC);
|
$bs->addSortField('mediatype', SolrQuery::ORDER_ASC);
|
||||||
} else {
|
} else {
|
||||||
$bs->addSortField('availabilitydate');
|
$bs->addSortField('availabilitydate');
|
||||||
$bs->addSortField('author_s', SolrQuery::ORDER_ASC);
|
$bs->addSortField('author', SolrQuery::ORDER_ASC);
|
||||||
$bs->addSortField('title_s', SolrQuery::ORDER_ASC);
|
$bs->addSortField('title', SolrQuery::ORDER_ASC);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($queryArray['queryText']) && strlen($queryArray['queryText']) > 0) {
|
if (isset($queryArray['queryText']) && strlen($queryArray['queryText']) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user