区分显示不同的关键词(ticket #124)
This commit is contained in:
parent
c983f18ebb
commit
5c92b416c0
|
@ -25,13 +25,23 @@
|
|||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
if ($kt==$cg->keytype) :
|
||||
$i+=1;
|
||||
else :
|
||||
if (!empty($kt)) echo '</ul></div>';
|
||||
$kt=$cg->keytype;
|
||||
$i=0;
|
||||
endif;
|
||||
if ($i==0) echo '<div id="'.$cg->keytype.'"><ul>';
|
||||
echo '<li><a href="/data/tag/key/'.$cg->keyword.'">'.$cg->keyword.'</a></li>';
|
||||
endforeach;
|
||||
echo '</ul></div>';
|
||||
?>
|
||||
|
||||
<div id="keyword">
|
||||
<ul><?php foreach($this->keys as $cg) : ?>
|
||||
<li><a href='/data/tag/key/<?php echo $cg->keyword; ?>'><?php echo $cg->keyword; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if ($this->series): ?>
|
||||
<div id="series">
|
||||
|
@ -43,7 +53,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<ul id=OtherInfo>
|
||||
<li id="filesize"><span>数据大小:</span><?php echo $md->filesize; ?>MB</li>
|
||||
<li id="filesize">数据大小:<?php echo $md->filesize; ?>MB</li>
|
||||
<li id="fileformat">数据格式:<?php echo $md->fileformat; ?></li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li id="downtimes">下载:<?php echo $this->downloaded; ?>次</li>
|
||||
|
@ -125,7 +135,6 @@ endforeach;
|
|||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->description));?>
|
||||
</p>
|
||||
</div>
|
||||
<?php if ($this->related) : ?>
|
||||
<hr />
|
||||
<div id="cite">
|
||||
<?php if ($md->citation) : ?>
|
||||
|
@ -133,13 +142,20 @@ endforeach;
|
|||
<p><?php echo $this->escape($md->citation);?></p>
|
||||
<?php endif; ?>
|
||||
<h2>数据使用声明</h2>
|
||||
<?php if ($this->uselimits) :
|
||||
foreach($this->uselimits as $uselimit) :
|
||||
echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit['uselimit']));
|
||||
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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($this->related) : ?>
|
||||
<hr />
|
||||
|
||||
<div id="related">
|
||||
<h2>相关数据</h2>
|
||||
<ul>
|
||||
|
@ -280,4 +296,4 @@ function reportError(request)
|
|||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 153 B |
Binary file not shown.
After Width: | Height: | Size: 153 B |
Binary file not shown.
After Width: | Height: | Size: 154 B |
Binary file not shown.
After Width: | Height: | Size: 152 B |
Binary file not shown.
After Width: | Height: | Size: 153 B |
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Loading…
Reference in New Issue