"; $q .= "<_fulltext>".$st.""; if ( $_SESSION['sortTerm'] ) { $q .= "<_sort>".$_SESSION['sortTerm'].""; } $q .= "*"; $q .= ""; $s_result = array(); $w = waramu_get(); $idents = $w->listIdentifiers("", $q); $ids = $idents['identifiers'][0]['id']; foreach($ids as $id) { $s_result[] = $id[0]; } $rn = count($s_result); $result[$st] = array('count'=>$rn, 'results'=>$s_result); /* $stssp = split(" ", $st); foreach ($stssp as $ssp) { $s_result = array(); $sts = split("\+", $ssp); $searcht = ""; if ( count($sts) > 1 ) { foreach ($sts as $s) { $searcht .= "<_fulltext>".$s.""; } } else { $searcht = "<_fulltext>".$ssp.""; } $sort = ""; if ( $_SESSION['sortTerm'] ) { $sort = "<_sort>".$_SESSION['sortTerm'].""; } // Always on? $agerange_filter ='-1'; $w = waramu_get(); $idents = $w->listIdentifiers("", "".$searcht."".$sort.$agerange_filter.""); $ids = $idents['identifiers'][0]['id']; foreach($ids as $id) { $s_result[] = $id[0]; } $rn = count($s_result); $result[$ssp] = array('count'=>$rn, 'results'=>$s_result); } */ $_SESSION['results'] = $result; $_SESSION['result_params'] = false; forward('pg/waramu/results'); ?>