From 85c153458bc49ae3c0a02348ef31721daae78250 Mon Sep 17 00:00:00 2001
From: wlx
Date: Sun, 25 Sep 2011 09:32:29 +0000
Subject: [PATCH] remove unused controller and views
---
.../controllers/MetadataController.php | 597 ------------------
.../views/scripts/metadata/batchimport.phtml | 18 -
.../views/scripts/metadata/browse.phtml | 29 -
.../views/scripts/metadata/category.phtml | 40 --
.../views/scripts/metadata/delete.phtml | 15 -
.../views/scripts/metadata/import.phtml | 24 -
.../views/scripts/metadata/index.phtml | 66 --
.../default/views/scripts/metadata/map.phtml | 62 --
.../views/scripts/metadata/search.phtml | 48 --
.../views/scripts/metadata/series.phtml | 36 --
.../default/views/scripts/metadata/tag.phtml | 51 --
.../views/scripts/metadata/thumb.phtml | 4 -
.../views/scripts/metadata/timeline.phtml | 87 ---
.../views/scripts/metadata/tools.phtml | 10 -
.../default/views/scripts/metadata/view.phtml | 134 ----
15 files changed, 1221 deletions(-)
delete mode 100755 application/default/controllers/MetadataController.php
delete mode 100755 application/default/views/scripts/metadata/batchimport.phtml
delete mode 100755 application/default/views/scripts/metadata/browse.phtml
delete mode 100755 application/default/views/scripts/metadata/category.phtml
delete mode 100755 application/default/views/scripts/metadata/delete.phtml
delete mode 100755 application/default/views/scripts/metadata/import.phtml
delete mode 100755 application/default/views/scripts/metadata/index.phtml
delete mode 100755 application/default/views/scripts/metadata/map.phtml
delete mode 100755 application/default/views/scripts/metadata/search.phtml
delete mode 100755 application/default/views/scripts/metadata/series.phtml
delete mode 100755 application/default/views/scripts/metadata/tag.phtml
delete mode 100755 application/default/views/scripts/metadata/thumb.phtml
delete mode 100755 application/default/views/scripts/metadata/timeline.phtml
delete mode 100755 application/default/views/scripts/metadata/tools.phtml
delete mode 100755 application/default/views/scripts/metadata/view.phtml
diff --git a/application/default/controllers/MetadataController.php b/application/default/controllers/MetadataController.php
deleted file mode 100755
index b8db5ed0..00000000
--- a/application/default/controllers/MetadataController.php
+++ /dev/null
@@ -1,597 +0,0 @@
-_helper->viewRenderer->setNoRender();
- $this->_helper->layout->disableLayout();
- }
- function postDispatch()
- {
- $this->view->config = Zend_Registry::get('config');
- }
- function indexAction()
- {
- $md = new MetadataTable();
- $db=$md->getAdapter();
- //序列
- $state=$db->query('select s.id,name,count(*) from series s,dataseries d where d.sid=s.id group by s.id,s.name');
- $this->view->serie=$state->fetchAll();
- //分类
- $state=$db->query('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
- $this->view->category=$state->fetchAll();
- //关键词
- $state=$db->query('select keyword,count(*),keytype from keyword group by keyword,keytype order by keytype,count desc');
- $this->view->keywords=$state->fetchAll();
- //最新10个入库数据
- $state=$db->query('select id,title from metadata order by id desc limit 10');
- $this->view->metadata = $state->fetchAll();
- //特色数据
-
-
- //其他连接
- }
- /*
- * 数据浏览
- */
- function browseAction()
- {
- $md=new MetadataTable();
- $db=$md->getAdapter();
- $page=(int)$this->_request->getParam('page');
- if (empty($page)) $page=1;
- $limit=10;
- $offset=$limit*($page-1);
- $state=$db->query('select count(*) from metadata');
- $row=$state->fetchAll();
- $sum=$row[0]['count'];
- $select=$db->select();
- $select->from('metadata','*')->order('id desc')->limitPage($page,$limit);
- $this->view->metadata = $db->fetchAll($select);
- $this->view->page=new Pagination($sum,$page,$limit);
- }
- function tagAction()
- {
- $id = (int)$this->_request->getParam('id');
- $key = $this->_request->getParam('key');
- $md=new KeywordTable();
- $db=$md->getAdapter();
- $state=$db->query('select keyword,count(*),keytype from keyword group by keyword,keytype order by keytype,count desc');
- $this->view->keywords=$state->fetchAll();
- if ($id>0 or !empty($key)) {
- if (empty($key)) {
- $where=$db->quoteInto('id = ?',$id);
- $row=$md->fetchRow($where);
- $key=$row->name;
- }
- $this->view->codename=$key;
- $sql=$db->quoteInto('select m.* from metadata m,keyword k where m.id=k.id and k.keyword=?',$key);
- $state=$db->query($sql);
- $this->view->metadata=$state->fetchAll();
- }
- }
- /*
- * 数据集序列浏览
- */
- function seriesAction()
- {
- $id = (int)$this->_request->getParam('id');
- $md=new SeriesTable();
- $db=$md->getAdapter();
- $state=$db->query('select s.id,name,count(*) from series s,dataseries d where d.sid=s.id group by s.id,s.name');
- $this->view->serie=$state->fetchAll();
- if ($id>0) {
- $where=$db->quoteInto('id = ?',$id);
- $row=$md->fetchRow($where);
- $this->view->codename=$row->name;
- $sql='select m.* from metadata m,dataseries d where m.id=d.id and d.sid=?';
- $state=$db->query($sql,array($id));
- $this->view->metadata = $state->fetchAll();
- } else {
- //提供全部数据集序列列表
- }
- }
- /*
- * 分类浏览模式
- */
- function categoryAction()
- {
- $code = (int)$this->_request->getParam('code');
- $md=new CategoryCodeTable();
- $db=$md->getAdapter();
- $state=$db->query('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
- $this->view->category=$state->fetchAll();
- if ($code>0 && $code<20) {
- $where=$db->quoteInto('code = ?',$code);
- $row=$md->fetchRow($where);
- $this->view->codename=(empty($row->name_zh)?$row->name:$row->name_zh);
- $sql='select m.* from metadata m,category c where m.id=c.id and c.code=?';
- $state=$db->query($sql,array($code));
- $this->view->metadata = $state->fetchAll();
- } else {
- //提供全部分类列表
- }
- }
- /*
- * 时间浏览方式
- * todo:实现xml的缓存
- */
- function timelineAction()
- {
- $dateformat="D M j Y G:i:s O";
- $md = new MetadataTable();
- $db=$md->getAdapter();
- $state=$db->query('select id,title,description,timebegin,timeend from metadata where timebegin is not null');
- $rows=$state->fetchAll();
- $timexml='';
- foreach($rows as $row) {
- $timexml.=''.$row['description'].'';
- }
- $timexml.='';
- $fp=fopen('time.xml','w');
- fwrite($fp,$timexml);
- fclose($fp);
- $this->_helper->layout->disableLayout();
- }
- /*
- * todo:空间浏览
- */
- function mapAction()
- {
- //use json & openlayers?
- $id=(int)$this->_request->getParam('id');
- if ($id>0) $this->view->params="/id/$id";
- }
- /*
- * 产生geojson数据
- */
- function jsonAction()
- {
- $md=new MetadataTable();
- $db=$md->getAdapter();
- $id = (int)$this->_request->getParam('id');
- $where='';
- if (!empty($id)) { $where=' where id='.$id; }
- $sql='select id,west,south,north,east,title from metadata'.$where;
- $state=$db->query($sql);
- $rows=$state->fetchAll();
- $geomd=new GeoMetaData();
- foreach($rows as $row){
- if ($id)
- $box=new GeoBox($row['west'],$row['south'],$row['east'],$row['north']);
- else
- $box=new GeoBoxLine($row['west'],$row['south'],$row['east'],$row['north']);
- $feature=new Geofeature();
- $feature->id=$row['id'];
- $feature->addProperties('title',$row['title']);
- $feature->geometry=$box;
- $geomd->addFeature($feature);
- }
- $this->_helper->json($geomd);
- }
- /*
- * 返回XML源文件
- */
- function xmlAction()
- {
- $id=(int)$this->_request->getParam('id');
- $xml=new XmlTable();
- $db=$xml->getAdapter();
- $where=$db->quoteInto('id=?',$id);
- $order='id desc';
- $row=$xml->fetchRow($where,$order);
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
- $this->getResponse()->setHeader('Content-Type', 'text/xml')
- ->setBody($row->data);
- }
- function detailAction()
- {
- $id=(int)$this->_request->getParam('id');
- $xml=new XmlTable();
- $db=$xml->getAdapter();
- $where=$db->quoteInto('id=?',$id);
- $order='id desc';
- $row=$xml->fetchRow($where,$order);
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
- //Zend_Debug::dump($row->data,'xml');
- $this->getResponse()->setHeader('Content-Type', 'text/xml')
- ->setBody($row->data);
- }
- /*
- * todo: search
- */
- function searchAction()
- {
- $md=new MetadataTable();
- $db=$md->getAdapter();
- $page=(int)$this->_request->getParam('page');
- if (empty($page)) $page=1;
- $limit=10;
- $offset=$limit*($page-1);
- $key=$this->_request->getParam('key');
- $searchtype=$this->_request->getParam('type');
- if (!empty($key)) {
- $sql=$db->quoteInto('select count(*) from metadata where title ilike ? or description ilike ?','%'.$key.'%','%'.$key.'%');
- $state=$db->query($sql);
- $row=$state->fetchAll();
- $sum=$row[0]['count'];
- $select=$db->select();
- $select->from('metadata','*')->where('title ilike ? or description ilike ?','%'.$key.'%','%'.$key.'%')->order('id desc')->limit($limit,$offset);
- $this->view->metadata = $db->fetchAll($select);
- $this->view->page=new Pagination($sum,$page);
- $this->view->key=$key;
- } else if (!empty($searchtype)) {
- //form
- //实现高级搜索的viewRender?
- }
- }
- /*
- * todo: 高级搜索
- */
- function advancesearchAction()
- {
- $md=new MetadataTable();
- $db=$md->getAdapter();
- $page=(int)$this->_request->getParam('page');
- if (empty($page)) $page=1;
- $limit=10;
- $offset=$limit*($page-1);
- $key=$this->_request->getParam('key');
- $searchtype=$this->_request->getParam('type');
- if (!empty($key)) {
- $sql=$db->quoteInto('select count(*) from metadata where title ilike ? or description ilike ?','%'.$key.'%','%'.$key.'%');
- $state=$db->query($sql);
- $row=$state->fetchAll();
- $sum=$row[0]['count'];
- $select=$db->select();
- $select->from('metadata','*')->where('title ilike ? or description ilike ?','%'.$key.'%','%'.$key.'%')->order('id desc')->limit($limit,$offset);
- $this->view->metadata = $db->fetchAll($select);
- $this->view->page=new Pagination($sum,$page);
- $this->view->key=$key;
- }
- }
- /*
- * 根据id或uuid来查看元数据
- */
- function viewAction()
- {
- $md=new MetadataTable();
- $db=$md->getAdapter();
- $id = (int)$this->_request->getParam('id');
- if (empty($id)) {
- $uuid = (int)$this->_request->getParam('uuid');
- if (empty($uuid)) $this->_redirect('/metadata');
- $where=$db->quoteInto('uuid = ?',$uuid);
- $row=$md->fetchRow($where);
- } else {
- $where=$db->quoteInto('id = ?',$id);
- $row=$md->fetchRow($where);
- }
- if (!$row) $this->_redirect('/metadata');
- $id=$row->id;
- $this->view->metadata=$row;
- $where=$db->quoteInto('id= ?',$id);
- $order='keytype';
- $keyt=new KeywordTable();
- $this->view->keys=$keyt->fetchAll($where,$order);
- $sql='select c.code,cc.name,cc.name_zh from category c,categorycode cc where c.code=cc.code and c.id= ?';
- $state=$db->query($sql,array($id));
- $this->view->category=$state->fetchAll();
- $sql='select s.name from dataseries d, series s where d.sid=s.id and d.id= ?';
- $state=$db->query($sql,array($id));
- $this->view->series=$state->fetchAll();
- //metadata,keyword,series,category,
- }
-
- /*
- * 删除元数据,删除前有确认
- */
- function deleteAction()
- {
- if ($this->_request->isPost()) {
- $id = (int)$this->_request->getPost('id');
- $del = $this->_request->getPost('del');
- if ($del == 'Yes' && $id > 0) {
- $md = new MetadataTable();
- $where = 'id = ' . $id;
- $md->delete($where);
- }
- $this->_redirect('/metadata');
- } else {
- $id = (int)$this->_request->getParam('id');
- if ($id > 0) {
- $mdt = new MetadataTable();
- $this->view->md = $mdt->fetchRow('id='.$id);
- }
- }
- }
- /*
- * 查看数据缩略图
- */
- function thumbAction()
- {
- $id = (int)$this->_request->getParam('id');
- if ($id>0) {
- $md=new ThumbnailTable();
- $this->view->thumb=$md->fetchRow('id='.$id);
- $this->_helper->layout->disableLayout();
- }
- }
- /*
- * 导入本地元数据
- */
- function importAction()
- {
- $md=new MetadataTable();
- $thumb=new ThumbnailTable();
- $xmlt=new XmlTable();
- $cgt=new CategoryTable();
- $cgct=new CategoryCodeTable();
- $keyt=new KeywordTable();
- $dst=new DatasetSeriesTable();
- $seriestable=new SeriesTable();
- if ($this->_request->isPost()) {
- foreach ($_FILES["xmlfile"]["error"] as $key => $error) {
- if ($error == UPLOAD_ERR_OK) {
- $tmp_name = $_FILES["xmlfile"]["tmp_name"][$key];
- $name = $_FILES["xmlfile"]["name"][$key];
- $fp = fopen($tmp_name, "rb");
- $xml=fread($fp, filesize($tmp_name));
- fclose($fp);
- $this->import($xml);
- /*
- $iso=new ISO19115();
- $iso->load($tmp_name);
- $row=$md->createRow();
- $trow=$thumb->createRow();
- $row->uuid=$iso->uuid;
- $row->title=$iso->resTitle;
- $row->description=$iso->idAbs;
- $row->timebegin=$iso->timebegin;
- $row->timeend=$iso->timeend;
- $row->west=$iso->geoBox['w'];
- $row->south=$iso->geoBox['s'];
- $row->north=$iso->geoBox['n'];
- $row->east=$iso->geoBox['e'];
- try {
- $id=$row->save();
- //处理缩略图
- if (!empty($iso->thumbnail)) {
- $trow->id=$id;
- $trow->data=$iso->thumbnail;
- $trow->save();
- }
- //todo:处理关键词
- //1:N relation
- foreach($iso->keyword as $keytype=>$keys)
- {
- foreach($keys as $key)
- {
- $row=$keyt->createRow();
- $row->id=$id;
- $row->keyword=$key;
- $row->keytype=$keytype;
- $row->save();
- }
- }
- //todo:处理数据集序列
- //M:N relation
- $db=$seriestable->getAdapter();
- foreach($iso->datasetSeries as $ds)
- {
- $where=$db->quoteInto('name = ?',$ds['seriesName']);
- $trow=$seriestable->fetchRow($where);
- if ($trow)
- $sid=$trow->id;
- else {
- $trow=$seriestable->createRow();
- $trow->name=$ds['seriesName'];
- $sid=$trow->save();
- }
- $row=$dst->createRow();
- $row->id=$id;
- $row->sid=$sid;
- $row->save();
- }
- //处理XML入库
- $row=$xmlt->createRow();
- $row->id=$id;
- $row->data=$xml;
- $row->save();
- //处理数据分类
- foreach($iso->tpCat as $cat){
- if (is_numeric($cat)) {
- $row=$cgt->createRow();
- $row->id=$id;
- $row->code=(int)$cat;
- $row->save();
- } else {
- //是字符串,geonetwork会采用这种模式
- //从categorycode表中查找其对应的code
- $where=$db->quoteInto('name= ?',trim($cat));
- $trow=$cgct->fetchRow($where);
- if ($trow) {
- $row=$cgt->createRow();
- $row->id=$id;
- $row->code=$trow->code;
- $row->save();
- }
- //$db=$cgt->getAdapter();
- //$sql="insert into category (id,code) values($id,(select code from categorycode where name='$cat'))";
- //$db->query($sql);
- }
- }
- } catch (Exception $e) {
- //数据重复插入,此处忽略所有错误
- }
-
- $fp=fopen('../data/import/$iso->uuid','w');
- fwrite($fp,$iso->saveXML());
- fclose($fp);
- */
- //采用UUID为文件名?
- //move_uploaded_file($tmp_name, "../data/import/$name");
- }//end if
- }//foreach
- $this->_redirect('/metadata');
- } else {
- //do nothing now.
- }
- }
- /*
- * 批量处理元数据(元数据保存在服务器的一个目录上)
- */
- function batchimportAction()
- {
- if ($this->_request->isPost()) {
- $dir = $this->_request->getPost('directory');
- $subdir = $this->_request->getPost('subdir');
- $xmlfiles=$this->ls($dir,"*.xml");
- foreach($xmlfiles as $xmlfile)
- {
- $fp=fopen($dir.'/'.$xmlfile,'rb');
- $xml=fread($fp,filesize($dir.'/'.$xmlfile));
- fclose($fp);
- $this->import($xml);
- }
- $this->_redirect('/metadata');
- }
- }
- /*
- * 保存XML数据到数据库
- */
- private function import($xml)
- {
- $iso=new ISO19115();
- $iso->loadXML($xml);
- $md=new MetadataTable();
- $thumb=new ThumbnailTable();
- $xmlt=new XmlTable();
- $cgt=new CategoryTable();
- $cgct=new CategoryCodeTable();
- $keyt=new KeywordTable();
- $dst=new DatasetSeriesTable();
- $seriestable=new SeriesTable();
- //save metadata
- $row=$md->createRow();
- $trow=$thumb->createRow();
- $row->uuid=$iso->uuid;
- $row->title=$iso->resTitle;
- $row->description=$iso->idAbs;
- $row->timebegin=$iso->timebegin;
- $row->timeend=$iso->timeend;
- $row->west=$iso->geoBox['w'];
- $row->south=$iso->geoBox['s'];
- $row->north=$iso->geoBox['n'];
- $row->east=$iso->geoBox['e'];
- try {
- $id=$row->save();
- //处理缩略图
- if (!empty($iso->thumbnail)) {
- $trow->id=$id;
- $trow->data=$iso->thumbnail;
- $trow->save();
- }
- //todo:处理关键词
- //1:N relation
- foreach($iso->keyword as $keytype=>$keys)
- {
- foreach($keys as $key)
- {
- $row=$keyt->createRow();
- $row->id=$id;
- //统一转换为大写
- $row->keyword=strtoupper($key);
- $row->keytype=$keytype;
- $row->save();
- }
- }
- //todo:处理数据集序列
- //M:N relation
- $db=$seriestable->getAdapter();
- foreach($iso->datasetSeries as $ds)
- {
- $where=$db->quoteInto('name = ?',$ds['seriesName']);
- $trow=$seriestable->fetchRow($where);
- if ($trow)
- $sid=$trow->id;
- else {
- $trow=$seriestable->createRow();
- $trow->name=$ds['seriesName'];
- $sid=$trow->save();
- }
- $row=$dst->createRow();
- $row->id=$id;
- $row->sid=$sid;
- $row->save();
- }
- //处理XML入库
- $row=$xmlt->createRow();
- $row->id=$id;
- $row->data=$xml;
- $row->save();
- //处理数据分类
- foreach($iso->tpCat as $cat){
- if (is_numeric($cat)) {
- $row=$cgt->createRow();
- $row->id=$id;
- $row->code=(int)$cat;
- $row->save();
- } else {
- //是字符串,geonetwork会采用这种模式
- //从categorycode表中查找其对应的code
- $where=$db->quoteInto('name= ?',trim($cat));
- $trow=$cgct->fetchRow($where);
- if ($trow) {
- $row=$cgt->createRow();
- $row->id=$id;
- $row->code=$trow->code;
- $row->save();
- }
- //$db=$cgt->getAdapter();
- //$sql="insert into category (id,code) values($id,(select code from categorycode where name='$cat'))";
- //$db->query($sql);
- }
- }
- $fp=fopen("../data/import/$iso->uuid",'w');
- fwrite($fp,$iso->saveXML());
- fclose($fp);
- } catch (Exception $e) {
- //数据重复插入,此处忽略所有错误
- }
- }
- /*
- * ls(dir,pattern) return file list in "dir" folder matching "pattern"
- * ls("path","module.php?") search into "path" folder for module.php3, module.php4, ...
- * ls("images/","*.jpg") search into "images" folder for JPG images
*/
- function ls($__dir="./",$__pattern="*.*")
- {
- settype($__dir,"string");
- settype($__pattern,"string");
-
- $__ls=array();
- $__regexp=preg_quote($__pattern,"/");
- $__regexp=preg_replace("/[\\x5C][\x2A]/",".*",$__regexp);
- $__regexp=preg_replace("/[\\x5C][\x3F]/",".", $__regexp);
-
- if(is_dir($__dir))
- if(($__dir_h=@opendir($__dir))!==FALSE)
- {
- while(($__file=readdir($__dir_h))!==FALSE)
- if(preg_match("/^".$__regexp."$/",$__file))
- array_push($__ls,$__file);
-
- closedir($__dir_h);
- sort($__ls,SORT_STRING);
- }
-
- return $__ls;
- }
-}
-
diff --git a/application/default/views/scripts/metadata/batchimport.phtml b/application/default/views/scripts/metadata/batchimport.phtml
deleted file mode 100755
index c14b91c7..00000000
--- a/application/default/views/scripts/metadata/batchimport.phtml
+++ /dev/null
@@ -1,18 +0,0 @@
-headTitle('元数据');
-$this->headTitle('上传元数据');
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('批量上传元数据');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/browse.phtml b/application/default/views/scripts/metadata/browse.phtml
deleted file mode 100755
index 28a2a991..00000000
--- a/application/default/views/scripts/metadata/browse.phtml
+++ /dev/null
@@ -1,29 +0,0 @@
-headTitle($this->config->title->site);
- $this->headTitle($this->config->title->metadata);
- $this->headTitle('全部浏览');
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('全部浏览');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-page->getNavigation(); ?>
-metadata as $md) : ?>
-
-
-
-
-
',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
-
-
diff --git a/application/default/views/scripts/metadata/category.phtml b/application/default/views/scripts/metadata/category.phtml
deleted file mode 100755
index 85ca0083..00000000
--- a/application/default/views/scripts/metadata/category.phtml
+++ /dev/null
@@ -1,40 +0,0 @@
-headTitle($this->config->title->site);
- $this->headTitle($this->config->title->metadata);
-$this->headTitle('分类浏览');
-if (!empty($this->codename)) $this->headTitle($this->codename);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('分类浏览');
-if (!empty($this->codename)) $this->breadcrumb($this->codename);
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
-
-
-
-metadata)) : ?>
-
当前浏览分类:codename; ?>
-metadata as $md) : ?>
-
-
-
-
-
400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>
-
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/delete.phtml b/application/default/views/scripts/metadata/delete.phtml
deleted file mode 100755
index 324ed331..00000000
--- a/application/default/views/scripts/metadata/delete.phtml
+++ /dev/null
@@ -1,15 +0,0 @@
-md) :?>
-Are you sure that you want to delete this metadata:
-
escape($this->md->title); ?>
- escape($this->md->description); ?>
-
-
-
-Cannot find the metadata.
-
diff --git a/application/default/views/scripts/metadata/import.phtml b/application/default/views/scripts/metadata/import.phtml
deleted file mode 100755
index 0e013702..00000000
--- a/application/default/views/scripts/metadata/import.phtml
+++ /dev/null
@@ -1,24 +0,0 @@
-headTitle('元数据');
-$this->headTitle('上传元数据');
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('上传元数据');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/index.phtml b/application/default/views/scripts/metadata/index.phtml
deleted file mode 100755
index 1cb4defd..00000000
--- a/application/default/views/scripts/metadata/index.phtml
+++ /dev/null
@@ -1,66 +0,0 @@
-headTitle($config->title->site);
-$this->headTitle($config->title->metadata);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
-
-
-
-
-
-
-
-'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
-$type='';
-foreach($this->keywords as $cg) :
- if ($type!=$cg['keytype']) :
- if ($type!='') : ?>
-
-
-
-
-
-
-
-
-
数据最新更新
-
-
-metadata as $md) : ?>
-
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/map.phtml b/application/default/views/scripts/metadata/map.phtml
deleted file mode 100755
index 2b2495ac..00000000
--- a/application/default/views/scripts/metadata/map.phtml
+++ /dev/null
@@ -1,62 +0,0 @@
-headTitle($this->config->title->site);
- $this->headTitle($this->config->title->metadata);
- $this->headTitle("空间浏览");
- $this->headTitle()->setSeparator(' - ');
- $this->headLink()->appendStylesheet('/css/metadata.css');
- $this->breadcrumb('首页');
- $this->breadcrumb('数据产品与服务');
- $this->breadcrumb('空间浏览');
- if (!empty($this->codename)) $this->breadcrumb($this->codename);
- $this->breadcrumb()->setSeparator(' > ');
- $this->headScript()->appendFile('/js/OpenLayers.js');
- $this->headLink()->appendStylesheet('/js/theme/default/style.css');
-?>
-
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
-
-
diff --git a/application/default/views/scripts/metadata/search.phtml b/application/default/views/scripts/metadata/search.phtml
deleted file mode 100755
index f39314c3..00000000
--- a/application/default/views/scripts/metadata/search.phtml
+++ /dev/null
@@ -1,48 +0,0 @@
-headTitle('元数据');
-$this->headTitle('搜索');
-if (!empty($this->codename)) $this->headTitle($this->codename);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('搜索');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
-metadata)) : ?>
-page->getNavigation();
-foreach($this->metadata as $md) : ?>
-
-
-
-
escape($md['title']);?> View
- Delete
-
-
400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>
-
-
diff --git a/application/default/views/scripts/metadata/series.phtml b/application/default/views/scripts/metadata/series.phtml
deleted file mode 100755
index bc45d419..00000000
--- a/application/default/views/scripts/metadata/series.phtml
+++ /dev/null
@@ -1,36 +0,0 @@
-headTitle('元数据');
-$this->headTitle('数据集序列');
-$this->headTitle($this->codename);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('数据集浏览');
-if (!empty($this->codename)) $this->breadcrumb($this->codename);
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-
-
-metadata)) : ?>
-
当前浏览数据集序列:codename; ?>
-metadata as $md) : ?>
-
-
-
-
-
400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>
-
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/tag.phtml b/application/default/views/scripts/metadata/tag.phtml
deleted file mode 100755
index a840cde7..00000000
--- a/application/default/views/scripts/metadata/tag.phtml
+++ /dev/null
@@ -1,51 +0,0 @@
-headTitle($config->title->site);
-$this->headTitle($config->title->metadata);
-if (!empty($this->codename)) $this->headTitle($this->codename);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('关键词浏览');
-if (!empty($this->codename)) $this->breadcrumb($this->codename);
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
-$type='';
-foreach($this->keywords as $cg) :
- if ($type!=$cg['keytype']) :
- if ($type!='') : ?>
-
-
-
-
-metadata)) : ?>
-
当前浏览:codename; ?>
-metadata as $md) : ?>
-
-
-
-
-
400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>
-
-
-
diff --git a/application/default/views/scripts/metadata/thumb.phtml b/application/default/views/scripts/metadata/thumb.phtml
deleted file mode 100755
index f4fc4f45..00000000
--- a/application/default/views/scripts/metadata/thumb.phtml
+++ /dev/null
@@ -1,4 +0,0 @@
-thumb->data);
-?>
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/timeline.phtml b/application/default/views/scripts/metadata/timeline.phtml
deleted file mode 100755
index a4886013..00000000
--- a/application/default/views/scripts/metadata/timeline.phtml
+++ /dev/null
@@ -1,87 +0,0 @@
-headTitle($config->title->site);
-$this->headTitle($config->title->metadata);
-$this->headTitle('时间轴导航');
-if (!empty($this->codename)) $this->headTitle($this->codename);
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('时间轴导航');
-$this->breadcrumb()->setSeparator(' > ');
-?>
-
-
-
-
-headTitle();
-echo $this->headLink();
-?>
-
-
-
-
-
-= $this->partial('header.phtml'); ?>
-
-
-= $this->breadcrumb() ?>
- = $this->partial('metadata/tools.phtml'); ?>
-
-
-
-
-
-
-= $this->partial('footer.phtml'); ?>
-
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/tools.phtml b/application/default/views/scripts/metadata/tools.phtml
deleted file mode 100755
index 6908e739..00000000
--- a/application/default/views/scripts/metadata/tools.phtml
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/application/default/views/scripts/metadata/view.phtml b/application/default/views/scripts/metadata/view.phtml
deleted file mode 100755
index 0e9c82b4..00000000
--- a/application/default/views/scripts/metadata/view.phtml
+++ /dev/null
@@ -1,134 +0,0 @@
-headTitle($this->config->title->site);
-$this->headTitle($this->config->title->metadata);
-$this->headTitle('数据查看');
-$this->headTitle()->setSeparator(' - ');
-$this->headLink()->appendStylesheet('/css/metadata.css');
-$this->breadcrumb('首页');
-$this->breadcrumb('数据产品与服务');
-$this->breadcrumb('查看元数据');
-$this->breadcrumb()->setSeparator(' > ');
-$this->headScript()->appendFile('/js/prototype.js');
-$this->headScript()->appendFile('/js/OpenLayers.js');
-$this->headLink()->appendStylesheet('/js/theme/default/style.css');
-?>
-
-= $this->partial('metadata/tools.phtml'); ?>
-
-
-metadata;
-if ($md):?>
-
-
-
-
escape($md->title);?>
-
-
-
-
-
-
',$this->escape($md->description));?>
-
-series): ?>
-
-
-
-
-
-
-
-
-
-
-
-Cannot find the metadata.
-
\ No newline at end of file