修正后台列表搜索中的多语言数据问题

This commit is contained in:
wlx 2015-09-14 16:35:22 +08:00
parent dcf46ff865
commit 449453c28f
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ class Admin_DataController extends Zend_Controller_Action
$sql = "select m.*,md.viewed,g.id as gid,gen.id as genid,st.status as mdstatus, ds.id as datasetid from metadata m $sql = "select m.*,md.viewed,g.id as gid,gen.id as genid,st.status as mdstatus, 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 left join dataset ds on m.uuid=ds.uuid and ds.lang in ('','cn')
LEFT JOIN mdstatus st ON md.uuid=st.uuid LEFT JOIN mdstatus st ON md.uuid=st.uuid
left join en.geonetworkmetadata gen on gen.uuid=md.uuid left join en.geonetworkmetadata gen on gen.uuid=md.uuid
where m.title like '%$keyword%' where m.title like '%$keyword%'