2013-04-24 10:35:53 +00:00
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/author.css');
$this->theme->AppendPlus($this,'colorbox');
2014-06-24 10:20:36 +00:00
$this->breadcrumb('< a href = "/" > Home< / a > ');
$this->breadcrumb('< a href = "/author" > Author< / a > ');
$this->breadcrumb('Submit data');
2013-04-24 10:35:53 +00:00
$this->breadcrumb()->setSeparator(' > ');
?>
< div class = "row" >
< div class = "span3" >
<? = $this -> partial ( 'author/navi.phtml' ); ?>
< / div >
< div class = "span9" >
< div >
< ul class = "nav nav-pills" >
2014-06-24 10:20:36 +00:00
< li class = "" > < a href = "/author/newdata" > Unsubmitted< / a > < / li >
< li class = "" > < a class = "iframe" href = "/service/geonetwork?url=metadata.xmlinsert.form" > Import new metadata< / a > < / li >
< li class = "" > < a href = "/author/newdata/ac/add-by-template" > Create new metadata with templates< / a > < / li >
< li class = "active" > < a href = "/author/newdata/ac/add-by-data" > Create new metadata with existed metadata< / a > < / li >
2013-04-24 10:35:53 +00:00
< / ul >
< / div >
< div >
2014-06-24 10:20:36 +00:00
< h2 > Create new metadata with existed metadata< / h2 >
2013-04-24 10:35:53 +00:00
< div class = "input-append" >
< form id = "datasearch" class = "search_form" action = "/author/newdata/ac/add-by-data" >
< input type = "text" id = "keyword" name = "q" value = " <?php if ( ! empty ( $this -> q )) echo $this -> q ; ?> " />
2014-06-24 10:20:36 +00:00
< button type = "submit" class = "btn" id = "search_btn" > Search< / button >
2013-04-24 10:35:53 +00:00
< / form >
< / div >
<?php
if (count($this->paginator)):
echo '< ul class = "unstyled" > ';
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;
?>
< li class = "well" >
< h4 > <?php echo $item [ 'title' ]; ?> </ h4 >
2014-06-24 10:20:36 +00:00
< p > [< a href = "/service/geonetwork?url=metadata.create?group=2 <?php echo urlencode ( '&id=' . $item [ 'gid' ]); ?> " target = "_blank" > Create new metadata based on this data</ a >
| < a href = "/data/ <?php echo $item [ 'uuid' ]; ?> " target = "_blank" > View data</ a > ]</ p >
2013-04-24 10:35:53 +00:00
< p > <?php echo mb_strlen ( $item [ 'description' ]) > 400 ? $this -> escape ( mb_substr ( $item [ 'description' ], 0 , 400 , 'UTF-8' ) . '...' ) : $this -> escape ( $item [ 'description' ]); ?> </ p >
< / li >
<?php
endforeach;
echo "< / ul > ";
endif; ?>
< / div >
< div class = "pagenavi" > <? = $this -> paginator ; ?> </ div >
< / div >
< / div >
< script >
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$('#wapper').width($('body').width()-300);
2012-05-04 16:26:03 +00:00
< / script >