fix newdata url problem, change import function with colorbox
This commit is contained in:
parent
18792dd47f
commit
33965950e1
|
@ -4,6 +4,8 @@ $this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||||
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('新建数据');
|
$this->breadcrumb('新建数据');
|
||||||
|
@ -22,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div id="tabs-controller">
|
<div id="tabs-controller">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,7 +34,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<h2>根据预制元数据模板创建数据</h2>
|
<h2>根据预制元数据模板创建数据</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($this->templates as $item) : ?>
|
<?php foreach ($this->templates as $item) : ?>
|
||||||
<li><a href="/service/geonetwork?metadata.create?group=2&id=<?php echo $item['id']; ?>" target="_blank"><?php echo $item['title']; ?></a></li>
|
<li><a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank"><?php echo $item['title']; ?></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -50,7 +52,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<p><span class="title"><?php echo $item['title'];?></span>
|
<p><span class="title"><?php echo $item['title'];?></span>
|
||||||
【<a href="/service/geonetwork?metadata.create?group=2&id=<?php echo $item['gid']; ?>">以此为模板新建</a>
|
【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>">以此为模板新建</a>
|
||||||
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a>】</p>
|
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a>】</p>
|
||||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||||
</li>
|
</li>
|
||||||
|
@ -63,5 +65,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
<!-- //页面内容 -->
|
||||||
<script>
|
<script>
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
$('#wapper').width($('body').width()-300);
|
$('#wapper').width($('body').width()-300);
|
||||||
</script>
|
</script>
|
|
@ -22,7 +22,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div id="tabs-controller">
|
<div id="tabs-controller">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,6 +4,8 @@ $this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||||
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('新建数据');
|
$this->breadcrumb('新建数据');
|
||||||
|
@ -22,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div id="tabs-controller">
|
<div id="tabs-controller">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
||||||
<li class="box-shadow active">单条元数据查看</li>
|
<li class="box-shadow active">单条元数据查看</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -35,5 +37,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
<!-- //页面内容 -->
|
||||||
<script>
|
<script>
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
$('#wapper').width($('body').width()-300);
|
$('#wapper').width($('body').width()-300);
|
||||||
</script>
|
</script>
|
|
@ -24,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div id="tabs-controller">
|
<div id="tabs-controller">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,8 +39,8 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<p><span class="title"><?php echo $item['title'];?></span>
|
<p><span class="title"><?php echo $item['title'];?></span>
|
||||||
【<a href="/service/geonetwork?metadata.show?id=<?php echo $item['id']; ?>">在geonetwork里查看</a>
|
【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>">在geonetwork里查看</a>
|
||||||
| <a href="/service/geonetwork?metadata.edit?id=<?php echo $item['id']; ?>">在geonetwork里修改</a>
|
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>">在geonetwork里修改</a>
|
||||||
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||||
】</p>
|
】</p>
|
||||||
</li>
|
</li>
|
||||||
|
@ -83,6 +83,7 @@ function action(ac,id){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$(".inline").colorbox({inline:true, width:"50%"});
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
function commit(id){
|
function commit(id){
|
||||||
action('commit&changelog='+$('#changelog').val(),id);
|
action('commit&changelog='+$('#changelog').val(),id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue