fix solr with new config
This commit is contained in:
@@ -18,6 +18,7 @@ class BookSearch
|
||||
'port' => Configuration::get('solr.port'),
|
||||
'login' => Configuration::get('solr.username'),
|
||||
'password' => Configuration::get('solr.password'),
|
||||
'path' => 'solr/bsr1',
|
||||
);
|
||||
|
||||
$this->client = new SolrClient($options);
|
||||
|
||||
@@ -319,9 +319,9 @@ class NetBiblio extends WebService
|
||||
$bs->addSortField('author', SolrQuery::ORDER_ASC);
|
||||
$bs->addSortField('title', SolrQuery::ORDER_ASC);
|
||||
$bs->addSortField('producer');
|
||||
$bs->addSortField('mediatype', SolrQuery::ORDER_ASC);
|
||||
$bs->addSortField('mediaType', SolrQuery::ORDER_ASC);
|
||||
} else {
|
||||
$bs->addSortField('availabilitydate');
|
||||
$bs->addSortField('availabilityDate');
|
||||
$bs->addSortField('author', SolrQuery::ORDER_ASC);
|
||||
$bs->addSortField('title', SolrQuery::ORDER_ASC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user