Islandora/islandora_solr_search — pull request #149 by whikloj (2013-09-03 20:36:00+00:00)
Title: Results paging with grid display

For some reason using the grid display we were getting the last 4 results from every page displaying as the first 4 on the next page of search results.

I seems to be the module_invoke_all('islandora_solr_query',$this);

The $this->solrStart is set before it, but this call was calling

islandora_solr_config_islandora_solr_query() and it was modifying the $this->solrLimit amount.

ie.
$this->solrLimit = 20, then page 2 makes $this->solrStart = 20.

But then $this->solrLimit changed to 24 (due to a grid layout).

So page 1 displays 0 - 24, but page 2 displays 20 - 44, and page 3 displays 40 - 64, etc.

Feel free to dump this merge and fix it yourselves. But this solved it for me.

cheers,
jared