fix westdc/westdc-zf1#19, set default citation

This commit is contained in:
wlx 2015-06-30 08:33:32 +08:00
parent 039f59afd8
commit c427f43f02
1 changed files with 9 additions and 2 deletions

View File

@ -49,9 +49,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>