#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->uuid = $uuid;
|
||||||
$this->view->data = $doi->view($uuid);
|
$this->view->data = $doi->view($uuid);
|
||||||
|
include('data/Metadata.php');
|
||||||
|
$md = new Metadata($this->db);
|
||||||
|
$metadata = $md->view($uuid);
|
||||||
|
$this->view->data['doi'] = $metadata['doi'];
|
||||||
if(empty($this->view->data))
|
if(empty($this->view->data))
|
||||||
{
|
{
|
||||||
include('data/Metadata.php');
|
|
||||||
$md = new Metadata($this->db);
|
|
||||||
$metadata = $md->view($uuid);
|
|
||||||
$this->view->data = array(
|
$this->view->data = array(
|
||||||
'uuid'=>$uuid,
|
'uuid'=>$uuid,
|
||||||
'title'=>$metadata['title'],
|
'title'=>$metadata['title'],
|
||||||
|
|
|
@ -56,8 +56,10 @@ table thead tr th {background:#EBF2F6;}
|
||||||
<td><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
|
<td><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
|
||||||
<td><?= $item['doi'] ?></td>
|
<td><?= $item['doi'] ?></td>
|
||||||
<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/edit/uuid/<?= $item['uuid']?>">编辑</a>
|
||||||
<a href="/admin/data/doi/ac/convert/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);" 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>
|
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue