update data index and data view page
This commit is contained in:
parent
dfef1e10b7
commit
4cabb8ad6f
|
@ -23,7 +23,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$this->view->main_nav_pageID = "data";
|
$this->view->main_nav_pageID = "data";
|
||||||
|
|
||||||
$this->view->nav = array(
|
$this->view->nav = array(
|
||||||
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
|
array('link'=>'/','title'=>'首页'),
|
||||||
array('link'=>'/data','title'=>$this->view->config->title->data),
|
array('link'=>'/data','title'=>$this->view->config->title->data),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
<!--当前定位-->
|
||||||
<?php if(!empty($this->nav)){ ?>
|
<?php if(!empty($this->nav)){ ?>
|
||||||
<div class="top-position">
|
<div class="container">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="fixTab">
|
||||||
<?php foreach ($this->nav as $k=>$v){?>
|
<?php foreach ($this->nav as $k=>$v){?>
|
||||||
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
|
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
|
||||||
<?php if(isset($this->nav[$k+1])) {?> <span class="divider">/</span> <?php } ?>
|
<?php if(isset($this->nav[$k+1])) {?> <span>/</span> <?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
|
@ -60,7 +60,7 @@ $this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
|
||||||
<div class="col-sm-6 col-md-6">
|
<div class="col-sm-6 col-md-6">
|
||||||
<a href="/data/<?php echo $md['uuid'];?>">
|
<a href="/data/<?php echo $md['uuid'];?>">
|
||||||
<div class="dataBox">
|
<div class="dataBox">
|
||||||
<img src="/static-sanji-v2/img/20180206161540_37955.png" alt="" />
|
<img src="/service/thumb/id/<?php echo $md['id']; ?>" alt="" />
|
||||||
<div class="rightBox">
|
<div class="rightBox">
|
||||||
<h6><?php echo $this->escape($md['title']);?></h6>
|
<h6><?php echo $this->escape($md['title']);?></h6>
|
||||||
<p><?= $this->escape($md['description']) ?></p>
|
<p><?= $this->escape($md['description']) ?></p>
|
||||||
|
|
|
@ -0,0 +1,508 @@
|
||||||
|
<?php
|
||||||
|
$this->headTitle($this->config->title->site);
|
||||||
|
$this->headTitle($this->config->title->data);
|
||||||
|
$this->headTitle($this->metadata->title);
|
||||||
|
$this->headTitle()->setSeparator(' - ');
|
||||||
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
|
$this->breadcrumb('查看元数据');
|
||||||
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
|
$this->theme->AppendPlus($this,'tianditu');
|
||||||
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
|
$this->headLink()->appendStylesheet('/static-sanji/css/data-detail.css');
|
||||||
|
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
|
||||||
|
?>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="data-detail-warp">
|
||||||
|
<?php $md=$this->metadata; if ($md):?>
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="content-left col-sm-8">
|
||||||
|
<div class="data-wrap" >
|
||||||
|
<div class="data-content">
|
||||||
|
<h2><?php echo $this->escape($md->title); ?></h2>
|
||||||
|
<?php if ($md->title_en) echo '<h3>'.$this->escape($md->title_en).'</h3>';?>
|
||||||
|
<div class="data-info">
|
||||||
|
<?php
|
||||||
|
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间','stratum'=>'地层');
|
||||||
|
$kt='';
|
||||||
|
$i=0;
|
||||||
|
foreach($this->keys as $cg) :
|
||||||
|
if ($kt==$cg['keytype']) :
|
||||||
|
$i+=1;
|
||||||
|
else :
|
||||||
|
if (!empty($kt)) echo '</span>';
|
||||||
|
$kt=$cg['keytype'];
|
||||||
|
$i=0;
|
||||||
|
endif;
|
||||||
|
if ($i==0) {
|
||||||
|
?>
|
||||||
|
<span>
|
||||||
|
<a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
|
||||||
|
<?
|
||||||
|
}
|
||||||
|
echo '<a href="/data/tag/key/'.urlencode($cg['keyword']).'">'.$cg['keyword'].'</a>';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="thumb">
|
||||||
|
<a class="colorbox" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
||||||
|
</div>
|
||||||
|
<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 class="unfold-field">
|
||||||
|
<div class="unflod-field_mask"></div>
|
||||||
|
<div class="unfold-field_text"><span>展开全文</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="use-state">
|
||||||
|
<?php if ($this->mcitation && (count($this->mcitation)>1) ) : ?>
|
||||||
|
<hr />
|
||||||
|
<h4>本数据要求的多篇文献引用</h4>
|
||||||
|
<ol>
|
||||||
|
<?php foreach($this->mcitation as $ref) :
|
||||||
|
echo '<li>'.$ref->reference;
|
||||||
|
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</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>';
|
||||||
|
}else{
|
||||||
|
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}
|
||||||
|
echo "</li>";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</ol>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
||||||
|
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
||||||
|
?>
|
||||||
|
<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; ?>
|
||||||
|
|
||||||
|
<?php if ($this->ref) : ?>
|
||||||
|
<hr />
|
||||||
|
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<ul>
|
||||||
|
<?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>';
|
||||||
|
if (empty($ref->link))
|
||||||
|
{
|
||||||
|
if(!empty($ref->attid))
|
||||||
|
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}else{
|
||||||
|
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}
|
||||||
|
echo "</li>";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif;?>
|
||||||
|
|
||||||
|
<?php if ($this->themeref) :?>
|
||||||
|
<hr />
|
||||||
|
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<ul>
|
||||||
|
<?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>';
|
||||||
|
if (empty($ref->link))
|
||||||
|
{
|
||||||
|
if(!empty($ref->attid))
|
||||||
|
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}else{
|
||||||
|
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}
|
||||||
|
echo "</li>";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($this->userref) : ?>
|
||||||
|
<hr />
|
||||||
|
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<ul>
|
||||||
|
<?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>';
|
||||||
|
if (empty($ref->link))
|
||||||
|
{
|
||||||
|
if(!empty($ref->attid))
|
||||||
|
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||||
|
}else{
|
||||||
|
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</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>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<h4>数据使用声明</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://www.poles.ac.cn)</p>
|
||||||
|
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://www.poles.ac.cn)</p>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if($this->data_archives){ ?>
|
||||||
|
<h4>数据相关新闻</h4>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<ul>
|
||||||
|
<?php
|
||||||
|
foreach($this->data_archives as $v){?>
|
||||||
|
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
|
||||||
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||||
|
<hr />
|
||||||
|
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||||
|
<?php if(!empty($this->fund)) : ?>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<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>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?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>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<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
|
||||||
|
if (!empty($link->name))
|
||||||
|
echo $link->name;
|
||||||
|
elseif (!empty($link->description))
|
||||||
|
echo $link->description;
|
||||||
|
else
|
||||||
|
echo $link->linkage;
|
||||||
|
?></a></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="data-share">
|
||||||
|
<div class="col-sm-2">Share This:</div>
|
||||||
|
<!-- JiaThis Button BEGIN -->
|
||||||
|
<div class="jiathis_style col-sm-10">
|
||||||
|
<a class="jiathis_button_qzone"></a>
|
||||||
|
<a class="jiathis_button_tsina"></a>
|
||||||
|
<a class="jiathis_button_tqq"></a>
|
||||||
|
<a class="jiathis_button_weixin"></a>
|
||||||
|
<a class="jiathis_button_renren"></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>
|
||||||
|
<p style="clear: both"></p>
|
||||||
|
<!-- JiaThis Button END -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="relate-data">
|
||||||
|
<div>
|
||||||
|
<!-- Nav tabs -->
|
||||||
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
|
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||||
|
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">服务记录</a></li>
|
||||||
|
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||||
|
</ul>
|
||||||
|
<!-- Tab panes -->
|
||||||
|
<div class="tab-content">
|
||||||
|
<div role="tabpanel" class="tab-pane active tab-div" id="related">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div role="tabpanel" class="tab-pane tab-div" id="profile">
|
||||||
|
<?php if ($this->downhistory) : ?>
|
||||||
|
<p>最近10条服务记录如下:</p>
|
||||||
|
<ul 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>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
<?php else : ?>
|
||||||
|
暂时没有服务记录,欢迎您下载使用!
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<div role="tabpanel" class="tab-pane tab-div" id="recommend">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-right col-sm-3 col-sm-offset-1">
|
||||||
|
<div class="space-position">
|
||||||
|
<div class="right-list-title">空间位置</div>
|
||||||
|
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
||||||
|
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||||
|
</div>
|
||||||
|
<div class="data-details-list right-list">
|
||||||
|
<div class="right-list-title">数据细节</div>
|
||||||
|
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
||||||
|
<ul>
|
||||||
|
<?php if ($md->fileformat) : ?>
|
||||||
|
<li>+ 格式:<span><?php echo $md->fileformat; ?></span></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<li>+ 大小:<span><?php echo $md->filesize; ?>MB</span></li>
|
||||||
|
<?php if ($this->downloaded>9) :?>
|
||||||
|
<li>+ 下载:<span><?php echo $this->downloaded; ?>次</span></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<li>+ 浏览:<span><?php echo $this->viewed; ?>次</span></li>
|
||||||
|
<?php if (!empty($md->timebegin)) : ?>
|
||||||
|
<li>+ 数据时间范围:<span><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></span></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<li>+ 数据共享方式:<span><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?></span></li>
|
||||||
|
<li>+ 元数据更新时间:<span><?php print date('Y-m-d',strtotime($md->ts_created)); ?></span></li>
|
||||||
|
<?php if ($this->attachments) : ?>
|
||||||
|
<li id="attach">+ 相关文档:
|
||||||
|
<?php foreach ($this->attachments as $k=>$a) : ?>
|
||||||
|
<span><a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a></span>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<span><a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a></span>
|
||||||
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if($this->version->c>0):?>
|
||||||
|
<li>+ 历史版本:<span><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></span></li>
|
||||||
|
<?php endif;?>
|
||||||
|
<li>+ 下载元数据:
|
||||||
|
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_13.jpg" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
||||||
|
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_14.jpg" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
||||||
|
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_15.jpg" alt="Word doc格式" title="Word doc格式"></a>
|
||||||
|
<a href="/service/xml/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_16.jpg" alt="查看XML源文件" title="查看XML源文件"></a>
|
||||||
|
</li>
|
||||||
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
|
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="download-btn">数据评审</a>
|
||||||
|
<?php else : if (!$md->datatype) : ?>
|
||||||
|
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="download-btn">下载数据</a>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php
|
||||||
|
if(!empty($this->dataService)) { ?>
|
||||||
|
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||||
|
<a href="javascript:void(0);" class="download-btn" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||||
|
<?php }else{ ?>
|
||||||
|
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="download-btn" title="免费!离线申请此数据(在线数据和离线数据都可申请)">放入数据篮</a>
|
||||||
|
<?php } ?>
|
||||||
|
放入数据篮
|
||||||
|
</a>
|
||||||
|
<?php endif;endif; ?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="relate-info-list right-list">
|
||||||
|
<div class="right-list-title">联系信息</div>
|
||||||
|
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
||||||
|
<ul>
|
||||||
|
<?php
|
||||||
|
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
||||||
|
$r='';
|
||||||
|
$i=0;
|
||||||
|
foreach($this->authors as $k=>$author) :
|
||||||
|
if ($author->role!=$r)
|
||||||
|
{
|
||||||
|
$r=$author->role;
|
||||||
|
$i=0;
|
||||||
|
if ($k>0) echo '</li>';
|
||||||
|
echo '<li>'.$party_zh[$author->role].':';
|
||||||
|
}
|
||||||
|
if ($i>0) echo ',';
|
||||||
|
$i+=1;
|
||||||
|
if (!empty($author->email) && $r!='principalInvestigator')
|
||||||
|
echo '<a href="mailto:'.$author->email.'">';
|
||||||
|
echo '<strong title="'.$author->organisation.'">';
|
||||||
|
if (!empty($author->individual))
|
||||||
|
echo $author->individual;
|
||||||
|
else
|
||||||
|
echo $author->organisation;
|
||||||
|
echo '</strong>';
|
||||||
|
if (!empty($author->email)) echo '</a>';
|
||||||
|
if ($k+1==count($this->authors)) echo '</li>';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- container -->
|
||||||
|
<?php else: ?>
|
||||||
|
<p>Cannot find the metadata.</p>
|
||||||
|
<p>没有找到对应的元数据。</p>
|
||||||
|
<?php endif;?>
|
||||||
|
<p style="clear: both;"></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/js/metadata-view.js"></script>
|
||||||
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
$(function() {
|
||||||
|
$(".colorbox").colorbox({photo:"true"});
|
||||||
|
$('#related_t').click(function(){related(1);});
|
||||||
|
$('#recommend_t').click(function(){recommend(0);});
|
||||||
|
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||||
|
$('.literatures').click(function(){literature(1);});
|
||||||
|
ajaxpage(0);
|
||||||
|
related(1);
|
||||||
|
$('.lit-nav-btn').each(function(index, element) {
|
||||||
|
$(this).click(function(){
|
||||||
|
$('.lit-nav').children('li').each(function(index, element) {
|
||||||
|
$(this).removeClass('active');
|
||||||
|
});
|
||||||
|
$(this).parent('li').addClass('active');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$('#show-list').click(function(e) {
|
||||||
|
method.filelist.get($(this).attr('rel'));
|
||||||
|
});
|
||||||
|
|
||||||
|
var unfoldField=document.querySelector(".unfold-field");
|
||||||
|
var wrapH=document.querySelector(".data-wrap").offsetHeight;
|
||||||
|
var wrap=document.querySelector(".data-wrap");
|
||||||
|
var contentH=document.querySelector(".data-content").offsetHeight;
|
||||||
|
if(contentH>wrapH){
|
||||||
|
unfoldField.style.display="block";
|
||||||
|
}
|
||||||
|
wrap.style.visibility="visible";
|
||||||
|
unfoldField.onclick=function(){
|
||||||
|
this.parentNode.removeChild(this);
|
||||||
|
wrap.style.maxHeight="100%";
|
||||||
|
wrap.style.visible="visible";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//ajax literature
|
||||||
|
function literature(page){
|
||||||
|
literature_get(page,'<?= $md->uuid; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
//ajax related
|
||||||
|
function related(page){
|
||||||
|
related_get(page,'<?= $md->uuid; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
//ajax recommend
|
||||||
|
function recommend(page){
|
||||||
|
recommend_get(page,'<?= $md->uuid; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
function ajaxpage(page){
|
||||||
|
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php if ($this->downhistory) : ?>
|
||||||
|
$('#recommend_t').parent('li').addClass('active');
|
||||||
|
$('#recommend').addClass('active');
|
||||||
|
recommend(0);
|
||||||
|
<?php else : ?>
|
||||||
|
$('#related_t').parent('li').addClass('active');
|
||||||
|
$('#related').addClass('active');
|
||||||
|
<? endif; ?>
|
||||||
|
|
||||||
|
var config = { projection: "EPSG:4326"};
|
||||||
|
var map=new TMap("watermap",config);
|
||||||
|
var lat=<?= ($md->south+$md->north)/2; ?>;
|
||||||
|
var lng=<?= ($md->east+$md->west)/2; ?>;
|
||||||
|
map.centerAndZoom(new TLngLat(lng,lat),12);
|
||||||
|
map.setMapType(TMAP_HYBRID_MAP);
|
||||||
|
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
|
||||||
|
var marker=new TMarker(new TLngLat(lng,lat));
|
||||||
|
map.addOverLay(marker);
|
||||||
|
<?php else :?>
|
||||||
|
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
|
||||||
|
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
|
||||||
|
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
|
||||||
|
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
|
||||||
|
map.setViewport(new Array(p1,p2,p3,p4));
|
||||||
|
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
|
||||||
|
var config = {
|
||||||
|
strokeColor:"blue", //折线颜色
|
||||||
|
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
|
||||||
|
strokeWeight:"3px", //折线的宽度,以像素为单位
|
||||||
|
opacity:0.3, //折线的透明度,取值范围0 - 1
|
||||||
|
strokeStyle:"dashed" //折线的样式,solid或dashed
|
||||||
|
};
|
||||||
|
var rect = new TRect(bounds,config);
|
||||||
|
map.addOverLay(rect);
|
||||||
|
//map.zoomOut();
|
||||||
|
<?php endif; ?>
|
||||||
|
var config = {
|
||||||
|
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
|
||||||
|
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
|
||||||
|
offset:[0,0], //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息,true表示显示,false表示隐藏。
|
||||||
|
};
|
||||||
|
//创建缩放平移控件对象
|
||||||
|
control=new TNavigationControl(config);
|
||||||
|
//添加缩放平移控件
|
||||||
|
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 type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
||||||
|
<script src="/static-sanji/js/bootstrap.min.js"></script>
|
|
@ -3,34 +3,23 @@
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle($this->metadata->title);
|
$this->headTitle($this->metadata->title);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
||||||
$this->breadcrumb('查看元数据');
|
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
|
||||||
$this->theme->AppendPlus($this,'tianditu');
|
$this->theme->AppendPlus($this,'tianditu');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
|
||||||
$this->headLink()->appendStylesheet('/static-sanji/css/data-detail.css');
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail.css');
|
||||||
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
|
||||||
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail-intro.css');
|
||||||
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
|
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
|
||||||
?>
|
?>
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="data-detail-warp">
|
|
||||||
<?php $md=$this->metadata; if ($md):?>
|
<?php $md=$this->metadata; if ($md):?>
|
||||||
|
<!--数据列表-->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="col-lg-12">
|
<div class="col-md-12">
|
||||||
<div class="content-left col-sm-8">
|
<div class="col-md-8 col-sm-8 leftBox">
|
||||||
<div class="data-wrap" >
|
<h5><?php echo $this->escape($md->title); ?></h5>
|
||||||
<div class="data-content">
|
<?php if ($md->title_en) echo '<p class="englishTitle">'.$this->escape($md->title_en).'</p>';?>
|
||||||
<h2><?php echo $this->escape($md->title); ?></h2>
|
<div class="smallSize">
|
||||||
<?php if ($md->title_en) echo '<h3>'.$this->escape($md->title_en).'</h3>';?>
|
|
||||||
<div class="data-info">
|
|
||||||
<?php
|
<?php
|
||||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间','stratum'=>'地层');
|
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间','stratum'=>'地层');
|
||||||
$kt='';
|
$kt='';
|
||||||
|
@ -45,464 +34,77 @@
|
||||||
endif;
|
endif;
|
||||||
if ($i==0) {
|
if ($i==0) {
|
||||||
?>
|
?>
|
||||||
<span>
|
<span><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
|
||||||
<a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
echo '<a href="/data/tag/key/'.urlencode($cg['keyword']).'">'.$cg['keyword'].'</a> ';
|
echo '<a href="/data/tag/key/'.urlencode($cg['keyword']).'">'.$cg['keyword'].'</a> ';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="thumb">
|
<div class="dataContent">
|
||||||
<a class="colorbox" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
<a href="" target="_blank">
|
||||||
</div>
|
<img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/>
|
||||||
<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 class="unfold-field">
|
|
||||||
<div class="unflod-field_mask"></div>
|
|
||||||
<div class="unfold-field_text"><span>展开全文</span></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="use-state">
|
|
||||||
<?php if ($this->mcitation && (count($this->mcitation)>1) ) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4>本数据要求的多篇文献引用</h4>
|
|
||||||
<ol>
|
|
||||||
<?php foreach($this->mcitation as $ref) :
|
|
||||||
echo '<li>'.$ref->reference;
|
|
||||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</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>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
|
||||||
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
|
||||||
?>
|
|
||||||
<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; ?>
|
|
||||||
|
|
||||||
<?php if ($this->ref) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<ul>
|
|
||||||
<?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>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif;?>
|
|
||||||
|
|
||||||
<?php if ($this->themeref) :?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<ul>
|
|
||||||
<?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>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if ($this->userref) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<ul>
|
|
||||||
<?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>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</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>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
<h4>数据使用声明</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://www.poles.ac.cn)</p>
|
|
||||||
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://www.poles.ac.cn)</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if($this->data_archives){ ?>
|
|
||||||
<h4>数据相关新闻</h4>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
foreach($this->data_archives as $v){?>
|
|
||||||
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
|
|
||||||
<?php } ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
|
||||||
<?php if(!empty($this->fund)) : ?>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<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>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?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>
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<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
|
|
||||||
if (!empty($link->name))
|
|
||||||
echo $link->name;
|
|
||||||
elseif (!empty($link->description))
|
|
||||||
echo $link->description;
|
|
||||||
else
|
|
||||||
echo $link->linkage;
|
|
||||||
?></a></li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="data-share">
|
|
||||||
<div class="col-sm-2">Share This:</div>
|
|
||||||
<!-- JiaThis Button BEGIN -->
|
|
||||||
<div class="jiathis_style col-sm-10">
|
|
||||||
<a class="jiathis_button_qzone"></a>
|
|
||||||
<a class="jiathis_button_tsina"></a>
|
|
||||||
<a class="jiathis_button_tqq"></a>
|
|
||||||
<a class="jiathis_button_weixin"></a>
|
|
||||||
<a class="jiathis_button_renren"></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>
|
|
||||||
<p style="clear: both"></p>
|
|
||||||
<!-- JiaThis Button END -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="relate-data">
|
|
||||||
<div>
|
|
||||||
<!-- Nav tabs -->
|
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" id="related_t">相关数据</a></li>
|
|
||||||
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">服务记录</a></li>
|
|
||||||
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- Tab panes -->
|
|
||||||
<div class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane active tab-div" id="related">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane tab-div" id="profile">
|
|
||||||
<?php if ($this->downhistory) : ?>
|
|
||||||
<p>最近10条服务记录如下:</p>
|
|
||||||
<ul 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>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
<?php else : ?>
|
|
||||||
暂时没有服务记录,欢迎您下载使用!
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane tab-div" id="recommend">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-right col-sm-3 col-sm-offset-1">
|
|
||||||
<div class="space-position">
|
|
||||||
<div class="right-list-title">空间位置</div>
|
|
||||||
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
|
||||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
|
||||||
</div>
|
|
||||||
<div class="data-details-list right-list">
|
|
||||||
<div class="right-list-title">数据细节</div>
|
|
||||||
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
|
||||||
<ul>
|
|
||||||
<?php if ($md->fileformat) : ?>
|
|
||||||
<li>+ 格式:<span><?php echo $md->fileformat; ?></span></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<li>+ 大小:<span><?php echo $md->filesize; ?>MB</span></li>
|
|
||||||
<?php if ($this->downloaded>9) :?>
|
|
||||||
<li>+ 下载:<span><?php echo $this->downloaded; ?>次</span></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<li>+ 浏览:<span><?php echo $this->viewed; ?>次</span></li>
|
|
||||||
<?php if (!empty($md->timebegin)) : ?>
|
|
||||||
<li>+ 数据时间范围:<span><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></span></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<li>+ 数据共享方式:<span><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?></span></li>
|
|
||||||
<li>+ 元数据更新时间:<span><?php print date('Y-m-d',strtotime($md->ts_created)); ?></span></li>
|
|
||||||
<?php if ($this->attachments) : ?>
|
|
||||||
<li id="attach">+ 相关文档:
|
|
||||||
<?php foreach ($this->attachments as $k=>$a) : ?>
|
|
||||||
<span><a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a></span>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
<span><a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a></span>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if($this->version->c>0):?>
|
|
||||||
<li>+ 历史版本:<span><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></span></li>
|
|
||||||
<?php endif;?>
|
|
||||||
<li>+ 下载元数据:
|
|
||||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_13.jpg" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
|
||||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_14.jpg" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
|
||||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_15.jpg" alt="Word doc格式" title="Word doc格式"></a>
|
|
||||||
<a href="/service/xml/uuid/<?php echo $md->uuid; ?>"><img src="/static-sanji/images/data/data_03_16.jpg" alt="查看XML源文件" title="查看XML源文件"></a>
|
|
||||||
</li>
|
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
|
||||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="download-btn">数据评审</a>
|
|
||||||
<?php else : if (!$md->datatype) : ?>
|
|
||||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="download-btn">下载数据</a>
|
|
||||||
<?php else: ?>
|
|
||||||
<?php
|
|
||||||
if(!empty($this->dataService)) { ?>
|
|
||||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
|
||||||
<a href="javascript:void(0);" class="download-btn" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
|
||||||
<?php }else{ ?>
|
|
||||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="download-btn" title="免费!离线申请此数据(在线数据和离线数据都可申请)">放入数据篮</a>
|
|
||||||
<?php } ?>
|
|
||||||
放入数据篮
|
|
||||||
</a>
|
</a>
|
||||||
<?php endif;endif; ?>
|
<p>西藏卡若拉冰川位于西藏自治区山南地区浪卡子县和日喀则地区江孜县交界处,北纬28°54′23.30″~28°56′50.95″,东经90°11′42.21″~90°09′26.23″,属大陆性冰川,平均海拔5042米,是近南北向展布的宁金岗桑峰的组成部分。本数据集在综合中国科学院寒区旱区环境与工程研究所的我国第一次冰川编目数据、地球系统科学数据共享平台的雅鲁藏布江流域冰川2005年1∶10万编目数据、Google Earth遥感影像及野外考察等相关数据的基础上,借助ArcGIS、ENVI等软件,对数据进行波段组合、研究区裁剪、人工目视解译等技术研发完成,最后对所得的数据进行了精度验证。本数据集共包括1972~2017年间的25期冰川矢量数据和面积数据统计表,反映了45年来卡若拉冰川边界变化情况,可以作为青藏高原冰川变化、气候变化等研究的参考数据。</p>
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="relate-info-list right-list">
|
<h6>数据使用声明</h6>
|
||||||
<div class="right-list-title">联系信息</div>
|
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||||
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
<h6>资助项目</h6>
|
||||||
|
<p>西藏自治区自然科学基金(2016ZR-QY-01),国家自然科学基金(41371351、41561017)</p>
|
||||||
|
<h6>相关资源</h6>
|
||||||
|
<div class="">
|
||||||
|
<ul id="myTab" class="nav nav-tabs">
|
||||||
|
<li class="active">
|
||||||
|
<a href="#home1" data-toggle="tab">相关数据 </a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#home2" data-toggle="tab">服务记录 </a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#home3" data-toggle="tab">给我推荐 </a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div id="myTabContent" class="tab-content">
|
||||||
|
<div class="tab-pane fade in active" id="home1">
|
||||||
|
<p>暂无数据</p>
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane fade in" id="home2">
|
||||||
|
<p>暂无数据</p>
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane fade in" id="home3">
|
||||||
|
<p>暂无数据</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-sm-3 rightBox">
|
||||||
|
<h6>空间位置</h6>
|
||||||
|
<div class="topMap">
|
||||||
|
<img src="/static-sanji-v2/img/banner1.jpg"/>
|
||||||
|
</div>
|
||||||
|
<h6>数据细节</h6>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<li>格式:.shp、.shx、.sbn、.dbf</li>
|
||||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
<li>大小:0.15MB</li>
|
||||||
$r='';
|
<li>浏览:14次</li>
|
||||||
$i=0;
|
<li>数据时间范围:1972-10-18 至 2017-01-16</li>
|
||||||
foreach($this->authors as $k=>$author) :
|
<li>数据共享方式:离线</li>
|
||||||
if ($author->role!=$r)
|
<li>元数据更新时间:2018-03-18</li>
|
||||||
{
|
<li>历史版本:1 个<a href=""></a></li>
|
||||||
$r=$author->role;
|
<li>下载元数据:<a href=""></a></li>
|
||||||
$i=0;
|
|
||||||
if ($k>0) echo '</li>';
|
|
||||||
echo '<li>'.$party_zh[$author->role].':';
|
|
||||||
}
|
|
||||||
if ($i>0) echo ',';
|
|
||||||
$i+=1;
|
|
||||||
if (!empty($author->email) && $r!='principalInvestigator')
|
|
||||||
echo '<a href="mailto:'.$author->email.'">';
|
|
||||||
echo '<strong title="'.$author->organisation.'">';
|
|
||||||
if (!empty($author->individual))
|
|
||||||
echo $author->individual;
|
|
||||||
else
|
|
||||||
echo $author->organisation;
|
|
||||||
echo '</strong>';
|
|
||||||
if (!empty($author->email)) echo '</a>';
|
|
||||||
if ($k+1==count($this->authors)) echo '</li>';
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<a href="" class="addBtn">放入数据篮</a>
|
||||||
|
<h6>联系信息</h6>
|
||||||
|
<div class="">
|
||||||
|
<p>元数据作者:<a href="">邱玉宝</a></p>
|
||||||
|
<p>数据服务联系人:<a href="">邱玉宝</a></p>
|
||||||
|
<p>联系人:<a href="">邱玉宝</a></p>
|
||||||
|
<p>资源提供者:<a href="">邱玉宝</a></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- container -->
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p>Cannot find the metadata.</p>
|
<p>Cannot find the metadata.</p>
|
||||||
<p>没有找到对应的元数据。</p>
|
<p>没有找到对应的元数据。</p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<p style="clear: both;"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="/js/metadata-view.js"></script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
$(function() {
|
|
||||||
$(".colorbox").colorbox({photo:"true"});
|
|
||||||
$('#related_t').click(function(){related(1);});
|
|
||||||
$('#recommend_t').click(function(){recommend(0);});
|
|
||||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
|
||||||
$('.literatures').click(function(){literature(1);});
|
|
||||||
ajaxpage(0);
|
|
||||||
related(1);
|
|
||||||
$('.lit-nav-btn').each(function(index, element) {
|
|
||||||
$(this).click(function(){
|
|
||||||
$('.lit-nav').children('li').each(function(index, element) {
|
|
||||||
$(this).removeClass('active');
|
|
||||||
});
|
|
||||||
$(this).parent('li').addClass('active');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
$('#show-list').click(function(e) {
|
|
||||||
method.filelist.get($(this).attr('rel'));
|
|
||||||
});
|
|
||||||
|
|
||||||
var unfoldField=document.querySelector(".unfold-field");
|
|
||||||
var wrapH=document.querySelector(".data-wrap").offsetHeight;
|
|
||||||
var wrap=document.querySelector(".data-wrap");
|
|
||||||
var contentH=document.querySelector(".data-content").offsetHeight;
|
|
||||||
if(contentH>wrapH){
|
|
||||||
unfoldField.style.display="block";
|
|
||||||
}
|
|
||||||
wrap.style.visibility="visible";
|
|
||||||
unfoldField.onclick=function(){
|
|
||||||
this.parentNode.removeChild(this);
|
|
||||||
wrap.style.maxHeight="100%";
|
|
||||||
wrap.style.visible="visible";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//ajax literature
|
|
||||||
function literature(page){
|
|
||||||
literature_get(page,'<?= $md->uuid; ?>');
|
|
||||||
}
|
|
||||||
|
|
||||||
//ajax related
|
|
||||||
function related(page){
|
|
||||||
related_get(page,'<?= $md->uuid; ?>');
|
|
||||||
}
|
|
||||||
|
|
||||||
//ajax recommend
|
|
||||||
function recommend(page){
|
|
||||||
recommend_get(page,'<?= $md->uuid; ?>');
|
|
||||||
}
|
|
||||||
|
|
||||||
function ajaxpage(page){
|
|
||||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php if ($this->downhistory) : ?>
|
|
||||||
$('#recommend_t').parent('li').addClass('active');
|
|
||||||
$('#recommend').addClass('active');
|
|
||||||
recommend(0);
|
|
||||||
<?php else : ?>
|
|
||||||
$('#related_t').parent('li').addClass('active');
|
|
||||||
$('#related').addClass('active');
|
|
||||||
<? endif; ?>
|
|
||||||
|
|
||||||
var config = { projection: "EPSG:4326"};
|
|
||||||
var map=new TMap("watermap",config);
|
|
||||||
var lat=<?= ($md->south+$md->north)/2; ?>;
|
|
||||||
var lng=<?= ($md->east+$md->west)/2; ?>;
|
|
||||||
map.centerAndZoom(new TLngLat(lng,lat),12);
|
|
||||||
map.setMapType(TMAP_HYBRID_MAP);
|
|
||||||
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
|
|
||||||
var marker=new TMarker(new TLngLat(lng,lat));
|
|
||||||
map.addOverLay(marker);
|
|
||||||
<?php else :?>
|
|
||||||
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
|
|
||||||
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
|
|
||||||
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
|
|
||||||
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
|
|
||||||
map.setViewport(new Array(p1,p2,p3,p4));
|
|
||||||
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
|
|
||||||
var config = {
|
|
||||||
strokeColor:"blue", //折线颜色
|
|
||||||
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
|
|
||||||
strokeWeight:"3px", //折线的宽度,以像素为单位
|
|
||||||
opacity:0.3, //折线的透明度,取值范围0 - 1
|
|
||||||
strokeStyle:"dashed" //折线的样式,solid或dashed
|
|
||||||
};
|
|
||||||
var rect = new TRect(bounds,config);
|
|
||||||
map.addOverLay(rect);
|
|
||||||
//map.zoomOut();
|
|
||||||
<?php endif; ?>
|
|
||||||
var config = {
|
|
||||||
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
|
|
||||||
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
|
|
||||||
offset:[0,0], //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息,true表示显示,false表示隐藏。
|
|
||||||
};
|
|
||||||
//创建缩放平移控件对象
|
|
||||||
control=new TNavigationControl(config);
|
|
||||||
//添加缩放平移控件
|
|
||||||
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 type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
|
||||||
<script src="/static-sanji/js/bootstrap.min.js"></script>
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
.intro1 h2{
|
||||||
|
float: left;
|
||||||
|
width: auto;
|
||||||
|
padding: 0 10px 0 20px;
|
||||||
|
margin-left: 20px;
|
||||||
|
background: url(../img/look.png) no-repeat 10px center;
|
||||||
|
text-indent:20px ;
|
||||||
|
background-size:25% ;
|
||||||
|
line-height: 35px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
Loading…
Reference in New Issue