初步切换,logo、首页、数据页面修改

This commit is contained in:
wlx 2013-06-23 08:37:52 +00:00
parent dd4a8366ed
commit 960014b064
19 changed files with 183 additions and 341 deletions

View File

@ -3,45 +3,31 @@ db.adapter = PDO_PGSQL
db.params.host = localhost
db.params.username = gis
db.params.password = gispassword
db.params.dbname = metadata
db.params.dbname = wdsmetadata
geonetwork.url=http://westdc.westgis.ac.cn/geonetwork/
geonetwork.url=http://wdscar.westgis.ac.cn/geonetwork/
geonetwork.adapter = PDO_PGSQL
geonetwork.params.host = localhost
geonetwork.params.username = gis
geonetwork.params.password = gispassword
geonetwork.params.dbname = geonetwork
geonetwork.params.dbname = wdscar_geonetwork
watergeonetwork.url=http://210.77.68.237:8080/geonetwork/
waterdb.adapter = PDO_PGSQL
waterdb.params.host = 210.77.68.237
waterdb.params.username = postgres
waterdb.params.password = "test@))("
waterdb.params.dbname = geonetwork252
seekspace.url=http://seekspace.resip.ac.cn/
seekspace.handleurl=http://seekspace.resip.ac.cn/handle
google.maps.api=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg
bing.api=4BC90E1E9ED351ECE0D9FB71509BC3CC1264340C
bigthumb.path=../geonetwork/data/
temp.path=/tmp/
upload=../data/upload/
paths.newsletter=images/newsletter/
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
page.limit=10
import.dir=../data/import
title.site=寒区旱区科学数据中心
title.data=数据产品
title.site=Cold and Arid Regions Science Data Center
title.data=Dataset
title.heihe=黑河计划数据管理中心
title.yrnmr=黄河上游宁蒙河段综合数据
title.glacier=中国冰川资源及其变化调查
title.review=数据评审
title.author=数据作者
title.knowledge=知识积累
title.netkites=移动文献查询服务
title.author=For AUTHOR
title.knowledge=Knowledge
supportemail=westdc@lzb.ac.cn
reportemail=westdc-report-subscribe@lists.westgis.ac.cn
smtp.username=westdc@lzb.ac.cn
smtp.password=ilovewestdc
@ -74,14 +60,6 @@ routes.tag.route = "data/tag/:key"
routes.tag.defaults.controller = "data"
routes.tag.defaults.action = "tag"
routes.netkites1.type = "Zend_Controller_Router_Route_Static"
routes.netkites1.route = "knowledge/netkites"
routes.netkites1.defaults.controller = netkites
routes.netkites1.defaults.action = index
routes.netkites.route = "knowledge/netkites/:action/*"
routes.netkites.defaults.controller = netkites
routes.dataid.route = "data/:id"
routes.dataid.defaults.controller = "data"
routes.dataid.defaults.action = "view"

View File

@ -307,7 +307,7 @@ class DataController extends Zend_Controller_Action
if ($code>0 && $code<20) {
$where=$this->db->quoteInto('code = ?',$code);
$row=$this->db->fetchRow("select * from categorycode where ".$where);
$this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']);
$this->view->codename=$row['name'];
$sql='select count(m.id) from normalmetadata m left join category c on m.id=c.id where c.code=?';
$row=$this->db->fetchRow($sql,array($code));
$sum=$row['count'];
@ -542,7 +542,7 @@ class DataController extends Zend_Controller_Action
function viewAction()
{
$id = (int)$this->_request->getParam('id');
$sql="select m.*,s.status,g.id as gid,t.filename,i.doi as datadoi,i.authors,i.author_en,i.publisher,i.publisher_en, date_part('year',i.ts_published) as publish_year from normalmetadata m left join mdstatus s on m.uuid=s.uuid
$sql="select m.*,s.status,g.id as gid,t.filename,i.doi as datadoi,i.author_en,i.publisher_en, date_part('year',i.ts_published) as publish_year from normalmetadata m left join mdstatus s on m.uuid=s.uuid
left join thumbnail t on t.id=m.id left join geonetworkmetadata g on m.uuid=g.uuid left join datadoi i on i.uuid=m.uuid where ";
if (empty($id)) {
$uuid = $this->_request->getParam('uuid');

View File

@ -85,7 +85,7 @@ class IndexController extends Zend_Controller_Action
$this->view->list_news = $rows;
$sql="select d.*,m.ts_published as publish_year from datadoi d left join metadata m on d.uuid=m.uuid where d.ts_published is not null order by ts_published desc limit 4";
$sql="select d.*,m.ts_published as publish_year from datadoi d right join metadata m on d.uuid=m.uuid where d.ts_published is not null order by ts_published desc limit 4";
$sth = $this->db->query($sql);
$this->view->dois = $sth->fetchAll();

View File

@ -1,13 +1,10 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('高级搜索');
$this->headTitle('Advance Search');
if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('高级搜索');
//$this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'google_map_keydragzone');
@ -37,13 +34,13 @@ foreach($this->metadata as $md) : ?>
<div class="span8" id="map_canvas" style="height:500px;"></div>
<div class="span4">
<form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
<fieldset><legend>时间范围</legend>
<fieldset><legend>Temporal Range</legend>
<label>
开始时间
Star
<input name="begin" type="text" id="begin" />
</label>
<label>
结束时间
End
<input name="end" type="text" id="end" />
</label>
</fieldset>

View File

@ -1,17 +1,17 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('数据作者浏览');
$this->headTitle('By Author');
$this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/author",'title'=>'数据作者浏览');
$this->nav[] = array('link'=>"/data/author",'title'=>'By Author');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class='row-fluid'>
<?= $this->render('breadcrumbs.phtml') ?>
<?= $this->partial('data/tools.phtml'); ?>
<ul class="nav nav-tabs">
<li id="Nav-author-unverified"><a href="/data/author">未认证的数据作者<?php if ($this->author && $this->ac=='unverified') echo ''.$this->author['username']; ?></a></li>
<li id="Nav-author-verified"><a href="/data/author/ac/verified">已认证的数据作者<?php if ($this->author && $this->ac=='verified') echo ''.$this->author['username'].'['.$this->author['realname'].']'; ?></a></li>
<li id="Nav-author-unverified"><a href="/data/author">Unverified Author<?php if ($this->author && $this->ac=='unverified') echo ''.$this->author['username']; ?></a></li>
<li id="Nav-author-verified"><a href="/data/author/ac/verified">Verified author<?php if ($this->author && $this->ac=='verified') echo ''.$this->author['username'].'['.$this->author['realname'].']'; ?></a></li>
</ul>
</div>
<?php if ($this->author) : ?>

View File

@ -1,10 +1,10 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('全部浏览');
$this->headTitle('Browse');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->nav[] = array('link'=>"/data/browse",'title'=>'全部浏览');
$this->nav[] = array('link'=>"/data/browse",'title'=>'Browse');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class="row-fluid">

View File

@ -1,21 +1,21 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('分类浏览');
$this->headTitle('By Categories');
if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/category",'title'=>'分类浏览');
$this->nav[] = array('link'=>"/data/category",'title'=>'By Categories');
?>
<div class="row-fluid">
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?>
</div>
<div class="row-fluid">
<h4>数据集类别</h4>
<h4>ISO 19115 Categories</h4>
<ul class="nav nav-pills">
<?php foreach($this->category as $cg) : ?>
<li <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name_zh'] == $this->codename ){?> class="active" <?php } endif; ?>>
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php print($cg['name']); ?>
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
<?php endforeach; ?>
</ul>
@ -23,7 +23,7 @@ $this->nav[] = array('link'=>"/data/category",'title'=>'分类浏览');
<div class="row-fluid">
<?php if (!empty($this->metadata)) : ?>
<div id='metacontent'>
<h4>当前浏览<?php echo $this->codename; ?></h4>
<h4>Current<?php echo $this->codename; ?></h4>
<?php echo $this->page->getNavigation(); ?>
<hr />
<?php foreach($this->metadata as $md) : ?>

View File

@ -1,20 +1,20 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('DOI浏览');
$this->headTitle('By DOI');
$this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/doi",'title'=>'DOI浏览');
$this->nav[] = array('link'=>"/data/doi",'title'=>'By DOI');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class='row-fluid'>
<?= $this->render('breadcrumbs.phtml') ?>
<?= $this->partial('data/tools.phtml'); ?>
<ul class="nav nav-tabs">
<li id="Nav-doi-publish"><a href="/data/doi">已发布DOI的数据</a></li>
<li id="Nav-doi-submit"><a href="/data/doi/ac/submit">已提交DOI申请的数据</a></li>
<li id="Nav-doi-unsubmit"><a href="/data/doi/ac/unsubmit">未提交DOI申请的数据</a></li>
<li id="Nav-doi-prepare"><a href="/data/doi/ac/prepare">准备申请DOI的数据</a></li>
<li id="Nav-doi-unready"><a href="/data/doi/ac/unready">无DOI的数据</a></li>
<li id="Nav-doi-publish"><a href="/data/doi">Published DOI</a></li>
<li id="Nav-doi-submit"><a href="/data/doi/ac/submit">Submitted DOI</a></li>
<li id="Nav-doi-unsubmit"><a href="/data/doi/ac/unsubmit">Unsubmitted DOI</a></li>
<li id="Nav-doi-prepare"><a href="/data/doi/ac/prepare">Prepared for DOI</a></li>
<li id="Nav-doi-unready"><a href="/data/doi/ac/unready">No DOI</a></li>
</ul>
</div>
<?php if (!empty($this->paginator)) : ?>
@ -28,10 +28,10 @@ $this->theme->AppendPlus($this,'colorbox');
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<?php if (@$md['datadoi']) : ?>
<h4 class="media-heading">DOI:<?php echo $md['datadoi'];?>
<?php if (@$md['ts_submitted']) : ?> <span class="label label-info">申请日期:<?php echo $md['ts_submitted'];?></span>
<?php else: if (@$md['ts_created']) : ?> <span class="label label-info">创建日期:<?php echo $md['ts_created'];?></span> <?php endif; ?>
<?php if (@$md['ts_submitted']) : ?> <span class="label label-info">Submitted Date: <?php echo $md['ts_submitted'];?></span>
<?php else: if (@$md['ts_created']) : ?> <span class="label label-info">Created Date: <?php echo $md['ts_created'];?></span> <?php endif; ?>
<?php endif; ?>
<?php if (@$md['ts_published']) : ?> <span class="label label-success">发布日期:<?php echo $md['ts_published'];?></span><?php endif; ?>
<?php if (@$md['ts_published']) : ?> <span class="label label-success">Published Date: <?php echo $md['ts_published'];?></span><?php endif; ?>
</h4>
<?php else: if (@$md['doi']): ?>
<h4 class="media-heading">DOI:<?php echo $md['doi']; ?></h4>

View File

@ -16,7 +16,7 @@
</div><!--/span-->
<div class="span9">
<h1><?php echo $this->md['title']; ?>(<?php echo $this->md['filesize']; ?>MB)</h1>
<fieldset><legend>FTP下载地址</legend>
<fieldset><legend>FTP URL</legend>
<ul>
<?php if ($this->ftpurl) : ?>
<li><a href="<?php echo $this->ftpurl; ?>"><?php echo $this->ftpurl; ?></a></li>
@ -24,10 +24,10 @@
</ul>
</fieldset>
<fieldset><legend>FTP使用说明</legend>
<fieldset><legend>FTP Usage</legend>
帐号信息如下:<ul><li>FTP的用户名<?php echo $this->username; ?></li>
<li>FTP的密码<?php echo $this->userpass; ?></li>
<li>密码有效期限<?php echo $this->ftptime; ?></li>
<li>Password<?php echo $this->userpass; ?></li>
<li>Active Time<?php echo $this->ftptime; ?></li>
</ul>
<?php if ($this->md['host']=='ftp.westgis.ac.cn') : ?>
<p class="text-error">请注意此FTP需要在登陆后手工输入目录地址</p>

View File

@ -12,7 +12,7 @@ $this->theme->AppendPlus($this,'colorbox');
</div>
<div class="well">
<h4><a href="/data/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title']);?></a></h4>
编号:<?php echo $this->fund['fund_id']; ?> | 类型:<?php echo $this->fund['fund_type']; ?>
编号:<?php echo $this->fund['fund_id']; ?> | Type: <?php echo $this->fund['fund_type']; ?>
</div>
<?php if (!empty($this->paginator)) : ?>
<hr />

View File

@ -11,44 +11,41 @@ $this->headTitle()->setSeparator(' - ');
</style>
<div class="row">
<div class="span12">
<h4><i class="icon-folder-open"></i>专题数据集</h4>
<a class="btn btn-info" href="/heihe/"><i class="icon-folder-open"></i>黑河计划数据管理中心</a>
<a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>黑河生态水文遥感试验</a>
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>黑河综合遥感联合试验</a>
<a class="btn btn-info disabled" href="/glacier"><i class="icon-folder-open"></i>中国冰川资源及其变化调查</a>
<a class="btn btn-info disabled" href="/yrnmr"><i class="icon-folder-open"></i>黄河上游宁蒙河段数据</a>
<h4><i class="icon-folder-open"></i>Data Collection</h4>
<a class="btn btn-info" href="/heihe/"><i class="icon-folder-open"></i>Heihe</a>
<a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>HiWATER</a>
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>WATER</a>
</div>
<div class="span12">
<h4><i class="icon-flag"></i>特色导航</h4>
<h4><i class="icon-flag"></i>Datasets Navigator</h4>
<form method="get" action="/search" id="search" class="form-search">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="Full Text Search">
<button type="submit" class="btn"><i class="icon-search"></i>Search</button>
</div>
<a class="btn" href="/search/advance"><i class="icon-search"></i>高级搜索</a>
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>数据列表浏览</a>
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
<a class="btn" href="/search/advance"><i class="icon-search"></i>Advance Search</a>
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>Browse</a>
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>Online List</a>
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>Offline List</a>
</form>
<ul class="unstyled inline">
<li><a class="btn" href="/data/thumb"><i class="icon-picture"></i>缩略图浏览</a></li>
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>时间轴浏览</a></li>
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>空间浏览</a></li>
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
<li><a class="btn" href="/data/organization"><i class="icon-filter"></i>单位浏览</a></li>
<li><a class="btn" href="/data/fund"><i class="icon-money"></i>项目浏览</a></li>
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li>
<li><a class="btn" href="/knowledge"><i class="icon-exchange"></i>文献浏览</a></li>
<li><a class="btn" href="/data/doi"><i class="icon-paper-clip"></i>DOI浏览</a></li>
<li><a class="btn" href="/data/thumb"><i class="icon-picture"></i>Thumbnail</a></li>
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>Timeline</a></li>
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>Extend Map</a></li>
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>TimeMap</a></li>
<li><a class="btn" href="/data/organization"><i class="icon-filter"></i>By Organization</a></li>
<li><a class="btn" href="/data/fund"><i class="icon-money"></i>By Fund</a></li>
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>By Author</a></li>
<li><a class="btn" href="/data/doi"><i class="icon-paper-clip"></i>By DOI</a></li>
</ul>
</div>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
$keytypezh=array('place'=>'Place Keywords','theme'=>'Theme Keywords','discipline'=>'Discipline Keywords','stratum'=>'Stratum Keywords','temporal'=>'Temporal Keywords');
$type='theme';
?>
<div class="span6">
<div class="span12">
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
@ -56,23 +53,13 @@ $this->headTitle()->setSeparator(' - ');
<?php endforeach; ?>
</ul>
</div>
<?php
$type='discipline';
?>
<div class="span6">
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="row">
<?php
$type='place';
?>
<div class="span6">
<div class="span12">
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
@ -83,7 +70,7 @@ $this->headTitle()->setSeparator(' - ');
<?php
$type='temporal';
?>
<div class="span6">
<div class="span12">
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
@ -91,57 +78,33 @@ $this->headTitle()->setSeparator(' - ');
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="row">
<div class="span6">
<h4><img src="/images/dbs.png" align="absmiddle" />数据导航</h4>
<div class="fieldlist">
<fieldset><legend><a href="/data/category">数据集类别</a></legend>
<div class="span12">
<h4><a href="/data/category"><i class="icon-th-large"></i> ISO 19115 Categories</a></h4>
<ul class="unstyled inline">
<?php foreach($this->category as $cg) : ?>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><i class="icon-th-large"></i><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><i class="icon-th-large"></i><?php print($cg['name']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</ul>
</div>
<div class="fieldlist">
<div class="span12">
<?php if ($this->serie) : ?>
<div id='series' class="fieldlist">
<fieldset><legend><a href="/data/series">数据集序列</a></legend>
<h4><a href="/data/series"><i class="icon-signal"></i>Dataset Series</a></h4>
<ul class="unstyled inline">
<?php foreach($this->serie as $cg) : ?>
<li><a href='/data/series/<?php echo $cg['id']; ?>'><i class="icon-list-ol"></i><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</div>
</ul>
<?php endif; ?>
</div>
</div><!-- /left -->
<div class="span6">
<div class="news_list">
<h4><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
</div>
<div class="row">
<div class="span12">
<h4><img src="/images/dbs.png" align="absmiddle" /><a href="/data/browse">Latest Updates</a><a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
<ul class="unstyled">
<?php foreach($this->metadata as $md) : ?>
<li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
<?php endforeach; ?>
<li class="more"><a href="/data/browse" class="pull-right">更多</a></li>
</ul>
</div>
<div>
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</h4>
<div class="items">
<div class="item">
<ul class="unstyled">
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从西部数据中心申请数据</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/submit">如何在西部数据中心发布数据</a></li>
</ul>
</div>
</div>
</div>
</div><!-- /right -->
</div>

View File

@ -1,11 +1,11 @@
<ul class="nav nav-pills">
<li class="nav-header">特色导航方式</li>
<li><a href="/data/tag"><i class="icon-tags"></i>关键词浏览</a></li>
<li><a href="/data/series"><i class="icon-th-list"></i>序列浏览</a></li>
<li><a href="/data/category"><i class="icon-th"></i>分类浏览</a></li>
<li><a href="/data/timeline"><i class="icon-tasks"></i>时间轴浏览</a></li>
<!-- <li><a href="/data/map"><i class="icon-globe"></i>空间浏览</a></li> -->
<li><a href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
<li><a href="/data/browse"><i class="icon-align-justify"></i>全部浏览</a></li>
<!-- <li><a href="/data/advancesearch"><i class="icon-search"></i>高级搜索</a></li> -->
<li class="nav-header">Navigation:</li>
<li><a href="/data/tag"><i class="icon-tags"></i>By Keywords</a></li>
<li><a href="/data/series"><i class="icon-th-list"></i>By Series</a></li>
<li><a href="/data/category"><i class="icon-th"></i>By Categories</a></li>
<li><a href="/data/timeline"><i class="icon-tasks"></i>Timeline</a></li>
<!-- <li><a href="/data/map"><i class="icon-globe"></i>Map</a></li> -->
<li><a href="/data/timemap"><i class="icon-film"></i>TimeMap</a></li>
<li><a href="/data/browse"><i class="icon-align-justify"></i>Browse</a></li>
<!-- <li><a href="/search/advance"><i class="icon-search"></i>Advance Search</a></li> -->
</ul>

View File

@ -3,10 +3,6 @@
$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,'google_map_v3');
$this->theme->AppendPlus($this,'colorbox');
?>
@ -18,7 +14,8 @@ h3.gs_rt{font-size:110%;}
</style>
<?php $md=$this->metadata;if ($md):?>
<h3><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
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">
@ -32,45 +29,46 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<div>
<?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>
<h4><i class="icon-quote-left muted"></i>Citation<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>Help</a></h4>
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">Paper Cite</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>)
(Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</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>
<p><span class="label label-info">Dataset Cite</span><?php
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;
?> (Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</a> |
<a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex</a>)</p>
<?php endif; endif; if ($this->ref) : ?>
<hr />
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
<h4><i class="icon-eye-open text-success"></i>Recommended References</h4>
<ol>
<?php foreach($this->ref 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>';
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<hr />
<h4>数据用户发表文献</h4>
<h4>Data User's Publication</h4>
<ol>
<?php foreach($this->userref 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>';
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<hr />
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
<h4><i class="icon-legal text-warning"></i>Use Limits</h4>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
@ -78,13 +76,10 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<p>Please acknowledge the data center with: The data set is provided by Cold and Arid Regions Science Data Center at Lanzhou (http://card.westgis.ac.cn)</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h4>数据相关新闻</h4>
<h4>Related News</h4>
<ul>
<?php
foreach($this->data_archives as $v){?>
@ -94,11 +89,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'] ?><?= $v['title'] ?>(项目编号:<?= $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)) : ?>
@ -107,7 +102,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
@ -134,11 +129,11 @@ 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 Datasets</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Publications</a></li>
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Related Search</a></li>
<li><a href="#service" data-toggle="tab">Service Records</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommended Dataset</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane active">
@ -146,9 +141,8 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<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>
<li><a href="javascript:;" class="scholar lit-nav-btn">Google Scholar</a></li>
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI</a></li>
</ul>
</div>
<div id="literature-list">
@ -159,21 +153,21 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</div>
<div id="service" class="tab-pane">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<p>Latest 10 Records:</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;
echo ' Usage'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途'.$v->onlineproject;
echo ' Usage'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
You are welcomed to use this dataset.
<?php endif; ?>
</div>
<div id="recommend" class="tab-pane">
@ -186,9 +180,9 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<?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>
<?php else : ?>
<h4>数据评论</h4>
<h4>Comments</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();
@ -205,7 +199,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>
@ -223,13 +217,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">Contents</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>
@ -238,7 +232,7 @@ 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>
@ -249,13 +243,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</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) :
@ -276,20 +270,20 @@ foreach($this->keys as $cg) :
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" rel="<?= $md->uuid ?>"><i class="icon-file"></i>Files List</a></h4>
<ul class="inline unstyled well">
<?php if ($md->fileformat) : ?>
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
<li><strong>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>Download:</strong><?php echo $this->downloaded; ?> times</li>
<?php endif; ?>
<li><strong>浏览:</strong><?php echo $this->viewed; ?></li>
<li><strong>Viewed:</strong><?php echo $this->viewed; ?> times</li>
<!--
<?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影:
@ -307,7 +301,7 @@ 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>
<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 (!empty($this->doc)) : ?>
<!-- <li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
@ -319,38 +313,38 @@ endforeach;
}?>">数据说明文档</a></li> -->
<?php endif; ?>
<?php if ($this->attachments) : ?>
<li id="attach"><span>相关文档:</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>
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="zip download"/></a>
</li>
<?php endif; ?>
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
<li id="datatype"><strong>Sharing type:</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>
<?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: ?>
<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!">
Put in the CART
</a>
<?php endif;endif; ?>
</div>
</div>
<hr />
<h4>空间位置</h4>
<h4>Location</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'=>'Process','publisher'=>'Publisher','author'=>'Author');
$r='';
$i=0;
foreach($this->authors as $k=>$author) :
@ -378,50 +372,19 @@ 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>Latest Update:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
<li><strong>Get the 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">Changelog:<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="row-fluit">
<a href="javascript:void(0);" id="fav" class="btn" title="收藏到网站收藏夹">
<i class="icon-heart"></i> 喜欢
</a>
<a href="javascript:void(0);" class="btn" title="收藏到浏览器收藏夹">
<i class="icon-bookmark"></i> 收藏
</a>
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn" title="扫描地址二维码">
<i class="icon-qrcode"></i> 扫码转发
</a>
</div>
-->
<hr />
<div class="row-fluit">
<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>
</div>
<script src="/js/metadata-view.js"></script>
@ -507,5 +470,4 @@ function addfavorite(url,title){
<p>Cannot find the metadata.</p>
<p>没有找到对应的元数据。</p>
<?php endif;?>
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>

View File

@ -1,7 +1,7 @@
<hr>
<footer>
<p style="text-align:center;font-size:12px;">© 寒区旱区科学数据中心 2006-2013 | <a href="/about/contact" ><i class="icon-envelope"></i>联系我们</a> | <a href="/about/terms">使用条款和免责申明</a>
| <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a></p>
<p style="text-align:center;font-size:12px;">© Cold and Arid Regions Science Data Center at Lanzhou, a member of World Data System, 2006-2013 | <a href="/about/contact" ><i class="icon-envelope"></i>Contact US</a> | <a href="/about/terms">Terms</a>
| <a href="http://www.miibeian.gov.cn" target="_blank">MII 05000491</a></p>
</footer>
<?php if(!empty($this->pageID)) {?>
<script>$('#Nav-<?= $this->pageID?>').addClass("active");</script>

View File

@ -4,8 +4,8 @@
<div class="span5 pull-right">
<form method="get" action="/search" id="search" style="padding-top:17px;">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span4" placeholder="全文搜索">
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
<input type="text" value="" id="q" name="q" class="span4" placeholder="Full Text Search">
<button type="submit" class="btn"><i class="icon-search"></i>Search</button>
</div></form>
</div>
</div>
@ -17,16 +17,16 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/">WestDC</a>
<a class="brand" href="/">CARD - WDS member</a>
<div class="nav-collapse collapse">
<ul class="nav" id="mainmenu">
<li id="main-nav-index"><a href="/"><span>首页</span></a></li>
<li id="main-nav-data"><a href="/data"><span>数据产品</span></a></li>
<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
<li id="main-nav-author"><a href="/author"><span>数据作者</span></a></li>
<li id="main-nav-knowledge"><a href="/knowledge"><span>知识积累</span></a></li>
<li><a href="/archives"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li>
<li id="main-nav-index"><a href="/"><span>Home</span></a></li>
<li id="main-nav-data"><a href="/data"><span>Dataset</span></a></li>
<!--<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
<li id="main-nav-author"><a href="/author"><span>For Author</span></a></li>
<li id="main-nav-knowledge"><a href="/knowledge"><span>Knowledge</span></a></li>-->
<li><a href="/archives"><span>News & Events</span></a></li>
<li><a href="/about"><span>About</span></a></li>
</ul>
<p class="navbar-text pull-right">
@ -36,10 +36,10 @@
{
$user = $auth->getIdentity();
echo '<a href="/account"><i class="icon-user"></i>'.$user->username.'</a> ';
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台</a> ';
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <a href="/account/logout">注销</a>';
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>ADMIN</a> ';
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>CART</a> <a href="/account/logout">Logout</a>';
} else {
echo '<a href="/account/login"><i class="icon-user"></i>登录</a> <a href="/account/register">注册</a>';
echo '<a href="/account/login"><i class="icon-user"></i>Login</a> <a href="/account/register">Register</a>';
} ?>
</p>
</div>

View File

@ -1,6 +1,5 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('首页');
$this->headTitle()->setSeparator(' - ');
$auth = Zend_Auth::getInstance();
$this->headLink()->appendStylesheet('/css/index.css');
@ -41,7 +40,7 @@
</div>
</div>
<div class="span5" id="main-news">
<h4><a href="/archives/help/platform" class="pull-right"><i class="icon-book"></i>帮助</a><a href="/archives"><i class="icon-calendar"></i>新闻</a></h4>
<h4><a href="/archives/help/platform" class="pull-right"><i class="icon-book"></i>Help</a><a href="/archives"><i class="icon-calendar"></i>News & Events</a></h4>
<ul class="news-list">
<?php foreach($this->list_news as $k=>$v){ ?>
<li><span class="pull-right">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></li>
@ -50,9 +49,17 @@
</div>
</div>
<hr />
<div class="row">
<div class="span4">
<h4>在线下载热门数据</h4>
<div class="span12">
<h4><a href="/data/doi">Latest Datasets Published with DOI</a></h4>
<ul class="unstyled">
<?php foreach($this->dois as $doi) :
echo '<li class="well well-small">['.date('Y-m-d',strtotime($doi->ts_published)).']<a href="/data/'.$doi->uuid.'">'.str_replace('"','',substr($doi->author_en,1,-1)).'. '.$doi->title_en.'. '.$doi->publisher_en.', '.(empty($doi->publish_year)?date('Y',strtotime($doi->ts_published)):date('Y',strtotime($doi->publish_year))).'. doi:'.$doi->doi.'</a></li>';
endforeach;
?>
</ul>
</div>
<div class="span12">
<h4>Hottest Datasets</h4>
<ul class="unstyled">
<?php foreach($this->mdtop as $i=>$md) : ?>
<li><img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />
@ -60,7 +67,6 @@
</li>
<?php endforeach; ?>
</ul>
<h4>离线申请热门数据</h4>
<ul class="unstyled">
<?php foreach($this->offlinemdtop as $i=>$md) : ?>
<li><img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />
@ -68,70 +74,6 @@
</li>
<?php endforeach; ?>
</ul>
<h4>数据服务</h4>
<span><a href="/data/offlineapp"><i class="icon-user"></i>最近20条离线数据服务记录</a></span><span>(共<?= $this->offlinenum; ?>)</span><br />
<span><a href="/data/request"><i class="icon-tint"></i>如何申请数据</a></span>
<span><a href="/data/submit"><i class="icon-tint"></i>如何发布数据</a></span>
</div>
<div class="span8">
<h4><a href="/data/doi">最新注册DOI数据</a></h4>
<ul class="unstyled">
<?php foreach($this->dois as $doi) :
echo '<li class="well well-small">['.date('Y-m-d',strtotime($doi->ts_published)).']<a href="/data/'.$doi->uuid.'">'.substr($doi->authors,1,-1).'. '.$doi->title.'. '.$doi->publisher.', '.(empty($doi->publish_year)?date('Y',strtotime($doi->ts_published)):date('Y',strtotime($doi->publish_year))).'. doi:'.$doi->doi.'</a></li>';
//echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.$md->publish_year.'. doi:'.$md->doi.']';
endforeach;
?>
</ul>
</div>
</div>
<hr />
<div class="row">
<div class="span4">
<h4>专题数据集</h4>
<ul class="unstyled">
<li><a href="/heihe"><i class="icon-folder-open"></i>黑河计划数据管理中心</a></li>
<li><a href="/hiwater"><i class="icon-folder-open"></i>黑河生态水文遥感试验</a></li>
<li><a href="/water"><i class="icon-folder-open"></i>黑河综合遥感联合试验</a></li>
<li><a href="/glacier"><i class="icon-folder-open"></i>中国冰川资源及其变化调查</a></li>
<li><a href="/yrnmr"><i class="icon-folder-open"></i>黄河上游宁蒙河段数据</a></li>
</ul>
<!-- <hr />
<h4>友情链接</h4>
<ul class="unstyled">
<li><a href="http://heihe.westgis.ac.cn" target="_blank"><i class="icon-share"></i>数字黑河</a></li>
<li><a href="http://web.nuist.edu.cn/DQKX/nadsc/" target="_blank"><i class="icon-share"></i>南京大气资料服务中心</a></li>
<li><a href="http://www.sciencedata.cn" target="_blank"><i class="icon-share"></i>科学数据共享工程</a></li>
</ul> -->
</div>
<div class="span4">
<h4>数据导航</h4>
<ul class="unstyled">
<li>
<a href="/data/category"><i class="icon-th-large"></i>分类浏览</a>
</li>
<li>
<a href="/data/tag"><i class="icon-tags"></i>关键词导航</a>
</li>
<li>
<a href="/data/series"><i class="icon-th-list"></i>数据集序列</a>
</li>
<li>
<a href="/data/timeline"><i class="icon-calendar"></i>时间轴导航</a>
</li>
<li>
<a href="/data/timemap"><i class="icon-globe"></i>时空导航</a>
</li>
</ul>
</div>
<div class="span4">
<h4>统计</h4>
<ul class="unstyled">
<li><span class="symbol">&nbsp;</span>元数据 <strong>
<span><?php echo $this->metanum; ?></span></strong></li>
<li><span class="symbol">&nbsp;</span>在线数据 <strong><?php echo number_format($this->onlinesize/1000,2,'.',''); ?> GB</strong></li>
<li><span class="symbol">&nbsp;</span>总数据 <strong><?php echo number_format(($this->onlinesize+$this->offlinesize)/1000,2,'.',''); ?> GB</strong></li>
<li><span class="symbol">&nbsp;</span>总注册用户&nbsp;<strong><span><?php echo $this->usernum; ?></span> </strong>&nbsp;</li>
</ul>
</div>
</div>

View File

@ -14,9 +14,9 @@ class Pagination
private $_nextPageString = ">>"; //导航栏中前一页显示的字符
private $_previousPageString = "<<"; //导航栏中后一页显示的字符
private $_lastPageString = ">>|"; //导航栏中最后一页显示的字符
private $_typestr="元数据";
private $_typestr="Metadata";
public function __construct($itemCount, $page=1,$pageSize=10,$typestr="元数据")
public function __construct($itemCount, $page=1,$pageSize=10,$typestr="Metadata")
{
if(!is_numeric($itemCount) || (!is_numeric($pageSize)))
throw new Exception("Pagination Error:not Number");
@ -59,7 +59,7 @@ class Pagination
if ($this->_itemCount<$this->_pageSize) return '';
$navigation = '<div class="pagination" style="line-height:14px">';
$navigation .= "<ul>";
$navigation .= "<li><span>共有".$this->_typestr."<em>$this->_itemCount</em>条</span></li> \n";
$navigation .= "<li><span><em>$this->_itemCount</em> $this->_typestr</span></li> \n";
$pageCote = ceil($this->_currentPage / ($this->_navigationItemCount - 1)) - 1; //当前页处于第几栏分页
$pageCoteCount = ceil($this->_pageCount / ($this->_navigationItemCount - 1)); //总分页栏

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 12 KiB