diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 8603a1c2..f128ace4 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -85,7 +85,7 @@ class IndexController extends Zend_Controller_Action $this->view->list_news = $rows; - $sql="select * from datadoi where ts_published is not null order by ts_published desc limit 4"; + $sql="select d.*,m.ts_published as publish_year from datadoi d left join metadata m on d.uuid=m.uuid where d.ts_published is not null order by ts_published desc limit 4"; $sth = $this->db->query($sql); $this->view->dois = $sth->fetchAll(); diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index e6b6bf42..03df50ba 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -79,7 +79,7 @@

最新DOI数据