#536 修改元数据默认的doi显示
This commit is contained in:
parent
e393f8085a
commit
3f3198b355
|
@ -209,7 +209,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$add=(int)$this->_getParam('add');
|
$add=(int)$this->_getParam('add');
|
||||||
$edit=(int)$this->_getParam('edit');
|
$edit=(int)$this->_getParam('edit');
|
||||||
$delete=(int)$this->_getParam('delete');
|
$delete=(int)$this->_getParam('delete');
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
if ($add) {
|
if ($add) {
|
||||||
$form=new DatasetcdForm();
|
$form=new DatasetcdForm();
|
||||||
|
@ -3626,7 +3626,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$ac = $this->_getParam('ac');
|
$ac = $this->_getParam('ac');
|
||||||
$submit = $this->_getParam('submit');
|
$submit = $this->_getParam('submit');
|
||||||
$uuid = $this->_getParam('uuid');
|
$uuid = $this->_getParam('uuid');
|
||||||
$q=$this->_getParam('q');
|
$q=$this->_getParam('q');
|
||||||
|
|
||||||
include_once("data/Doi.php");
|
include_once("data/Doi.php");
|
||||||
|
@ -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