add doi default value

This commit is contained in:
wlx 2013-04-23 15:07:44 +00:00
parent 0af6ccfe94
commit d2e3a4ad33
2 changed files with 3 additions and 2 deletions

View File

@ -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'),
);
}

View File

@ -35,7 +35,7 @@ $this->theme->AppendPlus($this,'colorbox');
<div class="control-group">
<label class="control-label" for="doi">doi</label>
<div class="controls">
<input type="text" id="doi" name="doi" value="<?= isset($this->data['doi']) ? $this->data['doi']:"doi:10.3972/..db" ?>" />
<input type="text" id="doi" name="doi" value="<?= isset($this->data['doi']) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
</div>
</div>
<div class="control-group">