扩充评审状态,支持用户委托管理
This commit is contained in:
parent
ae6390c25f
commit
0995216c3a
|
@ -1771,15 +1771,15 @@ class AuthorController extends Zend_Controller_Action
|
||||||
$data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!'));
|
$data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!'));
|
||||||
$this->jsonexit($data);
|
$this->jsonexit($data);
|
||||||
return true;
|
return true;
|
||||||
} else { //说明是已发布的数据
|
} else { //说明是已发布的数据且数据不存在评审信息
|
||||||
//同步元数据
|
//同步元数据
|
||||||
$iso=new ISO19115();
|
$iso=new ISO19115();
|
||||||
$iso->saveDB($this->db,$row['xml']);
|
$iso->saveDB($this->db,$row['xml']);
|
||||||
//移除中间版本
|
//移除中间版本
|
||||||
$sql="delete from mdversion where uuid in (select uuid from mdversion where v.id=?) and char_length(changelog)<3";
|
$sql="delete from mdversion where uuid in (select uuid from mdversion where v.id=?) and char_length(changelog)<3";
|
||||||
$this->db->query($sql,array($id));
|
$this->db->query($sql,array($id));
|
||||||
//修改评审状态为发布
|
//修改评审状态为发布,且由其提交的用户进行管理
|
||||||
$sql="insert into mdstatus (uuid,status,userid) select uuid,5,? from mdversion where id=?";
|
$sql="insert into mdstatus (uuid,status,userid) select uuid,6,? from mdversion where id=?";
|
||||||
$this->db->query($sql,array($u_id,$id));
|
$this->db->query($sql,array($u_id,$id));
|
||||||
|
|
||||||
//email to admin & author
|
//email to admin & author
|
||||||
|
@ -1938,7 +1938,7 @@ class AuthorController extends Zend_Controller_Action
|
||||||
$this->jsonexit($data);
|
$this->jsonexit($data);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if ($row['id']==5)//数据已经发布,再次修改后将只通知管理员,保留发布状态
|
else if ($row['id']>=5)//数据已经发布,再次修改后将只通知管理员,保留发布状态
|
||||||
{
|
{
|
||||||
//同步元数据
|
//同步元数据
|
||||||
$iso=new ISO19115();
|
$iso=new ISO19115();
|
||||||
|
|
Loading…
Reference in New Issue