heihe view中恢复相关元数据的调用
This commit is contained in:
parent
9d32683c80
commit
72c8622ed7
|
@ -600,6 +600,9 @@ class DataController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
$sql.=" 1<>1) order by a.ts_created desc limit 10";
|
$sql.=" 1<>1) order by a.ts_created desc limit 10";
|
||||||
$this->view->literature=$this->db->fetchAll($sql);
|
$this->view->literature=$this->db->fetchAll($sql);
|
||||||
|
//相关元数据,根据同名关键词实现
|
||||||
|
$sql="select distinct(md.uuid),md.title from keyword kw left join normalmetadata md on kw.id=md.id where kw.keyword in (select k.keyword from keyword k left join metadata m on k.id=m.id where m.id=? and k.keytype='theme') and kw.id<>? limit 10";
|
||||||
|
$this->view->related=$this->db->fetchAll($sql,array($id,$id));
|
||||||
//数据附件
|
//数据附件
|
||||||
$sql = $this->db->quoteInto("select m.id,a.realname from mdattach m left join attachments a on m.id=a.id where m.uuid=?",$uuid);
|
$sql = $this->db->quoteInto("select m.id,a.realname from mdattach m left join attachments a on m.id=a.id where m.uuid=?",$uuid);
|
||||||
$this->view->attachments = $this->db->fetchAll($sql);
|
$this->view->attachments = $this->db->fetchAll($sql);
|
||||||
|
|
Loading…
Reference in New Issue