让搜索也支持存档信息

This commit is contained in:
wlx 2012-06-16 05:13:22 +00:00
parent 35c06c9222
commit 7ea687861c
1 changed files with 2 additions and 1 deletions

View File

@ -426,9 +426,10 @@ class Admin_DataController extends Zend_Controller_Action
if(!empty($keyword)) if(!empty($keyword))
{ {
$sql = "select m.*,md.viewed,g.id as gid from metadata m $sql = "select m.*,md.viewed,g.id as gid, ds.id as datasetid from metadata m
left join mdstat md on m.uuid=md.uuid left join mdstat md on m.uuid=md.uuid
left join geonetworkmetadata g on g.uuid=m.uuid left join geonetworkmetadata g on g.uuid=m.uuid
left join dataset ds on m.uuid=ds.uuid
where m.title like '%$keyword%' where m.title like '%$keyword%'
order by m.id desc order by m.id desc
"; ";