From b4eb767e6c247c495977f69b7f84b1a404352ac6 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 9 Jan 2015 09:55:49 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=A0=87=E9=A2=98=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/views/scripts/data/doi-add.phtml | 2 +- application/models/data/Doi.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/application/admin/views/scripts/data/doi-add.phtml b/application/admin/views/scripts/data/doi-add.phtml index 4248255f..06037e85 100644 --- a/application/admin/views/scripts/data/doi-add.phtml +++ b/application/admin/views/scripts/data/doi-add.phtml @@ -65,7 +65,7 @@ $this->theme->AppendPlus($this,'colorbox');
- " class="form-control"/> +
diff --git a/application/models/data/Doi.php b/application/models/data/Doi.php index a0f89592..46a26f75 100644 --- a/application/models/data/Doi.php +++ b/application/models/data/Doi.php @@ -108,9 +108,6 @@ class Doi extends Zend_Controller_Plugin_Abstract }else{ $condition = " uuid='$uuid' "; } - $data['publisher']=''; - $data['title_en']=$data['title']; - $data['title']=''; $sql="update $this->tbl_doi set doi='".$data['doi']."',uuid='".$data['uuid']."', url='".$data['url']."',title_en='".$data['title_en']."',publisher_en='".$data['publisher_en'] ."',author_en='".$data['author_en']."',organization_en=array[".$data['organization_en']."] where ".$condition; @@ -155,7 +152,7 @@ class Doi extends Zend_Controller_Plugin_Abstract $info[$k] = array( 'author_en'=>str_replace("\"","",$authors_en[$k]), 'organization_en'=>str_replace("\"","",$orgs_en[$k]), - 'order'=> count($authors)+$k + 'order'=> count($authors_en)+$k ); } return $info;