=== modified file 'sites/all/modules/biblio/biblio.pages.inc' --- sites/all/modules/biblio/biblio.pages.inc 2009-10-04 20:38:03 +0000 +++ sites/all/modules/biblio/biblio.pages.inc 2009-11-11 20:04:15 +0000 @@ -149,10 +149,12 @@ case 'type': //$sortby = "ORDER BY bt.name %s, b.biblio_year DESC "; $sortby = "ORDER BY bt.name %s, $sort_title"; + $selects[] = "bt.name, $sort_title"; break; case 'title': //$sortby = "ORDER BY SUBSTRING(n.title,1,3) %s, b.biblio_year DESC "; $sortby = "ORDER BY $sort_title %s"; + $selects[] = "$sort_title"; break; case 'author': $sortby = "ORDER BY bcd.lastname %s "; @@ -160,17 +162,19 @@ $where['bc-auth-category'] = "bc.auth_category=1"; $joins['bc'] = ' INNER JOIN {biblio_contributor} as bc on b.vid = bc.vid '; $joins['bcd'] = ' JOIN {biblio_contributor_data} as bcd on bc.cid = bcd.cid '; + $selects[] = "bcd.lastname"; break; case 'keyword': // added msh 070808 $sortby = "ORDER BY bkd.word %s "; $joins['bk'] = ' JOIN {biblio_keyword} as bk on b.vid = bk.vid '; $joins['bkd'] = ' JOIN {biblio_keyword_data} as bkd on bk.kid = bkd.kid '; $selects[] = "bkd.word as biblio_keyword"; - $count_selects[] = "bkd.word"; + //$count_selects[] = "bkd.word"; break; case 'year': default: $sortby = "ORDER BY b.biblio_year %s, b.biblio_date %s"; + $selects[] = "b.biblio_year, b.biblio_date"; } //end switch if (!isset($_SESSION['biblio_filter']) || !is_array($_SESSION['biblio_filter'])) { $_SESSION['biblio_filter'] = array();