修复编辑中的标题缺失问题
This commit is contained in:
parent
b930363955
commit
b4eb767e6c
|
@ -65,7 +65,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<div class="form-group">
|
||||
<label class="col-md-2 col-sm-2 control-label" for="title">标题</label>
|
||||
<div class="col-md-10 col-sm-10">
|
||||
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" class="form-control"/>
|
||||
<input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:$this->data['title'] ?>" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -108,9 +108,6 @@ class Doi extends Zend_Controller_Plugin_Abstract
|
|||
}else{
|
||||
$condition = " uuid='$uuid' ";
|
||||
}
|
||||
$data['publisher']='';
|
||||
$data['title_en']=$data['title'];
|
||||
$data['title']='';
|
||||
$sql="update $this->tbl_doi set doi='".$data['doi']."',uuid='".$data['uuid']."',
|
||||
url='".$data['url']."',title_en='".$data['title_en']."',publisher_en='".$data['publisher_en']
|
||||
."',author_en='".$data['author_en']."',organization_en=array[".$data['organization_en']."] where ".$condition;
|
||||
|
@ -155,7 +152,7 @@ class Doi extends Zend_Controller_Plugin_Abstract
|
|||
$info[$k] = array(
|
||||
'author_en'=>str_replace("\"","",$authors_en[$k]),
|
||||
'organization_en'=>str_replace("\"","",$orgs_en[$k]),
|
||||
'order'=> count($authors)+$k
|
||||
'order'=> count($authors_en)+$k
|
||||
);
|
||||
}
|
||||
return $info;
|
||||
|
|
Loading…
Reference in New Issue