2013-10-28 14:54:21 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
2013-11-09 15:46:23 +00:00
|
|
|
|
$this->headTitle('Knowledge');
|
2013-10-28 14:54:21 +00:00
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
2013-11-09 15:46:23 +00:00
|
|
|
|
$this->breadcrumb('<a href="/">Home</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
|
|
|
|
|
$this->breadcrumb('View paper');
|
2013-10-28 14:54:21 +00:00
|
|
|
|
$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 } ?>
|
2014-05-08 13:25:27 +00:00
|
|
|
|
<?php if($this->author) : ?>
|
2013-11-09 15:46:23 +00:00
|
|
|
|
<h4>Authors</h4>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
<ul>
|
|
|
|
|
<?php foreach($this->author as $a) : ?>
|
2014-05-08 13:25:27 +00:00
|
|
|
|
<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>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<hr />
|
2014-05-08 13:25:27 +00:00
|
|
|
|
<?php endif; ?>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
|
|
|
|
|
<?php if ($this->paper['abstract']){ ?>
|
2013-11-09 15:46:23 +00:00
|
|
|
|
<h4>Abstract</h4>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
<p><?php echo $this->paper['abstract']; ?></p>
|
|
|
|
|
<hr />
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<?php if(count($this->tag) > 0) { ?>
|
2013-11-09 15:46:23 +00:00
|
|
|
|
<h4>Keywords</h4>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
<ul>
|
|
|
|
|
<?php foreach($this->tag as $t) : ?>
|
|
|
|
|
<li><?php echo $t['tag']; ?></li>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<hr />
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<?php if(!empty($this->paper['reference'])) { ?>
|
2013-11-09 15:46:23 +00:00
|
|
|
|
<h4>Citation</h4>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
<blockquote>
|
|
|
|
|
<?php echo $this->paper['reference']; ?>
|
|
|
|
|
</blockquote>
|
|
|
|
|
<hr />
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<?php
|
|
|
|
|
if (empty($this->paper['link']))
|
|
|
|
|
{
|
|
|
|
|
if(!empty($this->paper['attid']))
|
|
|
|
|
{
|
2013-11-09 15:46:23 +00:00
|
|
|
|
echo '<a class="btn btn-mini btn-info" href="/service/attach/id/'.$this->paper['attid'].'">PDF</a>';
|
2013-10-28 14:54:21 +00:00
|
|
|
|
}
|
|
|
|
|
}else{
|
2013-11-09 15:46:23 +00:00
|
|
|
|
echo '<a href="'.$this->paper['link'].'"><i class="icon-download text-success"></i>PDF</a>';
|
2013-10-28 14:54:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2013-11-09 15:46:23 +00:00
|
|
|
|
if (!empty($item['attid'])) :
|
|
|
|
|
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
|
2013-10-28 14:54:21 +00:00
|
|
|
|
endif;
|
|
|
|
|
?>
|
2013-11-09 15:46:23 +00:00
|
|
|
|
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)">Related: <span id="referenceDataCount">?</span></a>
|
2013-10-28 14:54:21 +00:00
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><!-- content -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript" >
|
2014-05-08 13:25:27 +00:00
|
|
|
|
$('#Nav-knowledge-user').addClass('active');
|
2013-10-28 14:54:21 +00:00
|
|
|
|
</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>
|