更新后台数据作者的分平台限制
This commit is contained in:
parent
610ebbe454
commit
ec3c7068c8
|
@ -1902,6 +1902,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
$ac = $this->_getParam('ac');
|
$ac = $this->_getParam('ac');
|
||||||
$uuid = $this->_getParam('uuid');
|
$uuid = $this->_getParam('uuid');
|
||||||
|
$submd=$this->view->config->sub->metadata;
|
||||||
|
|
||||||
if(empty($ac) && empty($uuid))
|
if(empty($ac) && empty($uuid))
|
||||||
{
|
{
|
||||||
|
@ -1910,7 +1911,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
if(!empty($keywords))
|
if(!empty($keywords))
|
||||||
$this->view->q = $keywords;
|
$this->view->q = $keywords;
|
||||||
|
|
||||||
$sql = "select md.id,md.title,md.uuid,count(a.userid) as c from metadata md
|
$sql = "select md.id,md.title,md.uuid,count(a.userid) as c from $submd md
|
||||||
right JOIN mdauthor a ON md.uuid=a.uuid
|
right JOIN mdauthor a ON md.uuid=a.uuid
|
||||||
";
|
";
|
||||||
|
|
||||||
|
@ -2043,7 +2044,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT a.*,md.title,u.realname,u.username FROM mdauthor a
|
$sql = "SELECT a.*,md.title,u.realname,u.username FROM mdauthor a
|
||||||
LEFT JOIN metadata md ON a.uuid=md.uuid
|
LEFT JOIN $submd md ON a.uuid=md.uuid
|
||||||
LEFT JOIN users u ON a.userid=u.id
|
LEFT JOIN users u ON a.userid=u.id
|
||||||
WHERE md.uuid=?
|
WHERE md.uuid=?
|
||||||
ORDER BY a.id DESC
|
ORDER BY a.id DESC
|
||||||
|
@ -2113,7 +2114,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
$sql = "SELECT u.id,u.realname,u.email,count(a.id) as d FROM mdauthor a
|
$sql = "SELECT u.id,u.realname,u.email,count(a.id) as d FROM mdauthor a
|
||||||
LEFT JOIN users u ON a.userid=u.id
|
LEFT JOIN users u ON a.userid=u.id
|
||||||
WHERE a.status>0
|
WHERE a.status>0 and uuid in (select uuid from $submd)
|
||||||
GROUP BY u.id,u.realname,u.email
|
GROUP BY u.id,u.realname,u.email
|
||||||
ORDER BY u.id DESC";
|
ORDER BY u.id DESC";
|
||||||
|
|
||||||
|
@ -2137,7 +2138,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$id = $this->_getParam('id');
|
$id = $this->_getParam('id');
|
||||||
|
|
||||||
$sql = "SELECT md.title,md.uuid FROM mdauthor a
|
$sql = "SELECT md.title,md.uuid FROM mdauthor a
|
||||||
LEFT JOIN metadata md ON a.uuid=md.uuid
|
LEFT JOIN $submd md ON a.uuid=md.uuid
|
||||||
WHERE a.userid=? AND a.status>0
|
WHERE a.userid=? AND a.status>0
|
||||||
ORDER BY a.ts_created";
|
ORDER BY a.ts_created";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
|
@ -2158,7 +2159,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
if(!empty($keywords))
|
if(!empty($keywords))
|
||||||
$this->view->q = $keywords;
|
$this->view->q = $keywords;
|
||||||
|
|
||||||
$sql = "select md.id,md.title,md.uuid,count(a.userid) as c from metadata md
|
$sql = "select md.id,md.title,md.uuid,count(a.userid) as c from $submd md
|
||||||
left JOIN mdauthor a ON md.uuid=a.uuid
|
left JOIN mdauthor a ON md.uuid=a.uuid
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
操作:
|
操作:
|
||||||
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
||||||
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
||||||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
|
||||||
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
|
||||||
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
||||||
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
|
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
|
||||||
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
|
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
|
||||||
|
@ -66,7 +64,6 @@
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
||||||
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
|
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
|
||||||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a> |
|
|
||||||
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
|
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
|
||||||
</p>
|
</p>
|
||||||
<?php if($item['author']) :?>
|
<?php if($item['author']) :?>
|
||||||
|
|
Loading…
Reference in New Issue