实现从元数据列表的同步单条功能

This commit is contained in:
wlx 2011-09-20 08:43:48 +00:00
parent 84a9e43db2
commit 2c222af728
1 changed files with 7 additions and 0 deletions

View File

@ -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;