53 lines
2.4 KiB
PHTML
53 lines
2.4 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle('DOI浏览');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->nav[] = array('link'=>"/data/doi",'title'=>'DOI浏览');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
<div class='row-fluid'>
|
|
<?= $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-unready"><a href="/data/doi/ac/unready">无DOI的数据</a></li>
|
|
</ul>
|
|
</div>
|
|
<?php if (!empty($this->paginator)) : ?>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<?php foreach($this->paginator as $md) : ?>
|
|
<div class="media well well-small">
|
|
<a class="pull-left colorbox" href="/service/bigthumb/uuid/<?php echo $md['uuid']; ?>">
|
|
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
|
</a>
|
|
<div class="media-body">
|
|
<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 endif; ?>
|
|
<?php if (@$md['ts_published']) : ?> <span class="label label-success">发布日期:<?php echo $md['ts_published'];?></span><?php endif; ?>
|
|
</h4>
|
|
<?php else: if (@$md['doi']): ?>
|
|
<h4 class="media-heading">DOI:<?php echo $md['doi']; ?></h4>
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<?php else : ?>
|
|
暂无对应信息。
|
|
<?php endif; ?>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function(){
|
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
|
$(".colorbox").colorbox({photo:"true"});
|
|
});
|
|
</script>
|