同步source属性

This commit is contained in:
wlx 2010-06-22 06:42:15 +00:00
parent 886d37a0a2
commit e99566821b
1 changed files with 4 additions and 3 deletions

View File

@ -38,14 +38,16 @@ class Admin_DataController extends Zend_Controller_Action
$rs=$this->db->fetchAll($sql);
foreach($rs as $gmd) {
$this->import($gmd->data);
$this->db->query("update metadata set source=? where uuid=?",array($gmd->source,$gmd->uuid));
}
$this->view->msg='成功同步元数据!';
} elseif ($source=="watergn" && empty($uuid) ) {
//同步黑河遥感实验的元数据
$sql="select uuid,data from watergn where schemaid='iso19115'";
$sql="select uuid,data,source from watergn where schemaid='iso19115'";
$rs=$this->db->fetchAll($sql);
foreach($rs as $gmd) {
$this->import($gmd->data);
$this->import($gmd->data);
$this->db->query("update metadata set source=? where uuid=?",array($gmd->source,$gmd->uuid));
}
$this->view->msg='成功同步黑河遥感综合实验元数据!';
} elseif (!empty($uuid)) {
@ -707,7 +709,6 @@ class Admin_DataController extends Zend_Controller_Action
$row->suppinfo=$iso->suppinfo;
$row->fileformat=$iso->fileformat;
$row->projection=$iso->projection;
$row->source=$iso->source;
//$row->author=$iso->author;
$row->datatype=$iso->datatype;
$row->filesize=$iso->filesize;