106 lines
3.3 KiB
PHTML
106 lines
3.3 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle('Knowledge');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
||
$this->breadcrumb('<a href="/">Home</a>');
|
||
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
|
||
$this->breadcrumb('View paper');
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||
?>
|
||
<div class="row">
|
||
<div class="span3">
|
||
<?= $this->partial('knowledge/navi.phtml'); ?>
|
||
</div>
|
||
<div class="span9">
|
||
<div id="content">
|
||
<?php if(!empty($this->paper['title'])){ ?>
|
||
<h3><?php echo $this->paper['title']; ?></h3>
|
||
<hr />
|
||
<?php } ?>
|
||
<?php if($this->author) : ?>
|
||
<h4>Authors</h4>
|
||
<ul>
|
||
<?php foreach($this->author as $a) : ?>
|
||
<li><?php echo $a['lastname'];if (!empty($a['firstname'])) echo ', '.$a['firstname']; ?> [<a href="/knowledge/search/author/<?php echo $a['id']; ?>/place/<?php echo $a['place']; ?>">All publications</a>]</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<hr />
|
||
<?php endif; ?>
|
||
|
||
<?php if ($this->paper['abstract']){ ?>
|
||
<h4>Abstract</h4>
|
||
<p><?php echo $this->paper['abstract']; ?></p>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<?php if(count($this->tag) > 0) { ?>
|
||
<h4>Keywords</h4>
|
||
<ul>
|
||
<?php foreach($this->tag as $t) : ?>
|
||
<li><?php echo $t['tag']; ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<?php if(!empty($this->paper['reference'])) { ?>
|
||
<h4>Citation</h4>
|
||
<blockquote>
|
||
<?php echo $this->paper['reference']; ?>
|
||
</blockquote>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<div>
|
||
<?php
|
||
if (empty($this->paper['link']))
|
||
{
|
||
if(!empty($this->paper['attid']))
|
||
{
|
||
echo '<a class="btn btn-mini btn-info" href="/service/attach/id/'.$this->paper['attid'].'">PDF</a>';
|
||
}
|
||
}else{
|
||
echo '<a href="'.$this->paper['link'].'"><i class="icon-download text-success"></i>PDF</a>';
|
||
}
|
||
|
||
|
||
if (!empty($item['attid'])) :
|
||
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
|
||
endif;
|
||
?>
|
||
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)">Related: <span id="referenceDataCount">?</span></a>
|
||
|
||
</div>
|
||
|
||
</div><!-- content -->
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript" >
|
||
$('#Nav-knowledge-user').addClass('active');
|
||
</script>
|
||
<script>
|
||
function showdata(id,page){
|
||
var url="/service/refdatalist/id/"+id;
|
||
$.ajax({
|
||
'type':"GET",
|
||
'url':url,
|
||
'data':'page='+page,
|
||
'dataType':'html',
|
||
'success':function(html){$.colorbox({'html':html,'innerHeight':230});}
|
||
});
|
||
}
|
||
function displayDataCount()
|
||
{
|
||
$.ajax({
|
||
'type':"GET",
|
||
'url':"/service/refdatacount/id/<?php echo $this->paper['id'];?>",
|
||
'data':'',
|
||
'dataType':'html',
|
||
'success':function(html){$('#referenceDataCount').html(html)}
|
||
});
|
||
}
|
||
displayDataCount();
|
||
</script>
|