实现从元数据列表的同步单条功能
This commit is contained in:
parent
84a9e43db2
commit
2c222af728
|
@ -93,6 +93,13 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
} elseif (!empty($uuid) && isset($_POST['watersubmit'])) {
|
||||
//同步单条元数据
|
||||
$sql=$this->db->quoteInto("select data from watergn where uuid=?",$uuid);
|
||||
if ($rs=$this->db->fetchRow($sql)) {
|
||||
$this->import($rs->data);
|
||||
$this->view->msg='成功同步元数据:'.$uuid;
|
||||
} else $this->view->msg='不存在此元数据:'.$uuid;
|
||||
} elseif (!empty($uuid)) {
|
||||
//同步单条元数据
|
||||
$sql=$this->db->quoteInto("select data from geonetworkmetadata where uuid=?",$uuid);
|
||||
if ($rs=$this->db->fetchRow($sql)) {
|
||||
$this->import($rs->data);
|
||||
$this->view->msg='成功同步元数据:'.$uuid;
|
||||
|
|
Loading…
Reference in New Issue