change view theme to default
This commit is contained in:
parent
0e6e907cc6
commit
56f501da6c
|
@ -3,14 +3,11 @@
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle($this->metadata->title);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
if(!empty($this->dataService)) {
|
||||
$this->theme->AppendModel($this,"dataservice");
|
||||
}
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"",'title'=>'查看元数据');
|
||||
?>
|
||||
<style>
|
||||
h3.gs_rt{font-size:110%;}
|
||||
|
@ -18,20 +15,15 @@ h3.gs_rt{font-size:110%;}
|
|||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
</style>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||
</h3>
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
<div class="span6">
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);
|
||||
echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images/china.png" alt="Chinese Version"></a>';?>
|
||||
</h3>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<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;">
|
||||
|
@ -39,46 +31,27 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</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: ?>
|
||||
|
||||
<?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) : ?>
|
||||
<h4><i class="icon-quote-left muted"></i>Citation<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-107.html" ><i class="icon-comment"></i>Help</a></h4>
|
||||
|
||||
<p><span class="label label-info">Data Citation</span>
|
||||
<?php
|
||||
echo $this->escape($md->citation);
|
||||
?> </p>
|
||||
<?php endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Related publications (Recommended by Author)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
|
@ -87,17 +60,17 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Special Publications</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
|
@ -105,43 +78,38 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Cited By</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>More</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
|
||||
<h4><i class="icon-legal text-warning"></i>Limitations</h4>
|
||||
<?php
|
||||
if ($this->uselimits) :
|
||||
foreach($this->uselimits as $uselimit) :
|
||||
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
|
||||
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 if($this->data_archives){ ?>
|
||||
<h4>数据相关新闻</h4>
|
||||
<h4>Dataset News</h4>
|
||||
<ul>
|
||||
<?php
|
||||
foreach($this->data_archives as $v){?>
|
||||
|
@ -151,11 +119,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<h4><i class="icon-money text-info"></i>Fund</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<li><?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
|
@ -164,7 +132,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||
<h4><i class="icon-bolt text-warning"></i>Online Resources</h4>
|
||||
<ul class="unstyled inline"><?php foreach($this->resources as $link) : ?>
|
||||
<li><a class="label" href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
||||
<?php
|
||||
|
@ -191,61 +159,35 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<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="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">Related Dataset</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Literatures</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Searching</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommendation</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane active">
|
||||
</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">
|
||||
<?php if ($this->downhistory) : ?>
|
||||
<p>最近10条服务记录如下:</p>
|
||||
<ol start="1">
|
||||
<?php
|
||||
foreach($this->downhistory as $v){
|
||||
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
|
||||
if (!empty($v->offlineproject))
|
||||
echo ' 用途:'.$v->offlineproject;
|
||||
elseif (!empty($v->onlineproject))
|
||||
echo ' 用途:'.$v->onlineproject;
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php else : ?>
|
||||
暂时没有服务记录,欢迎您下载使用!
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="recommend" class="tab-pane">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<hr />
|
||||
<div id="comments">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<p class="strong">This data is not published yet. You are invited to review this dataset, to make the data released as soon as possible.<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<?php else : ?>
|
||||
<h4>数据评论</h4>
|
||||
<h4>Comment</h4>
|
||||
<div id="allcomments">
|
||||
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
|
||||
<div id="loading"><img src="/images/loading.gif" />Loading</div>
|
||||
</div>
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
@ -262,7 +204,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<form class="form-horizontal" id="postcommentform">
|
||||
<div class="control-group">
|
||||
<label class="control-label">姓名</label>
|
||||
<label class="control-label">Name</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="author" value="<?php echo $name;?>" />
|
||||
</div>
|
||||
|
@ -280,13 +222,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">内容</label>
|
||||
<label class="control-label">Content</label>
|
||||
<div class="controls">
|
||||
<textarea name="content" class="span5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">验证码</label>
|
||||
<label class="control-label">Captcha</label>
|
||||
<div class="controls">
|
||||
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
|
||||
</div>
|
||||
|
@ -295,24 +237,24 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<div class="controls">
|
||||
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
|
||||
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
|
||||
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
|
||||
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">Submit</a><button type="reset" id="reset" class="btn">Reset</button><span id="returninfo"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="infobox"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>Category: </a></li>
|
||||
<?php foreach($this->category as $cat): ?>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name_zh);?></a></li>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name);?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||
$kw=array('discipline'=>'Discipline','place'=>'Place','theme'=>'Theme','temporal'=>'Temporal','stratum'=>'Stratum');
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
|
@ -326,28 +268,27 @@ foreach($this->keys as $cg) :
|
|||
if ($i==0) {
|
||||
?>
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/glaicer/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||
<?
|
||||
}
|
||||
echo '<li><a href="/glaicer/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
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>
|
||||
<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 />
|
||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>文件列表</a></h4>
|
||||
<h4>Information<a class="btn pull-right" href="javascript:void(0);" id="show-list" title="" rel="<?= $md->uuid;?>"><i class="icon-file"></i>File list</a></h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md->fileformat) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||
<li><strong>File Format: </strong><?php echo $md->fileformat; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>大小:</strong><?php echo $md->filesize; ?>MB</li>
|
||||
<li><strong>Size: </strong><?php echo $md->filesize; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||
<li><strong>Downloaded: </strong><?php echo $this->downloaded; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||
<li><strong>Viewed: </strong><?php echo $this->viewed; ?></li>
|
||||
<!--
|
||||
<?php if ($md->projection) : ?>
|
||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||
|
@ -365,62 +306,48 @@ endforeach;
|
|||
<?php endif; ?>
|
||||
-->
|
||||
<?php if (!empty($md->timebegin)) : ?>
|
||||
<li id="datatimes"><strong>数据时间范围:</strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($this->doc)) : ?>
|
||||
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
||||
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
|
||||
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
|
||||
echo "/data/wiki/$title";
|
||||
}else{
|
||||
echo $this->doc;
|
||||
}?>">数据说明文档</a></li>
|
||||
<li id="datatimes"><strong>Temporal Range: </strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->attachments) : ?>
|
||||
<li><span class="label label-success">相关文档:</span>
|
||||
<li id="attach"><span>Documents: </span>
|
||||
<?php foreach ($this->attachments as $k=>$a) : ?>
|
||||
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
|
||||
<?php endforeach; ?>
|
||||
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||
<li id="datatype"><strong>Sharing: </strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
|
||||
</ul>
|
||||
<div id="linkurl">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="You are invited to review this dataset.">Reviewing</a>
|
||||
<?php else : if (!$md->datatype) : ?>
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="直接下载">
|
||||
在线下载
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="Download">
|
||||
Download
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?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);">
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="Select the subset" 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="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="Free of Charge!">
|
||||
<?php } ?>
|
||||
放入数据篮
|
||||
Put in the Basket
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
<!--
|
||||
<a href="javascript:void(0);" onclick="method.like('<?php echo $md->uuid; ?>',this)" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
||||
收藏此数据
|
||||
</a>
|
||||
-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr />
|
||||
<h4>空间位置</h4>
|
||||
<h4>Google Maps</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
<h4>联系信息</h4>
|
||||
<h4>Contacts</h4>
|
||||
<div id="authors">
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
||||
$party_zh=array('resourceProvider'=>'Resource Provider','custodian'=>'Custodian','owner'=>'Owner','user'=>'User','distributor'=>'Distributor','originator'=>'Originator','pointOfContact'=>'Point Of Contact','principalInvestigator'=>'Principal Investigator','processor'=>'Processor','publisher'=>'Publisher','author'=>'Author');
|
||||
$r='';
|
||||
$i=0;
|
||||
foreach($this->authors as $k=>$author) :
|
||||
|
@ -448,34 +375,20 @@ endforeach;
|
|||
</ul>
|
||||
<hr />
|
||||
<ul class="unstyled">
|
||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>下载元数据:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc格式"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
|
||||
<li>Last update: <?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>Download Metadata:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF" title="Adobe PDF"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt" title="OpenOffice odt"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc" title="Word doc"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="XML" title="XML"></a>
|
||||
</li>
|
||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||
<?php if($this->version->c>0):?>
|
||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<li id="dataversion">Version: <a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="pull-left">分享到</div>
|
||||
<!-- JiaThis Button BEGIN -->
|
||||
<div class="jiathis_style" style="margin-left:10px;">
|
||||
<a class="jiathis_button_tsina"></a>
|
||||
<a class="jiathis_button_qzone"></a>
|
||||
<a class="jiathis_button_tqq"></a>
|
||||
<a class="jiathis_button_renren"></a>
|
||||
<a class="jiathis_button_douban"></a>
|
||||
<a class="jiathis_button_tsohu"></a>
|
||||
<a class="jiathis_button_t163"></a>
|
||||
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
|
||||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -490,7 +403,7 @@ $(function() {
|
|||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
||||
$('#related_t').click(function(){related(1);});
|
||||
$('#recommend_t').click(function(){recommend(0);});
|
||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
|
||||
$('.literatures').click(function(){literature(1);});
|
||||
ajaxpage(0);
|
||||
related(1);
|
||||
|
@ -527,6 +440,10 @@ function recommend(page){
|
|||
recommend_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
function getFileList(){
|
||||
getFileList_h('<?php echo $md->uuid;?>');
|
||||
}
|
||||
|
||||
function ajaxpage(page){
|
||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
@ -548,7 +465,4 @@ var bound = {
|
|||
</script>
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
Loading…
Reference in New Issue