仅在未放入评审库中的数据显示对应链接
This commit is contained in:
parent
14711b1af0
commit
e9701f7bbe
|
@ -388,7 +388,8 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('metadata')
|
$select->from('metadata')
|
||||||
->joinLeft('mdstat','metadata.uuid=mdstat.uuid','viewed')
|
->joinLeft('mdstat','metadata.uuid=mdstat.uuid','viewed')
|
||||||
->joinLeft('geonetworkmetadata','geonetworkmetadata.uuid=metadata.uuid','id as gid')
|
->joinLeft('geonetworkmetadata','geonetworkmetadata.uuid=metadata.uuid','id as gid')
|
||||||
|
->joinLeft('mdstatus','metadata.uuid=mdstatus.uuid','status as mdstatus')
|
||||||
->order('metadata.id desc');
|
->order('metadata.id desc');
|
||||||
$paginator = Zend_Paginator::factory($select);
|
$paginator = Zend_Paginator::factory($select);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
|
|
|
@ -44,7 +44,11 @@
|
||||||
,查看:<?= $item['viewed']; ?>次。 操作:
|
,查看:<?= $item['viewed']; ?>次。 操作:
|
||||||
<a href="<?= $this->config->geonetwork->url; ?>srv/cn/metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a>
|
<a href="<?= $this->config->geonetwork->url; ?>srv/cn/metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a>
|
||||||
<a href="/admin/data/md/delete/<?= $item['id']; ?>">删除</a>
|
<a href="/admin/data/md/delete/<?= $item['id']; ?>">删除</a>
|
||||||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> <a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> <a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a>]</li>
|
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> <a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a>
|
||||||
|
<?php if (!is_numeric($item['mdstatus'])) : ?>
|
||||||
|
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
]</li>
|
||||||
<li>数据贡献者:<?= $item['author']; ?></li>
|
<li>数据贡献者:<?= $item['author']; ?></li>
|
||||||
<li><?= $item['description']; ?></li>
|
<li><?= $item['description']; ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue