修改数据查看页面
This commit is contained in:
parent
64a76c1927
commit
9736372958
|
@ -12,15 +12,15 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php $md=$this->metadata;if ($md):?>
|
<?php $md=$this->metadata;if ($md):?>
|
||||||
<h1><?php echo $this->escape($md->title);
|
<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);?>
|
||||||
</h1>
|
</h3>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
||||||
<p style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
<p>
|
||||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,37 +28,37 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<div>
|
<div>
|
||||||
<?php if ($md->citation) : ?>
|
<?php if ($md->citation) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h5>本数据引用方式</h5>
|
<h4><i class="icon-quote-left muted"></i>本数据引用方式</h4>
|
||||||
<p><?php echo $this->escape($md->citation);?></p>
|
<p><?php echo $this->escape($md->citation);?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->ref) : ?>
|
<?php if ($this->ref) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h5>建议参考文献</h5>
|
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->ref as $ref) :
|
<?php foreach($this->ref as $ref) :
|
||||||
if (empty($ref->link))
|
if (empty($ref->link))
|
||||||
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.'</li>';
|
echo '<li>'.$ref->reference.'</li>';
|
||||||
else
|
else
|
||||||
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
|
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->userref) : ?>
|
<?php if ($this->userref) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h5>数据用户发表文献</h5>
|
<h4>数据用户发表文献</h4>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->userref as $ref) :
|
<?php foreach($this->userref as $ref) :
|
||||||
if (empty($ref->link))
|
if (empty($ref->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
echo '<li>'.$ref->reference.'</li>';
|
||||||
else
|
else
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
|
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h5>数据使用声明</h5>
|
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
|
||||||
<?php
|
<?php
|
||||||
if ($this->uselimits) :
|
if ($this->uselimits) :
|
||||||
foreach($this->uselimits as $uselimit) :
|
foreach($this->uselimits as $uselimit) :
|
||||||
|
@ -72,7 +72,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if($this->data_archives){ ?>
|
<?php if($this->data_archives){ ?>
|
||||||
<h5>相关数据新闻</h5>
|
<h4>数据相关新闻</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
foreach($this->data_archives as $v){?>
|
foreach($this->data_archives as $v){?>
|
||||||
|
@ -82,13 +82,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<hr />
|
<hr />
|
||||||
<?php }?>
|
<?php }?>
|
||||||
<?php if ($md->suppinfo) : ?>
|
<?php if ($md->suppinfo) : ?>
|
||||||
<h5>项目支持信息</h5>
|
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||||
<hr />
|
<hr />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->resources) : ?>
|
<?php if ($this->resources) : ?>
|
||||||
<h5>其他在线资源</h5>
|
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||||
<ul><?php foreach($this->resources as $link) : ?>
|
<ul class="unstyled"><?php foreach($this->resources as $link) : ?>
|
||||||
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
||||||
<?php
|
<?php
|
||||||
if (!empty($link->name))
|
if (!empty($link->name))
|
||||||
|
@ -161,7 +161,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
|
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<h4>数据评论</h4>
|
<h4>数据评论</h4>
|
||||||
<div id="allcomments">
|
<div id="allcomments">
|
||||||
|
@ -225,70 +225,46 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div>
|
<ul class="well well-small inline unstyled">
|
||||||
<table class="table table-striped">
|
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||||
<thead>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>类别</td>
|
|
||||||
<td>
|
|
||||||
<ul class="nav nav-pills inline unstyled">
|
|
||||||
<?php foreach($this->category as $cat): ?>
|
<?php foreach($this->category as $cat): ?>
|
||||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><?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_zh);?></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
<?php
|
||||||
foreach($this->keys as $k=>$v)
|
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||||
{
|
$kt='';
|
||||||
if($v['keytype'] == "category"){ $title = "类别";
|
$i=0;
|
||||||
}else if($v['keytype'] == "discipline"){$title = "学科";
|
foreach($this->keys as $cg) :
|
||||||
}else if($v['keytype'] == "place"){$title = "地点";
|
if ($kt==$cg['keytype']) :
|
||||||
}else if($v['keytype'] == "temporal"){$title = "时间";
|
$i+=1;
|
||||||
}else if($v['keytype'] == "theme"){ $title = "主题";
|
else :
|
||||||
}
|
if (!empty($kt)) echo '</ul>';
|
||||||
$keys[$title][] = $v['keyword'];
|
$kt=$cg['keytype'];
|
||||||
}
|
$i=0;
|
||||||
|
endif;
|
||||||
|
if ($i==0) {
|
||||||
?>
|
?>
|
||||||
<?php foreach($keys as $k=>$v) { ?>
|
<ul class="well well-small inline unstyled">
|
||||||
<tr>
|
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||||
<td><?= $k ?></td>
|
<?
|
||||||
<td>
|
}
|
||||||
<ul class="nav nav-pills inline unstyled">
|
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||||
<?php foreach($v as $keys) { ?>
|
endforeach;
|
||||||
<li><a href="/data/tag/key/"><?= $keys ?></a></li>
|
?></ul>
|
||||||
<?php } ?>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<!--
|
|
||||||
<?php if ($this->series): ?>
|
|
||||||
<div id="series">
|
|
||||||
<ul><?php foreach($this->series as $serie): ?>
|
|
||||||
<li><a href="/data/series/id/<?php echo $serie->id; ?>"> <?php echo $this->escape($serie->name);?></a></li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
-->
|
|
||||||
<div>
|
<div>
|
||||||
<hr />
|
<hr />
|
||||||
<h4>数据信息</h4>
|
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" onclick="getFileList()" title=""><i class="icon-file"></i>文件列表</a></h4>
|
||||||
<ul class="unstyled">
|
<ul class="inline unstyled well">
|
||||||
<?php if ($md->fileformat) : ?>
|
<?php if ($md->fileformat) : ?>
|
||||||
<li id="fileformat">格式:<?php echo $md->fileformat; ?></li>
|
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li id="filesize">大小:<?php echo $md->filesize; ?>MB</li>
|
<li><strong>大小:</strong><?php echo $md->filesize; ?>MB</li>
|
||||||
<?php if ($this->downloaded>9) :?>
|
<?php if ($this->downloaded>9) :?>
|
||||||
<li id="downtimes">下载:<?php echo $this->downloaded; ?>次</li>
|
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li id="viewtimes">浏览:<?php echo $this->viewed; ?>次</li>
|
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||||
<!--
|
<!--
|
||||||
<?php if ($md->projection) : ?>
|
<?php if ($md->projection) : ?>
|
||||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||||
|
@ -306,7 +282,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
-->
|
-->
|
||||||
<?php if (!empty($md->timebegin)) : ?>
|
<?php if (!empty($md->timebegin)) : ?>
|
||||||
<li id="datatimes">数据时间范围:<?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>数据时间范围:</strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (!empty($this->doc)) : ?>
|
<?php if (!empty($this->doc)) : ?>
|
||||||
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
||||||
|
@ -325,11 +301,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<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="打包下载"/></a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li id="datatype">数据共享方式:<?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> <a href="javascript:void(0);" id="show-list" onclick="getFileList()" title="">文件列表</a></li>
|
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="linkurl">
|
<div id="linkurl">
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审中</a>
|
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
||||||
<?php else : if (!$md->datatype) : ?>
|
<?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="直接下载">
|
||||||
在线下载
|
在线下载
|
||||||
|
@ -378,7 +354,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a><a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a></li>
|
<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>
|
||||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||||
<?php if($this->version->c>0):?>
|
<?php if($this->version->c>0):?>
|
||||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||||
|
@ -390,8 +372,6 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<!-- JiaThis Button BEGIN -->
|
<!-- JiaThis Button BEGIN -->
|
||||||
<div class="jiathis_style" style="margin-left:10px;">
|
<div class="jiathis_style" style="margin-left:10px;">
|
||||||
<a class="jiathis_button_tsina"></a>
|
<a class="jiathis_button_tsina"></a>
|
||||||
<a class="jiathis_button_linkedin"></a>
|
|
||||||
<a class="jiathis_button_googleplus"></a>
|
|
||||||
<a class="jiathis_button_qzone"></a>
|
<a class="jiathis_button_qzone"></a>
|
||||||
<a class="jiathis_button_tqq"></a>
|
<a class="jiathis_button_tqq"></a>
|
||||||
<a class="jiathis_button_renren"></a>
|
<a class="jiathis_button_renren"></a>
|
||||||
|
|
Loading…
Reference in New Issue