remomve unused link

This commit is contained in:
wlx 2012-04-23 08:06:29 +00:00
parent 470adf6657
commit 36d62c5c87
4 changed files with 5 additions and 19 deletions

View File

@ -22,7 +22,7 @@ class Admin_DataController extends Zend_Controller_Action
function syncAction()
{
set_time_limit(0);
$sql="select * from (select count(*) as westdccount from metadata) as t1,(select count(uuid) as gncount from geonetworkmetadata where schemaid='iso19115') as t2,(select count(uuid) as watergncount from watergn where schemaid='iso19115') as t3";
$sql="select * from (select count(*) as westdccount from metadata) as t1,(select count(uuid) as gncount from geonetworkmetadata where schemaid='iso19115') as t2";
$this->db->setFetchMode(Zend_Db::FETCH_OBJ);
$this->view->mdcount=$this->db->fetchRow($sql);
$source=$this->_request->getParam('source');
@ -31,8 +31,6 @@ class Admin_DataController extends Zend_Controller_Action
$list=$this->_request->getParam('list');
$adminuser=$this->_request->getParam('adminuser');
$uuid=trim($this->_request->getParam('uuid'));
if ($this->_request->isPost()) $uuid=$this->_request->getPost('uuid');
//$uuid=$this->_request->getParam('uuid');
if ($source=="geonetwork" && empty($uuid) ) {
//从geonetwork向WESTDC同步
$sql="select uuid,data,source from geonetworkmetadata where schemaid='iso19115'";

View File

@ -3,13 +3,8 @@
<li><a href="/admin/data/md">元数据管理</a></li>
<li><a href="/admin/data/comment">数据反馈管理</a></li>
<li><a href="/admin/data/reference">数据文献关联管理</a></li>
<li><a href="/admin/data/import">上传元数据文件</a></li>
<li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li>
<li><a href="/admin/data/datafileimport">导入数据目录</a></li>
<li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li>
<li><a href="/admin/data/datasetcd">特色数据集管理</a></li>
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
<li><a href="/admin/data/feature">特色推荐</a></li>
<li><a href="/admin/data/source">项目来源管理</a></li>
<li><a href="/admin/data/attachments">附件管理</a></li>
<li><a href="/admin/data/attachments">数据附件管理</a></li>
</ul>

View File

@ -23,21 +23,15 @@
</div>
<?php endif; ?>
<p>WESTDC有元数据<?php echo $this->mdcount->westdccount; ?>GEONETWORK有元数据<?php echo $this->mdcount->gncount; ?>WATER中元数据<?php echo $this->mdcount->watergncount; ?></p>
<p>WESTDC有元数据<?php echo $this->mdcount->westdccount; ?>GEONETWORK有元数据<?php echo $this->mdcount->gncount; ?>条。</p>
<p><a href="/admin/data/sync/source/geonetwork">开始同步从GEONETWORK同步到WESTDC若有冲突以GEONETWORK为准</a> </p>
<p><a href="/admin/data/sync/source/watergn">开始同步从water同步到WESTDC若有冲突以water为准</a> </p>
<p><a href="/admin/data/sync/source/westdc">开始同步从WESTDC同步到GEONETWORK</a> </p>
<p><a href="/admin/data/sync/list/water">列出WESTDC中多出的WATER元数据</a></p>
<p><a href="/admin/data/sync/delete/westdc">删除WESTDC中多出的元数据</a></p>
<p><a href="/admin/data/sync/delete/geonetwork">删除GEONETWORK中多出的元数据</a></p>
<p><a href="/admin/data/sync/delete/water">删除WESTDC中多出的WATER元数据</a></p>
<p><a href="/admin/data/sync/thumb/geonetwork">同步GEONETWORK中的缩略图</a></p>
<p><a href="/admin/data/sync/thumb/water">同步WATER中的缩略图</a></p>
<p><a href="/admin/data/sync/adminuser/geonetwork">同步帐号到GEONETWORK仅供初始化使用</a></p>
<form method="POST">
<p>指定元数据UUID: <input type="text" name="uuid"></p>
<button type="submit" name="submit">同步此元数据</button>
<button type="submit" name="watersubmit">同步WATER数据</button>
<button type="submit" name="gnsubmit">同步数据到GeoNetwork</button>
</form>
<?php if ($this->metadata) : ?>

View File

@ -1,9 +1,8 @@
<ul>
<li class="title">申请管理与在线下载记录</li>
<li class="title">数据申请管理</li>
<li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
<li><a href="/admin/down/offline">离线数据服务记录</a></li>
<li><a href="/admin/down/fixoffline">手动同步离线申请用户与网站帐号</a></li>
<li><a href="/admin/down/online">在线数据下载记录从20110908开始</a></li>
<li><a href="/admin/down/online">在线数据下载记录</a></li>
<li><a href="/admin/down/user">用户下载记录</a></li>
<li><a href="/admin/down/data">数据下载记录</a></li>
</ul>