From 666931573591b5bd606a7f7bf63f04e1cf37fb8b Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Wed, 13 May 2015 15:57:05 +0200 Subject: [PATCH] fix solr with new config --- lib/BookSearch.php | 1 + mobile.netbiblio.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/BookSearch.php b/lib/BookSearch.php index 46e99c7..c580bfe 100644 --- a/lib/BookSearch.php +++ b/lib/BookSearch.php @@ -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); diff --git a/mobile.netbiblio.php b/mobile.netbiblio.php index 1d93ee8..15495da 100644 --- a/mobile.netbiblio.php +++ b/mobile.netbiblio.php @@ -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); }