diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index 5f298323..a63b4315 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -3534,10 +3534,13 @@ class AuthorController extends Zend_Controller_Action else{ $this->view->uuid = $uuid; - $datas = $md->getRecord($uid,$uuid); - $data = json_decode($datas['content']); - $this->view->data = $data; - return true; + if(!empty($uuid)){ + + $datas = $md->getRecord($uid,$uuid); + $data = json_decode($datas['content']); + $this->view->data = $data; + return true; + } } }//创建元数据页面 @@ -3676,6 +3679,10 @@ class AuthorController extends Zend_Controller_Action if($rs !== false) { + if(!empty($commit)) + { + $data = array("uuid"=>$rs,"submit"=>$commit); + } $this->jsonexit(array("uuid"=>$rs)); return true; }else{ diff --git a/application/default/views/scripts/author/metadata-new.phtml b/application/default/views/scripts/author/metadata-new.phtml index a51dc9be..864d7962 100644 --- a/application/default/views/scripts/author/metadata-new.phtml +++ b/application/default/views/scripts/author/metadata-new.phtml @@ -155,14 +155,17 @@ $this->breadcrumb()->setSeparator(' > ');
Field['reference']['FieldName_temp']; ?> - data->$F['reference'])>0) + data->$F['reference']) && count($this->data->$F['reference'])>0) { foreach($this->data->$F['reference'] as $k=>$v) {?> + +
@@ -204,8 +207,8 @@ $this->breadcrumb()->setSeparator(' > '); }else{ ?>
- - + + ' - + ' ' + + ' ' + + ' ' + '