From d2e3a4ad33e49ebe0f47371e51400fecaa5e1c93 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 23 Apr 2013 15:07:44 +0000 Subject: [PATCH] add doi default value --- application/admin/controllers/DataController.php | 3 ++- application/admin/views/scripts/data/doi-add.phtml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 1f22b829..7aa572c8 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -3578,7 +3578,8 @@ class Admin_DataController extends Zend_Controller_Action $this->view->data = array( 'uuid'=>$uuid, 'title'=>$metadata['title'], - 'url'=>"http://" . $_SERVER['HTTP_HOST'].'/data/uuid/'.$uuid, + 'doi'=>$metadata['doi'], + 'url'=>"http://" . $_SERVER['HTTP_HOST'].'/data/'.$uuid, 'publisher'=>view::User('realname'), ); } diff --git a/application/admin/views/scripts/data/doi-add.phtml b/application/admin/views/scripts/data/doi-add.phtml index 04e702e3..14407c3f 100644 --- a/application/admin/views/scripts/data/doi-add.phtml +++ b/application/admin/views/scripts/data/doi-add.phtml @@ -35,7 +35,7 @@ $this->theme->AppendPlus($this,'colorbox');
- " /> + " />