在hiwater中的多篇文献引用列表中加入了查看和下载功能
This commit is contained in:
parent
8f208ef7c5
commit
88e29d711e
|
@ -46,9 +46,16 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
{
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if(!empty($ref->attid)) {
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
}
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
echo '<li>'.$ref->reference.'<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a> <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
|
Loading…
Reference in New Issue