#569 添加了是否发布的情况区分,未发布时doi标题可修改,并且读取元数据的标题作为默认内容
This commit is contained in:
parent
fd1a7260af
commit
7ccd999fd5
|
@ -4000,6 +4000,11 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}else{
|
||||
$this->view->data['doi'] = $metadata['doi'];
|
||||
$this->view->data['info'] = $doi->data_process_out($this->view->data);
|
||||
if(empty($this->view->data['ts_published']))
|
||||
{
|
||||
$this->view->data['title'] = $metadata['title'];
|
||||
$this->view->data['title_en'] = $metadata['title_en'];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$this->view->data = $doi->view($uuid);
|
||||
|
|
|
@ -57,13 +57,15 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="title">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
<input type="text" id="title" name="title" <?= !empty($this->data['ts_published']) ? 'readonly="readonly"':""?>
|
||||
value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title_en">英文标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
<input type="text" id="title_en" name="title_en" <?= !empty($this->data['ts_published']) ? 'readonly="readonly"':""?>
|
||||
value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
|
Loading…
Reference in New Issue