#536 修改元数据默认的doi显示
This commit is contained in:
parent
e393f8085a
commit
3f3198b355
|
@ -3667,11 +3667,12 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->uuid = $uuid;
|
||||
$this->view->data = $doi->view($uuid);
|
||||
if(empty($this->view->data))
|
||||
{
|
||||
include('data/Metadata.php');
|
||||
$md = new Metadata($this->db);
|
||||
$metadata = $md->view($uuid);
|
||||
$this->view->data['doi'] = $metadata['doi'];
|
||||
if(empty($this->view->data))
|
||||
{
|
||||
$this->view->data = array(
|
||||
'uuid'=>$uuid,
|
||||
'title'=>$metadata['title'],
|
||||
|
|
|
@ -56,8 +56,10 @@ table thead tr th {background:#EBF2F6;}
|
|||
<td><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
|
||||
<td><?= $item['doi'] ?></td>
|
||||
<td>
|
||||
<?php if(empty($item['ts_submitted'])) {?>
|
||||
<a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
|
||||
<a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">导出</a>
|
||||
<?php } ?>
|
||||
<a href="javascript:void(0);" rel="/admin/data/doi/ac/verified/uuid/<?= $item['uuid']?>" class="verified_btn">验证</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue