diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index c9bcff91..c611ee00 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -426,9 +426,10 @@ class Admin_DataController extends Zend_Controller_Action 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 geonetworkmetadata g on g.uuid=m.uuid + left join dataset ds on m.uuid=ds.uuid where m.title like '%$keyword%' order by m.id desc ";