From 194babb8ab705a0f5ee6850c662c1c61c0a5a275 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 25 Dec 2012 08:23:19 +0000 Subject: [PATCH] =?UTF-8?q?#408=20=E5=AE=8C=E5=96=84=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E7=89=88=E5=85=83=E6=95=B0=E6=8D=AE=E6=8F=90=E4=BA=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/AuthorController.php | 15 +++- .../views/scripts/author/metadata-new.phtml | 82 ++++++++++++++++--- 2 files changed, 81 insertions(+), 16 deletions(-) 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{ ?>
- - + + ' - + ' ' + + ' ' + + ' ' + '