修正docAction和odtAction中数据引用方式的逻辑错误
This commit is contained in:
parent
f99e98f2c7
commit
70eb46f541
|
@ -313,12 +313,9 @@ class ServiceController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$citation=$row['mcitation'];
|
$citation=$row['mcitation'];
|
||||||
} else if ($row['citation'])
|
} else if ($row['citation'])
|
||||||
{
|
|
||||||
if (empty($row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$citation=$row['citation'];
|
$citation=$row['citation'];
|
||||||
}
|
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$citation='<li>文章引用:'.$row['citation'].'</li>';
|
$citation='<li>文章引用:'.$row['citation'].'</li>';
|
||||||
$citation.="<li>数据的引用:";
|
$citation.="<li>数据的引用:";
|
||||||
|
@ -721,12 +718,9 @@ class ServiceController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$cit=$row['mcitation'];
|
$cit=$row['mcitation'];
|
||||||
} else if ($row['citation'])
|
} else if ($row['citation'])
|
||||||
{
|
|
||||||
if (empty($row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$cit=$row['citation'];
|
$cit=$row['citation'];
|
||||||
}
|
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$cit='文章引用:'.$row['citation'];
|
$cit='文章引用:'.$row['citation'];
|
||||||
$cit.="\r\n数据的引用:";
|
$cit.="\r\n数据的引用:";
|
||||||
|
|
Loading…
Reference in New Issue