merge sanjiangyuan-sub r4767 - r4777 into sjy-meteorology

This commit is contained in:
wlx 2014-06-16 03:43:39 +00:00
commit e89bf5cbfd
3 changed files with 3 additions and 46 deletions

View File

@ -66,7 +66,7 @@ class IndexController extends Zend_Controller_Action
//$time = date("Y-m-d H:i:s",time()); //$time = date("Y-m-d H:i:s",time());
$sql = "SELECT * FROM archive WHERE is_pub=true and sub='$this->subnews' AND ts_published<now() $sql = "SELECT * FROM archive WHERE is_pub=true and sub='$this->subnews' AND ts_published<now()
and id in (select ar_catalog.aid from ar_catalog left join ar_category on ar_catalog.cid=ar_category.id where ar_category.ptype='news') and id in (select ar_catalog.aid from ar_catalog left join ar_category on ar_catalog.cid=ar_category.id where ar_category.ptype='news')
order by ts_published desc LIMIT 12 "; order by ts_published desc LIMIT 5 ";
$sth = $this->db->query($sql); $sth = $this->db->query($sql);
$rows = $sth->fetchAll(PDO::FETCH_BOTH); $rows = $sth->fetchAll(PDO::FETCH_BOTH);

View File

@ -55,7 +55,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<?php endif; ?> <?php endif; ?>
<?php if ($md->citation) : ?> <?php if ($md->citation) : ?>
<hr /> <hr />
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4> <h4><i class="icon-quote-left muted"></i>本数据引用方式</h4>
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span> <p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?> <?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>) (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
@ -134,11 +134,6 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>'; echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach; endforeach;
?> ?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?> <?php endif; ?>
<?php if($this->data_archives){ ?> <?php if($this->data_archives){ ?>
<h4>数据相关新闻</h4> <h4>数据相关新闻</h4>
@ -192,28 +187,12 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<div class="tabbable"> <!-- Only required for left/right tabs --> <div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li> <li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">相关搜索</a></li>
<li><a href="#service" data-toggle="tab">服务记录</a></li> <li><a href="#service" data-toggle="tab">服务记录</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li> <li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div id="related" class="tab-pane active"> <div id="related" class="tab-pane active">
</div> </div>
<div id="literature" class="tab-pane">
<div class="">
<ul class="nav nav-pills lit-nav">
<li><a href="javascript:;" class="literatures lit-nav-btn">西部计划知识库</a></li>
<li><a href="javascript:;" class="scholar lit-nav-btn">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI学术搜索</a></li>
</ul>
</div>
<div id="literature-list">
</div>
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchlist" class="unstyled well well-small"></ul>
</div>
<div id="service" class="tab-pane"> <div id="service" class="tab-pane">
<?php if ($this->downhistory) : ?> <?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p> <p>最近10条服务记录如下</p>
@ -501,10 +480,6 @@ endforeach;
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(function() { $(function() {
$(".colorbox").colorbox({photo:"true"}); $(".colorbox").colorbox({photo:"true"});
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
$('.cnkiSearch').click(function(){cnkiSearch('<?php echo $ev;?>');});
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
$('#related_t').click(function(){related(1);}); $('#related_t').click(function(){related(1);});
$('#recommend_t').click(function(){recommend(0);}); $('#recommend_t').click(function(){recommend(0);});
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')}); $('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
@ -518,12 +493,6 @@ $(function() {
}); });
$(this).parent('li').addClass('active'); $(this).parent('li').addClass('active');
}); });
});
$('#gsearch_t').click(function(){
if($('#searchlist').children('li').length<1)
{
googleSearch('<?php echo $ev;?>');
}
}); });
$('#show-list').click(function(e) { $('#show-list').click(function(e) {
method.filelist.get($(this).attr('rel')); method.filelist.get($(this).attr('rel'));
@ -584,18 +553,6 @@ function ajaxpage(page){
control=new TNavigationControl(config); control=new TNavigationControl(config);
//添加缩放平移控件 //添加缩放平移控件
map.addControl(control); map.addControl(control);
function addfavorite(url,title){
var fav_url = url;
var fav_title = title;
if (document.all && window.external){
window.external.AddFavorite(fav_url,fav_title);
}else if (window.sidebar){
window.sidebar.addPanel(fav_title,fav_url,"");
}else{
alert("浏览器不支持请手动CTRL+D加入收藏夹");
}
}
</script> </script>
<?php else: ?> <?php else: ?>
<p>Cannot find the metadata.</p> <p>Cannot find the metadata.</p>

View File

@ -54,7 +54,7 @@
<ul> <ul>
<?php foreach($this->list_news as $k=>$v){ ?> <?php foreach($this->list_news as $k=>$v){ ?>
<li> <li>
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-ok-sign"> </i><?= $v['title'] ?></a> [<?= date('Y-m-d',strtotime($v['ts_created'])) ?>]<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-ok-sign"> </i><?= $v['title'] ?></a>
</li> </li>
<?php } ?> <?php } ?>
<span class="pull-right"><a href="/archives/" target="_blank" class="more">更多>></a></span> <span class="pull-right"><a href="/archives/" target="_blank" class="more">更多>></a></span>