durations are now in minutes

master
Gilles Crettenand 11 years ago
parent 8c0d9bea5f
commit 5fe1bedd8b

@ -306,7 +306,7 @@ class BookSearch
$s = new BookSearch(); $s = new BookSearch();
$s->addFilterQuery(1, 'visible'); $s->addFilterQuery(1, 'visible');
$s->setFacetRangeField($field); $s->setFacetRangeField($field);
$s->setFacetRange(0, 250, 1); $s->setFacetRange(0, 250 * 60, 30);
// to avoid useless calculation, only set this 'normal' facet // to avoid useless calculation, only set this 'normal' facet
$s->addFacetField('visible'); $s->addFacetField('visible');
$results = $s->getResults(0, 0); $results = $s->getResults(0, 0);

@ -591,9 +591,9 @@ class NetBiblio extends WebService
* ° reader : filter by 'reader' * ° reader : filter by 'reader'
* ° motsMatieres : filter by 'motsMatieres' * ° motsMatieres : filter by 'motsMatieres'
* *
* ° duration : exact duration in hours, duration are saved as float in Solr * ° duration : exact duration in minutes
* ° durationMin : minimal duration in hours * ° durationMin : minimal duration in minutes
* ° durationMax : maximal duration in hours * ° durationMax : maximal duration in minutes
* *
* ° count : number of results we want * ° count : number of results we want
* ° page : page to start at (0 is the first) * ° page : page to start at (0 is the first)
@ -753,8 +753,9 @@ class NetBiblio extends WebService
} }
/** /**
* This method returns the list of all volunteer readers that read book * This method returns the list of durations in minutes but with 30 minutes gaps
* in the database. * and the count of books in each group.
*
* @return array * @return array
*/ */
public function ListOfDurations() public function ListOfDurations()

Loading…
Cancel
Save