hiwater\view中添加了dataservice判定
This commit is contained in:
parent
643ccaad7a
commit
f66616d0dc
|
@ -12,9 +12,12 @@
|
|||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
if(!empty($this->dataService)) {
|
||||
$this->theme->AppendModel($this,"dataservice");
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
h3.gs_rt{font-size:110%;}
|
||||
h3.gs_rt{font-size:110%;}
|
||||
#file-list li:hover {background-color: #f5f5f5;}
|
||||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
|
@ -22,49 +25,49 @@ h3.gs_rt{font-size:110%;}
|
|||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div class="span12">
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||
</h3>
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
<div class="span8">
|
||||
|
||||
</div>
|
||||
<div class="span8">
|
||||
<div>
|
||||
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
||||
<p style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php else: ?>
|
||||
<div>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if ($md->citation) : ?>
|
||||
<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>
|
||||
<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)) : ?>
|
||||
(下载引用:<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>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<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>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<?php if ($md->citation) : ?>
|
||||
<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>
|
||||
<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)) : ?>
|
||||
(下载引用:<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>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<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>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<ol>
|
||||
|
@ -100,7 +103,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<?php else : ?>
|
||||
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||
<p>中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)</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; ?>
|
||||
|
@ -114,19 +117,19 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ul>
|
||||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||
<ul class="unstyled inline"><?php foreach($this->resources as $link) : ?>
|
||||
|
@ -296,9 +299,9 @@ foreach($this->keys as $cg) :
|
|||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
endforeach;
|
||||
?></ul>
|
||||
<?php if ($md->doi) : ?>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI</span> <?php echo $md->doi; ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($md->doi) : ?>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI</span> <?php echo $md->doi; ?></li></ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<hr />
|
||||
|
@ -358,9 +361,15 @@ endforeach;
|
|||
在线下载
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
<?php
|
||||
if(!empty($this->dataService)) { ?>
|
||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php }else{ ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
<?php } ?>
|
||||
放入数据篮
|
||||
</a>
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
</div>
|
||||
|
||||
|
@ -460,7 +469,7 @@ $(function() {
|
|||
{
|
||||
googleSearch('<?php echo $ev;?>');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#show-list').click(function(e) {
|
||||
method.filelist.get($(this).attr('rel'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue