2009-03-06 03:20:46 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
|
$this->breadcrumb('同步GEONETWORK元数据</a>');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
?>
|
|
|
|
|
<div id="leftPanel">
|
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="rightPanel">
|
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
|
<div id="message">
|
|
|
|
|
<?php if ($this->msg) : ?>
|
|
|
|
|
<p><?php echo $this->msg; ?></p>
|
|
|
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
|
|
|
<p><?php echo $msg; ?></p>
|
|
|
|
|
<?php endforeach;endif; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2012-05-15 03:00:01 +00:00
|
|
|
|
<p>WESTDC有元数据<?php echo $this->mdcount->westdccount; ?>条,GEONETWORK有元数据<?php echo $this->mdcount->gncount; ?>条。</p>
|
2009-03-06 03:20:46 +00:00
|
|
|
|
<p><a href="/admin/data/sync/source/geonetwork">开始同步:从GEONETWORK同步到WESTDC,若有冲突,以GEONETWORK为准</a> </p>
|
2011-09-19 15:12:35 +00:00
|
|
|
|
<p><a href="/admin/data/sync/source/westdc">开始同步:从WESTDC同步到GEONETWORK</a> </p>
|
2012-05-15 03:00:01 +00:00
|
|
|
|
<p><a href="/admin/data/sync/list/westdc">列出WESTDC中多出的数据</a></p>
|
|
|
|
|
<p><a href="/admin/data/sync/list/geonetwork">列出GeoNetwork中多出的元数据</a></p>
|
2009-03-06 03:20:46 +00:00
|
|
|
|
<p><a href="/admin/data/sync/delete/westdc">删除WESTDC中多出的元数据</a></p>
|
2011-10-25 07:34:26 +00:00
|
|
|
|
<p><a href="/admin/data/sync/delete/geonetwork">删除GEONETWORK中多出的元数据</a></p>
|
2009-03-06 03:20:46 +00:00
|
|
|
|
<p><a href="/admin/data/sync/thumb/geonetwork">同步GEONETWORK中的缩略图</a></p>
|
|
|
|
|
<form method="POST">
|
|
|
|
|
<p>指定元数据UUID: <input type="text" name="uuid"></p>
|
2010-07-04 11:00:26 +00:00
|
|
|
|
<button type="submit" name="submit">同步此元数据</button>
|
2011-09-20 07:23:02 +00:00
|
|
|
|
<button type="submit" name="gnsubmit">同步数据到GeoNetwork</button>
|
2010-06-22 03:37:08 +00:00
|
|
|
|
</form>
|
|
|
|
|
<?php if ($this->metadata) : ?>
|
|
|
|
|
<ul>
|
2012-05-15 03:00:01 +00:00
|
|
|
|
<?php foreach ($this->metadata as $md) :
|
|
|
|
|
if (empty($md->id)) :
|
|
|
|
|
?>
|
2010-06-22 03:37:08 +00:00
|
|
|
|
<li><a href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title;?></a></li>
|
2012-05-15 03:00:01 +00:00
|
|
|
|
<?php else : ?>
|
|
|
|
|
<li><a href="/service/geonetwork?url=metadata.show?id=<?php echo $md->id; ?>"><?php echo $md->title;?></a></li>
|
|
|
|
|
<?php endif;endforeach; ?>
|
2010-06-22 03:37:08 +00:00
|
|
|
|
</ul>
|
|
|
|
|
<?php endif; ?>
|
2009-03-06 03:20:46 +00:00
|
|
|
|
</div>
|