use idTabs, add literature information
This commit is contained in:
parent
e824fd217c
commit
3a09517db8
|
@ -13,8 +13,9 @@
|
||||||
//$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
//$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||||
|
$this->headScript()->appendFile('/js/jquery.idTabs.min.js');
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
//$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
||||||
?>
|
?>
|
||||||
<div id='sidebar'>
|
<div id='sidebar'>
|
||||||
<div id='leftnavi'>
|
<div id='leftnavi'>
|
||||||
|
@ -157,9 +158,9 @@ endforeach;
|
||||||
<hr />
|
<hr />
|
||||||
<ul>
|
<ul>
|
||||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||||
<li class="singleline">
|
<li>
|
||||||
<a href="/service/pdf/review/1/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.jpg" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
<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/review/1/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.png" alt="OpenOffice odt格式" title="OpenOffice odt格式"></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/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>
|
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -228,6 +229,42 @@ endforeach;
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<ul class="idTabs">
|
||||||
|
<li><a href="#related">相关数据</a></li>
|
||||||
|
<li><a href="#literature">相关文献</a></li>
|
||||||
|
<li><a href="#comments">数据评论</a></li>
|
||||||
|
<li><a href="#service">服务记录</a></li>
|
||||||
|
<li><a href="#gsearch">相关搜索</a></li>
|
||||||
|
<li><a href="#recommend">给我推荐</a></li>
|
||||||
|
</ul>
|
||||||
|
<?php if ($this->related) : ?>
|
||||||
|
<div id="related">
|
||||||
|
<ul>
|
||||||
|
<?php foreach ($this->related as $r) : ?>
|
||||||
|
<li><a href="/data/<?= $r->uuid; ?>"><?= $r->title; ?></a></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($this->literature) : ?>
|
||||||
|
<div id="literature">
|
||||||
|
<ul>
|
||||||
|
<?php foreach ($this->literature as $r) :
|
||||||
|
$u=parse_url($r->url);
|
||||||
|
if (@$u['host']=='hdl.handle.net')
|
||||||
|
$url=$this->config->seekspace->handleurl.$u['path'];
|
||||||
|
else
|
||||||
|
$url=$r->url;
|
||||||
|
echo '<li>';
|
||||||
|
if ($url) echo '<a href="'.$url.'" target="_blank">';
|
||||||
|
echo $r->title;
|
||||||
|
if ($url) echo '</a>';
|
||||||
|
echo '【'.$r->author.'. '.$r->publisher.' '.$r->ts_issued.'】</li>';
|
||||||
|
?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
<hr />
|
<hr />
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
|
@ -239,7 +276,12 @@ endforeach;
|
||||||
<?php echo $this->commentForm; ?>
|
<?php echo $this->commentForm; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="gsearch">
|
||||||
|
<p>用GOOGLE搜索本数据的关键词,有一下结果:</p>
|
||||||
|
</div>
|
||||||
|
<div id="recommend">
|
||||||
|
<p>申请了本条数据的用户,通常他们还申请了:</p>
|
||||||
|
</div>
|
||||||
<div id="window-outter" style="display:none;">
|
<div id="window-outter" style="display:none;">
|
||||||
<div id="window-inner">
|
<div id="window-inner">
|
||||||
<div id="window-closer-container">[<a href="#" id="window-closer" onclick="$('#window-outter').hide()">关闭</a>]</div>
|
<div id="window-closer-container">[<a href="#" id="window-closer" onclick="$('#window-outter').hide()">关闭</a>]</div>
|
||||||
|
|
Loading…
Reference in New Issue