added download all hits feature

This commit is contained in:
SJ
2013-09-30 16:40:01 +02:00
parent f12ae31881
commit e537ff5461
12 changed files with 94 additions and 6 deletions

View File

@ -13,6 +13,8 @@ class ModelSearchSearch extends Model {
$s = "";
$all_ids_csv = "";
$session = Registry::get('session');
while(list($k,$v) = each($data)) {
if($v) { $s .= '&' . $k . '=' . $v; }
}
@ -56,6 +58,12 @@ class ModelSearchSearch extends Model {
$total_hits = count($all_ids);
if($total_hits > 0) {
$session->set('last_search', serialize($all_ids));
} else {
$session->set('last_search', '');
}
$data['page_len'] = get_page_length();
if($total_hits > 0) {