add ris download function for literatures
This commit is contained in:
parent
beb002b648
commit
1ccb1300b0
|
@ -1667,6 +1667,8 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
$uuid=$this->_request->getParam('uuid');
|
$uuid=$this->_request->getParam('uuid');
|
||||||
|
//文献id
|
||||||
|
$id=(int)$this->_request->getParam('id');
|
||||||
$lang=$this->_request->getParam('lang');
|
$lang=$this->_request->getParam('lang');
|
||||||
$ris='';
|
$ris='';
|
||||||
if ($lang=='cn' && !empty($uuid))
|
if ($lang=='cn' && !empty($uuid))
|
||||||
|
@ -1708,6 +1710,10 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$ris.='M3 - doi:'.$row['doi']."\r\n";
|
$ris.='M3 - doi:'.$row['doi']."\r\n";
|
||||||
$ris.='DO - doi:'.$row['doi']."\r\n";
|
$ris.='DO - doi:'.$row['doi']."\r\n";
|
||||||
$ris.='ER -'."\r\n";
|
$ris.='ER -'."\r\n";
|
||||||
|
} else if ($id) {
|
||||||
|
$sql="select ris from reference where id=$id";
|
||||||
|
$row=$this->db->fetchRow($sql);
|
||||||
|
$ris=$row['ris'];
|
||||||
}
|
}
|
||||||
if (!empty($ris))
|
if (!empty($ris))
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,6 +70,9 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
if (!empty($item['link'])) :
|
if (!empty($item['link'])) :
|
||||||
echo ' <a href="'.$item['link'].'">下载</a>';
|
echo ' <a href="'.$item['link'].'">下载</a>';
|
||||||
endif;
|
endif;
|
||||||
|
if (!empty($item['ris'])) :
|
||||||
|
echo ' <a href="/service/ris/id/'.$item['id'].'">RIS下载</a>';
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
<a href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据(共<span id="referenceDataCount">?</span>条)</a>
|
<a href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据(共<span id="referenceDataCount">?</span>条)</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue