首页添加doi链接;数据页调整序列的个数

This commit is contained in:
wlx 2013-05-17 08:34:47 +00:00
parent 44b178502d
commit 4611e4c9a2
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class DataController extends Zend_Controller_Action
function indexAction()
{
//序列
$state=$this->db->query('select s.id,name,count(*) from series s,dataseries d where d.sid=s.id group by s.id,s.name');
$state=$this->db->query('select s.id,s.name,count(*) as count from series s,dataseries d where d.sid=s.id and length(s.name)>2 group by s.id,s.name order by count desc limit 15');
$this->view->serie=$state->fetchAll();
//分类
$state=$this->db->query('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');

View File

@ -71,7 +71,7 @@
</ul>
</div>
<div class="span8">
<h4>最新DOI数据</h4>
<h4><a href="/data/doi">最新DOI数据</a></h4>
<ul class="unstyled">
<?php foreach($this->dois as $doi) :
echo '<li class="well well-small"><a href="/data/'.$doi->uuid.'">'.substr($doi->authors,1,-1).'. '.$doi->title.'. '.$doi->publisher.', '.date('Y',strtotime($doi->ts_published)).'. doi:'.$doi->doi.'</a></li>';