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->addFilterQuery(1, 'visible');
$s->setFacetRangeField($field);
$s->setFacetRange(0, 250, 1);
$s->setFacetRange(0, 250 * 60, 30);
// to avoid useless calculation, only set this 'normal' facet
$s->addFacetField('visible');
$results = $s->getResults(0, 0);

@ -591,9 +591,9 @@ class NetBiblio extends WebService
* ° reader : filter by 'reader'
* ° motsMatieres : filter by 'motsMatieres'
*
* ° duration : exact duration in hours, duration are saved as float in Solr
* ° durationMin : minimal duration in hours
* ° durationMax : maximal duration in hours
* ° duration : exact duration in minutes
* ° durationMin : minimal duration in minutes
* ° durationMax : maximal duration in minutes
*
* ° count : number of results we want
* ° 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
* in the database.
* This method returns the list of durations in minutes but with 30 minutes gaps
* and the count of books in each group.
*
* @return array
*/
public function ListOfDurations()

Loading…
Cancel
Save