修正docAction和odtAction中数据引用方式的逻辑错误

This commit is contained in:
wlx 2014-02-25 04:12:57 +00:00
parent f99e98f2c7
commit 70eb46f541
1 changed files with 4 additions and 10 deletions

View File

@ -313,12 +313,9 @@ class ServiceController extends Zend_Controller_Action
{
$citation=$row['mcitation'];
} else if ($row['citation'])
{
if (empty($row['datadoi']))
{
$citation=$row['citation'];
}
elseif (!strpos($row['citation'],$row['datadoi']))
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
{
$citation='<li>文章引用:'.$row['citation'].'</li>';
$citation.="<li>数据的引用:";
@ -721,12 +718,9 @@ class ServiceController extends Zend_Controller_Action
{
$cit=$row['mcitation'];
} else if ($row['citation'])
{
if (empty($row['datadoi']))
{
$cit=$row['citation'];
}
elseif (!strpos($row['citation'],$row['datadoi']))
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
{
$cit='文章引用:'.$row['citation'];
$cit.="\r\n数据的引用:";