diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index aaa25bc8..553d0b8c 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -614,7 +614,7 @@ class DataController extends Zend_Controller_Action $sql=$this->db->quoteInto($sql,$uuid); $this->view->dataref=$this->db->fetchAll($sql); //数据的专题文献 - $sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=4 order by m.place"; + $sql="select r.* from reference r left join sourceref sr on r.id=sr.refid left join datasource ds on ds.sourceid=sr.sourceid where ds.uuid=? order by sr.place"; $sql=$this->db->quoteInto($sql,$uuid); $this->view->themeref=$this->db->fetchAll($sql); //用户发表文献