merge heihedata branch r4982 - r5009 into metadata-en-2.0
This commit is contained in:
parent
876ac1e525
commit
8f4bddc82d
|
@ -816,7 +816,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
right join en.metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
left join en.geonetworkmetadata gn on m.uuid=gn.uuid
|
||||
where status=0 $searchjoin order by m.ts_created desc";
|
||||
where m.status=0 $searchjoin order by m.ts_created desc";
|
||||
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
@ -877,7 +877,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status from en.mdstatus m
|
||||
right join en.metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where status=-1 $searchjoin";
|
||||
where m.status=-1 $searchjoin";
|
||||
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
@ -917,7 +917,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_finished from en.mdstatus m
|
||||
right join en.metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where status=5 $searchjoin order by m.ts_finished desc";
|
||||
where m.status=5 $searchjoin order by m.ts_finished desc";
|
||||
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
|
|
@ -708,5 +708,53 @@ left join dataset ds on ds.uuid=m.uuid
|
|||
}
|
||||
$this->view->activeID="btn-".$ac;
|
||||
}
|
||||
|
||||
//GeoNetwork中元数据批量替换操作
|
||||
function gnmetadataAction()
|
||||
{
|
||||
$this->wdb=Zend_Db::factory($this->view->config->geonetwork);
|
||||
set_time_limit(0);
|
||||
$ac=$this->_request->getParam('ac');
|
||||
//use preg_replace to replace the string
|
||||
$form=new ReplaceForm();
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$pattern=$formdata["pattern"];
|
||||
$form->populate($formdata);
|
||||
if (substr($pattern,0,1)!='/')
|
||||
{
|
||||
$pattern='/'.$pattern.'/m';
|
||||
}
|
||||
$replace=$formdata["replace"];
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
|
||||
} elseif (isset($formdata["submit"])) {
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$new_data=preg_replace($pattern,$replace,$row['data']);
|
||||
//防止正则错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
|
||||
$deal['uuid']=$row['uuid'];
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
<?php
|
||||
class Admin_TestController extends Zend_Controller_Action
|
||||
{
|
||||
function preDispatch()
|
||||
{
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->_helper->layout->setLayout('administry');
|
||||
$this->wdb=Zend_Db::factory('Pdo_Pgsql', array('host'=> '210.77.68.252','username' => 'wlz','password' => 'glacier','dbname'=> 'new_geonetwork'));
|
||||
}
|
||||
function postDispatch()
|
||||
{
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
}
|
||||
function indexAction()
|
||||
{
|
||||
//其他连接
|
||||
}
|
||||
|
||||
|
||||
//测试文献的下载链接是否正确
|
||||
function reftestAction()
|
||||
{
|
||||
$sql="select * from reference where link<>''";
|
||||
$rows=$this->db->query($sql);
|
||||
foreach($rows as $row)
|
||||
{
|
||||
if (substr($row['link'],0,1)=='/')
|
||||
{
|
||||
if (!file_exists("http://westdc.westgis.ac.cn".$row['link']))
|
||||
{
|
||||
$ref[]=$row;
|
||||
}
|
||||
} elseif (!file_exists($row['link'])) {
|
||||
$ref[]=$row;
|
||||
}
|
||||
}
|
||||
$this->view->ref=$ref;
|
||||
}
|
||||
|
||||
//检查DOI是否有重复
|
||||
function doiAction()
|
||||
{
|
||||
$sql="select doi,uuid,title from metadata where doi<>'' order by doi";
|
||||
$rows=$this->db->fetchAll($sql);
|
||||
$sql="select distinct(doi) from metadata where doi<>'' order by doi";
|
||||
$drows=$this->db->fetchAll($sql);
|
||||
$c=0;
|
||||
if (count($rows)!=count($drows))
|
||||
{
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
if ($row['doi']!=$drows[$k-$c]['doi'])
|
||||
{
|
||||
$c++;
|
||||
$doi[]=$rows[$k-1];
|
||||
$doi[]=$row;
|
||||
}
|
||||
}
|
||||
$this->view->doi=$doi;
|
||||
}
|
||||
}
|
||||
|
||||
//检查DOI是否有重复
|
||||
function nodoiwaterAction()
|
||||
{
|
||||
$sql="select uuid,title from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and doi='' order by title";
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
//检查source不符合要求
|
||||
function sourceAction()
|
||||
{
|
||||
$sql="select uuid,title,source from metadata where title ilike '黑河综合遥感联合试验%' and source=''";
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
use Helpers\View;
|
||||
|
||||
class Admin_UserController extends Zend_Controller_Action
|
||||
{
|
||||
function preDispatch()
|
||||
|
@ -1194,6 +1196,35 @@ class Admin_UserController extends Zend_Controller_Action
|
|||
|
||||
}//sendemailAction()
|
||||
|
||||
public function banAction()
|
||||
{
|
||||
$id = $this->_getParam('uid');
|
||||
$users = new Users\Users();
|
||||
|
||||
$status = $users->ban($id);
|
||||
if($status === TRUE)
|
||||
{
|
||||
view::Post($this,"操作成功",-1);
|
||||
}else{
|
||||
view::Post($this,"操作失败",-1);
|
||||
}
|
||||
}
|
||||
|
||||
public function unbanAction()
|
||||
{
|
||||
$id = $this->_getParam('uid');
|
||||
$users = new Users\Users();
|
||||
|
||||
$status = $users->unban($id);
|
||||
if($status === TRUE)
|
||||
{
|
||||
view::Post($this,"操作成功",-1);
|
||||
}else{
|
||||
view::Post($this,"操作失败",-1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function jsonexit($data){
|
||||
|
|
|
@ -1,441 +0,0 @@
|
|||
<?php
|
||||
class Admin_WatermdController extends Zend_Controller_Action
|
||||
{
|
||||
function preDispatch()
|
||||
{
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->_helper->layout->setLayout('administry');
|
||||
$this->wdb=Zend_Db::factory($this->view->config->geonetwork);
|
||||
set_time_limit(0);
|
||||
}
|
||||
function postDispatch()
|
||||
{
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
}
|
||||
function indexAction()
|
||||
{
|
||||
//其他连接
|
||||
}
|
||||
|
||||
function replaceAction()
|
||||
{
|
||||
//use preg_replace to replace the string
|
||||
$form=new ReplaceForm();
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$pattern=$formdata["pattern"];
|
||||
$form->populate($formdata);
|
||||
if (substr($pattern,0,1)!='/')
|
||||
{
|
||||
$pattern='/'.$pattern.'/m';
|
||||
}
|
||||
$replace=$formdata["replace"];
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$new_data=preg_replace($pattern,$replace,$row['data']);
|
||||
//防止正则错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
|
||||
$deal['uuid']=$row['uuid'];
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
|
||||
//替换关键词
|
||||
function keywordAction()
|
||||
{
|
||||
//use preg_replace to replace the string
|
||||
$form=new ReplaceForm();
|
||||
$form->pattern->setLabel('原关键词');
|
||||
$form->replace->setLabel('替换关键词');
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$pattern=$formdata["pattern"];
|
||||
$form->populate($formdata);
|
||||
//if (substr($pattern,0,1)!='/')
|
||||
{
|
||||
$pattern='/\<keyword\>'.$pattern.'\<\/keyword\>/m';
|
||||
}
|
||||
$replace='<keyword>'.$formdata["replace"].'</keyword>';
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$new_data=preg_replace($pattern,$replace,$row['data']);
|
||||
//防止正则错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
|
||||
$deal['uuid']=$uuid;
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
|
||||
//替换标题和英文标题到数据引用中,以标题为准
|
||||
function citetitleAction()
|
||||
{
|
||||
$form=new ReplaceForm();
|
||||
$form->setElements(array($form->source,$form->test,$form->submit));
|
||||
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$form->populate($formdata);
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($formdata['source']);
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$title_en_path=$xpath->query("//Metadata/dataIdInfo/idCitation/resAltTitle");
|
||||
$title_en=$title_en_path->item(0)->nodeValue;
|
||||
$otherCitDet=$xpath->query("//Metadata/dataIdInfo/idCitation/otherCitDet");
|
||||
$other=$otherCitDet->item(0)->nodeValue;
|
||||
$other_cn=mb_strstr($other,'[',true);
|
||||
$title_o=mb_strstr($other_cn,'.',false);
|
||||
$title_ol=substr($title_o,1,-4);
|
||||
$title_old=mb_strstr($title_ol,'.',true);
|
||||
$other_eng=mb_strstr($other,'[',false);
|
||||
$titlen_o=mb_strstr($other_eng,'.',false);
|
||||
$titlen_ol=substr($titlen_o,1,-4);
|
||||
$titlen_old=mb_strstr($titlen_ol,',',true);
|
||||
$new_other=str_replace(array($title_old,$titlen_old),array($title,$title_en),$other);
|
||||
$otherCitDet->item(0)->nodeValue=$new_other;
|
||||
$this->view->test= $dom->saveXML($root->item(0));
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$uuid = $row['uuid'];
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$title_en_path=$xpath->query("//Metadata/dataIdInfo/idCitation/resAltTitle");
|
||||
$title_en=$title_en_path->item(0)->nodeValue;
|
||||
$otherCitDet=$xpath->query("//Metadata/dataIdInfo/idCitation/otherCitDet");
|
||||
$other=$otherCitDet->item(0)->nodeValue;
|
||||
$other_cn=mb_strstr($other,'[',true);
|
||||
$title_o=mb_strstr($other_cn,'.',false);
|
||||
$title_ol=substr($title_o,1,-4);
|
||||
$title_old=mb_strstr($title_ol,'.',true);
|
||||
$other_eng=mb_strstr($other,'[',false);
|
||||
$titlen_o=mb_strstr($other_eng,'.',false);
|
||||
$titlen_ol=substr($titlen_o,1,-4);
|
||||
$titlen_old=mb_strstr($titlen_ol,',',true);
|
||||
$new_other=str_replace(array($title_old,$titlen_old),array($title,$title_en),$other);
|
||||
$otherCitDet->item(0)->nodeValue=$new_other;
|
||||
$new_data = $dom->saveXML($root->item(0));
|
||||
//防止错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$deal['uuid']=$uuid;
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
|
||||
//文件大小处理
|
||||
function filesizeAction()
|
||||
{
|
||||
$form=new ReplaceForm();
|
||||
$form->pattern->setLabel('文件大小');
|
||||
$form->setElements(array($form->pattern,$form->source,$form->test,$form->submit));
|
||||
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$form->populate($formdata);
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($formdata['source']);
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$transize_path=$xpath->query("//Metadata/distInfo/distTranOps/transSize");
|
||||
$transize_path->item(0)->nodeValue=$formdata['pattern'];
|
||||
$this->view->test= $dom->saveXML($root->item(0));
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
$sql="select update_filesize();";
|
||||
$this->db->exec($sql);
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$uuid = $row['uuid'];
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$transize_path=$xpath->query("//Metadata/distInfo/distTranOps/transSize");
|
||||
$sql="select filesize from metadata where uuid = ?";
|
||||
$this->db->setFetchMode(Zend_Db::FETCH_OBJ);
|
||||
$row=$this->db->fetchRow($sql,array($uuid));
|
||||
$transize_path->item(0)->nodeValue=$row->filesize;
|
||||
$new_data = $dom->saveXML();
|
||||
//防止错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='$uuid'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$deal['uuid']=$uuid;
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
|
||||
//修改限制使用说明
|
||||
//useLimit可以是多项的
|
||||
function uselimitAction()
|
||||
{
|
||||
$form=new ReplaceForm();
|
||||
$form->pattern->setLabel('使用声明');
|
||||
$form->setElements(array($form->pattern,$form->source,$form->test,$form->submit));
|
||||
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
$form->populate($formdata);
|
||||
$limit_text=$formdata['pattern'];
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($formdata['source']);
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$uselimits=$xpath->query("//Metadata/dataIdInfo/resConst/Consts/useLimit");
|
||||
$do_uselimit=1;
|
||||
foreach($uselimits as $limit)
|
||||
{
|
||||
//已经有声明,则不需要处理
|
||||
if ($limit->nodeValue==$limit_text || (strlen($limit->nodeValue)>3))
|
||||
$do_uselimit=0;
|
||||
}
|
||||
if ($do_uselimit==1)
|
||||
{
|
||||
$new_uselimit=$dom->createElement('useLimit',$limit_text);
|
||||
$new_resconst=$dom->createElement('resConst');
|
||||
$new_const=$dom->createElement('Consts');
|
||||
$new_const->appendChild($new_uselimit);
|
||||
$new_resconst->appendChild($new_const);
|
||||
$desckey=$xpath->query("//Metadata/dataIdInfo/descKeys")->item(0);
|
||||
$resconst=$xpath->query("//Metadata/dataIdInfo/resConst")->item(0);
|
||||
if ($resconst)
|
||||
$resconst->parentNode->insertBefore($new_resconst,$resconst);
|
||||
else
|
||||
$desckey->parentNode->insertBefore($new_resconst,$desckey);
|
||||
$new_data=$dom->saveXML();
|
||||
}
|
||||
$this->view->test= $new_data;
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $k=>$row)
|
||||
{
|
||||
//do the replace
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$root = $dom->getElementsByTagName('Metadata');
|
||||
$uuid = $row['uuid'];
|
||||
$xpath = new DOMXpath($dom);
|
||||
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
|
||||
$title=$title_key->item(0)->nodeValue;
|
||||
$uselimits=$xpath->query("//Metadata/dataIdInfo/resConst/Consts/useLimit");
|
||||
$do_uselimit=1;
|
||||
foreach($uselimits as $limit)
|
||||
{
|
||||
//已经有声明,则不需要处理
|
||||
if ($limit->nodeValue==$limit_text || (strlen($limit->nodeValue)>3))
|
||||
$do_uselimit=0;
|
||||
}
|
||||
if ($do_uselimit==1)
|
||||
{
|
||||
$new_uselimit=$dom->createElement('useLimit',$limit_text);
|
||||
$new_resconst=$dom->createElement('resConst');
|
||||
$new_const=$dom->createElement('Consts');
|
||||
$new_const->appendChild($new_uselimit);
|
||||
$new_resconst->appendChild($new_const);
|
||||
$desckey=$xpath->query("//Metadata/dataIdInfo/descKeys")->item(0);
|
||||
$resconst=$xpath->query("//Metadata/dataIdInfo/resConst")->item(0);
|
||||
if ($resconst)
|
||||
$resconst->parentNode->insertBefore($new_resconst,$resconst);
|
||||
else
|
||||
$desckey->parentNode->insertBefore($new_resconst,$desckey);
|
||||
$new_data=$dom->saveXML();
|
||||
//防止错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$deal['uuid']=$uuid;
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->form=$form;
|
||||
}
|
||||
|
||||
//联系人信息替换
|
||||
function contactAction()
|
||||
{
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
if (isset($formdata["test"]))
|
||||
{
|
||||
$this->view->test=$this->contactReplace($formdata["testxml"],$formdata);
|
||||
} elseif (isset($formdata["submit"]))
|
||||
{
|
||||
$sql="select uuid,data from metadata where istemplate = 'n' and data like '%".$formdata['oldname']."%'";
|
||||
$rows=$this->wdb->fetchAll($sql);
|
||||
$this->view->deal=array();
|
||||
foreach($rows as $row)
|
||||
{
|
||||
//do the replace
|
||||
$new_data=$this->contactReplace($row["data"],$formdata);
|
||||
//防止错误
|
||||
if (!empty($new_data))
|
||||
{
|
||||
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
|
||||
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($row['data']);
|
||||
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
|
||||
$deal['uuid']=$row['uuid'];
|
||||
$deal['title']=$title;
|
||||
$this->view->deal[]=$deal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->formdata=$formdata;
|
||||
}
|
||||
}
|
||||
|
||||
private function contactReplace($xml,$replace)
|
||||
{
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadXML($xml);
|
||||
$xpath = new DOMXpath($dom);
|
||||
$contacts=$xpath->query('//rpIndName');
|
||||
foreach($contacts as $contact)
|
||||
{
|
||||
if ($contact->nodeValue==$replace['oldname'])
|
||||
{
|
||||
$newrpIndName=$dom->createElement('rpIndName',$replace['name']);
|
||||
$newrpOrgName=$dom->createElement('rpOrgName',$replace['unit']);
|
||||
$newrpCntInfo=$dom->createElement('rpCntInfo');
|
||||
$newcntPhone=$dom->createElement('cntPhone');
|
||||
$newrpCntInfo->appendChild($newcntPhone);
|
||||
$newvoiceNum=$dom->createElement('voiceNum',$replace['voicenum']);
|
||||
$newcntPhone->appendChild($newvoiceNum);
|
||||
$newcntAddress=$dom->createElement('cntAddress');
|
||||
$newrpCntInfo->appendChild($newcntAddress);
|
||||
$newdelPoint=$dom->createElement('delPoint',$replace['delpoint']);
|
||||
$newcntAddress->appendChild($newdelPoint);
|
||||
$newcity=$dom->createElement('city',$replace['city']);
|
||||
$newcntAddress->appendChild($newcity);
|
||||
$newarea=$dom->createElement('adminArea',$replace['adminarea']);
|
||||
$newcntAddress->appendChild($newarea);
|
||||
$newpostCode=$dom->createElement('postCode',$replace['postcode']);
|
||||
$newcntAddress->appendChild($newpostCode);
|
||||
$newcountry=$dom->createElement('country',$replace['country']);
|
||||
$newcntAddress->appendChild($newcountry);
|
||||
$neweMailAdd=$dom->createElement('eMailAdd',$replace['email']);
|
||||
$newcntAddress->appendChild($neweMailAdd);
|
||||
|
||||
$rporg=$xpath->query('rpOrgName',$contact->parentNode);
|
||||
$contact->parentNode->removeChild($rporg->item(0));
|
||||
$rpcnt=$xpath->query('rpCntInfo',$contact->parentNode);
|
||||
$contact->parentNode->removeChild($rpcnt->item(0));
|
||||
|
||||
$contact->parentNode->insertBefore($newrpIndName,$contact);
|
||||
$contact->parentNode->insertBefore($newrpOrgName,$contact);
|
||||
$contact->parentNode->insertBefore($newrpCntInfo,$contact);
|
||||
|
||||
$contact->parentNode->removeChild($contact);
|
||||
}
|
||||
}
|
||||
return $dom->saveXML();
|
||||
}
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
</div>
|
||||
</div>
|
||||
<?php if(empty($this->data['info']) || !is_array($this->data['info'])) {?>
|
||||
<div class="form-control" id="info1">
|
||||
<div class="form-control infocontrol" id="info1">
|
||||
<label class="control-label" for="">数据作者信息</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="info[1][author]" value="" placeholder="作者" />
|
||||
|
@ -114,7 +114,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<div class="col-md-1">
|
||||
<?php if($index>1){ ?>
|
||||
<label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -122,11 +122,11 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<a class="pull-right" href="javascript:void(0);" onclick="addinput()" >+添加一条</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<a class="pull-right" href="javascript:void(0);" onclick="addinput()" >+添加一条</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
|
@ -149,21 +149,22 @@ function addinput(){
|
|||
var now_index = $('.infocontrol').length;
|
||||
var index = now_index + 1;
|
||||
html = '<div class="form-group infocontrol"><label class="col-md-2 col-sm-2 control-label">info</label>'
|
||||
+ '<div class="col-sm-10"><div class="controls row">'
|
||||
+ '<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[' + index + '][author]" placeholder="作者" /></div> '
|
||||
+ '<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[' + index + '][author_en]" placeholder="作者英文" /></div> '
|
||||
+ '<div class="col-md-1 col-sm-2"><input class="form-control" type="text" name="info[' + index + '][order]" placeholder="排序" /></div> '
|
||||
+ '<div class="col-md-3 col-sm-6"><input class="form-control" type="text" name="info[' + index + '][organization]" placeholder="单位" /></div> '
|
||||
+ '<div class="col-md-3 col-sm-6"><input class="form-control" type="text" name="info[' + index + '][organization_en]" placeholder="单位英文" /></div> '
|
||||
+ '<div class="col-md-1"><label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label></div>'
|
||||
+ '</div></div></div>';
|
||||
+'<div class="col-sm-10"><div class="controls row">'
|
||||
+'<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[' + index + '][author]" placeholder="作者" /></div>'
|
||||
+'<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[' + index + '][author_en]" placeholder="作者英文" /></div>'
|
||||
+'<div class="col-md-1 col-sm-2"><input class="form-control" type="text" name="info[' + index + '][order]" placeholder="排序" /></div>'
|
||||
+'<div class="col-md-3 col-sm-6"><input class="form-control" type="text" name="info[' + index + '][organization]" placeholder="单位" /></div>'
|
||||
+'<div class="col-md-3 col-sm-6"><input class="form-control" type="text" name="info[' + index + '][organization_en]" placeholder="单位英文" /></div>'
|
||||
+'<div class="col-md-1"><label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label></div>'
|
||||
+'</div></div></div>';
|
||||
now_index = null;
|
||||
index = null;
|
||||
$('.infocontrol').last().after(html);
|
||||
}
|
||||
function RmInput(e){
|
||||
$e = $(e);
|
||||
$e.parent('div').parent('div.infocontrol').remove();
|
||||
$e.parent().parent().parent().parent().parent('div.infocontrol').remove();
|
||||
|
||||
}
|
||||
</script>
|
||||
<!-- //页面内容 -->
|
|
@ -69,12 +69,17 @@
|
|||
<p>数据清单:<?= $item['datalist']; ?></p>
|
||||
<p>
|
||||
<a class="label label-info" href="/admin/down/offlineapp/view/<?= $item['id']; ?>">原始申请表</a>
|
||||
<?php if ($item['datastatus']==3) : ?>
|
||||
<spanid="start_<?= $item['id']; ?>"><a class="label label-success" href="javascript:action('start',<?= $item['id']; ?>);" onclick="return confirm('确定收到该申请?')">收到</a></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($item['datastatus']!=4) : ?>
|
||||
<span id="start_<?= $item['id']; ?>">
|
||||
<a class="label label-success" href="javascript:action('start',<?= $item['id']; ?>);" onclick="return confirm('确定收到该申请?')">收到</a>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<a class="label label-success" href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定通过该申请?')">通过</a>
|
||||
<?php endif; ?>
|
||||
<a class="label label-danger" href="javascript:action('deleted',<?= $item['id']; ?>);" onclick="return confirm('确定将此记录删除?')">删除</a>
|
||||
<a class="label label-warning" href="javascript:action('deny',<?= $item['id']; ?>);" onclick="return confirm('确定拒绝该申请?')">拒绝</a>
|
||||
<?php if ($item['datastatus']!=-1) : ?>
|
||||
<a class="label label-warning" href="javascript:action('deny',<?= $item['id']; ?>);" onclick="return confirm('确定拒绝该申请?')">拒绝</a>
|
||||
<?php endif; ?>
|
||||
<a class="label label-warning" href="javascript:action('reset',<?= $item['id']; ?>);" onclick="return confirm('是否重置该申请?')">重置</a>
|
||||
<a class="label label-primary" href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a>
|
||||
<?php if(!empty($item['applicationform'])) { ?>
|
||||
|
@ -111,8 +116,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
P.@.[zb(5)].Zz
|
||||
|
||||
<script>
|
||||
//var param = {};
|
||||
//var upload_count = 0;
|
||||
|
|
|
@ -18,14 +18,6 @@
|
|||
<?= $this->partial('news/left.phtml'); ?>
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
<div class="well">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="nav-header text-muted"><h4>系统管理</h4></li>
|
||||
<li class="nav-divider"></li>
|
||||
<li><a href="/admin/watermd">WATER元数据处理工具</a></li>
|
||||
<li><a href="/admin/test">数据测试管理</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<script>
|
||||
|
|
|
@ -38,6 +38,8 @@ var tags=[
|
|||
$(document).ready(function(){
|
||||
KindEditor.ready(function(K) {
|
||||
editor=K.create('textarea[name="body"]', {
|
||||
width : '800px',
|
||||
height : '450px',
|
||||
uploadJson : '/plugins/upload_json.php',
|
||||
fileManagerJson : '/plugins/file_manager_json.php',
|
||||
allowFileManager : true
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php echo $this->form; ?>
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/data/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -9,5 +9,6 @@
|
|||
<li id="Nav-sys-recovery"><a href="/admin/sys/recovery">数据恢复进展</a></li>
|
||||
<li id="Nav-sys-problem"><a href="/admin/sys/problem">问题数据检查</a></li>
|
||||
<li id="Nav-sys-regions"><a href="/admin/sys/regions">GN地点管理</a></li>
|
||||
<li id="Nav-sys-gnmetadata"><a href="/admin/sys/gnmetadata">GN正则替换</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,39 +0,0 @@
|
|||
<?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/test">数据测试工具</a>');
|
||||
$this->breadcrumb('DOI重复检查');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('test/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($this->doi) : ?>
|
||||
<div id="mdlist">
|
||||
DOI有重复的数据:
|
||||
<?php foreach ($this->doi as $doi): ?>
|
||||
<ul>
|
||||
<li><?php echo $doi['doi']; ?></li>
|
||||
<li><a href="/data/<?= $doi['uuid']; ?>"><?php echo $doi['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
恭喜!没有重复。
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,19 +0,0 @@
|
|||
<?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('测试工具');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('test/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<p>此页面的所有功能测试数据的链接是否存在!</p>
|
||||
<p>请小心使用!</p>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
<div class="well">
|
||||
<ul>
|
||||
<li><a href="/admin/test/reftest">文献链接测试</a></li>
|
||||
<li class="nav-divider"></li>
|
||||
<li id="Nav-test-doi"><a href="/admin/test/doi">DOI重复检查</a></li>
|
||||
<li id="Nav-test-nodoiwater"><a href="/admin/test/nodoiwater">WATER中没有DOI的数据</a></li>
|
||||
<li id="Nav-test-source"><a href="/admin/test/source">WATER中没有SOURCE缺失的数据</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,38 +0,0 @@
|
|||
<?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/test">数据测试工具</a>');
|
||||
$this->breadcrumb('DOI重复检查');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('test/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($this->rows) : ?>
|
||||
<div id="mdlist">
|
||||
没有DOI的数据:
|
||||
<?php foreach ($this->rows as $doi): ?>
|
||||
<ul>
|
||||
<li><a href="/water/<?= $doi['uuid']; ?>"><?php echo $doi['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
恭喜!没有对应的数据。
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,40 +0,0 @@
|
|||
<?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/test">数据测试工具</a>');
|
||||
$this->breadcrumb('文献链接测试');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('test/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($this->ref) : ?>
|
||||
<div id="mdlist">
|
||||
有错误数据:
|
||||
<?php foreach ($this->ref as $ref): ?>
|
||||
<ul>
|
||||
<li><?php echo $ref['id']; ?>:<?php echo $ref['reference']; ?></li>
|
||||
<li><a href="/admin/data/ref/edit/<?= $ref['id']; ?>">编辑</a></li>
|
||||
<li>错误地址:<?php echo $ref['link']; ?></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
恭喜!没有错误。
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,41 +0,0 @@
|
|||
<?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/test">数据测试工具</a>');
|
||||
$this->breadcrumb('source缺失检查');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('test/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($this->rows) : ?>
|
||||
<div id="mdlist">
|
||||
缺失SOURCE的数据项:
|
||||
<?php foreach ($this->rows as $doi): ?>
|
||||
<ul>
|
||||
<li><a href="/water/<?= $doi['uuid']; ?>"><?php echo $doi['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
以上数据若确认是黑河试验的数据,请通过以下SQL语句执行修复:
|
||||
"update metadata set source='0595169a-279e-4b95-819f-129d0ba4280d' where id in (select id from metadata where source='' and title ilike '黑河综合遥感联合试验%')"
|
||||
也可以对geonetwork数据库统一赋值。
|
||||
</div>
|
||||
<?php else : ?>
|
||||
恭喜!没有对应的数据。
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -48,6 +48,7 @@
|
|||
<td width='100'>用户类型</td>
|
||||
<td width='200'>单位</td>
|
||||
<td width='100'>真实姓名</td>
|
||||
<td width="100">状态</td>
|
||||
<td width='150'>操作</td>
|
||||
</tr></thead>
|
||||
<!-- table's head -->
|
||||
|
@ -61,12 +62,18 @@
|
|||
<td><?= $item['usertype']; ?></td>
|
||||
<td><?= $item['unit']; ?></td>
|
||||
<td><?= $item['realname']; ?></td>
|
||||
<td><?= $item['status'] == 1 ? "启用":"禁用"; ?></td>
|
||||
<td>
|
||||
<a href='/admin/user/delete/id/<?= $item['id'];?>/uname/<?= $item['username'];?>' onclick="return confirm('确定将此记录删除?')">删除</a>
|
||||
<a href='/admin/user/show/id/<?= $item['id'];?>'>查看详细</a>
|
||||
<a href='/admin/user/fetchpwd/email/<?= $item['email'];?>/id/<?= $item['id'];?>' onclick="return confirm('是否确定为他重置密码?')">重置密码</a>
|
||||
<a href='/admin/user/up/id/<?= $item['id'];?>' onclick="return confirm('确定将该用户提升为评审专家?')">提升为评审专家</a>
|
||||
<a href="/admin/user/userauth/uid/<?= $item['id'];?>">编辑权限</a>
|
||||
<?php if($item['status'] == -1) :?>
|
||||
<a href="/admin/user/unban/uid/<?= $item['id'] ?>">启用</a>
|
||||
<?php elseif($item['status'] == 1): ?>
|
||||
<a href="/admin/user/ban/uid/<?= $item['id'] ?>">禁用</a>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('引用中的标题替换');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
<?php echo $this->form; ?>
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/water/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,60 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('联系人替换');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<form enctype="application/x-www-form-urlencoded" action="" method="post">
|
||||
<label>被替换者姓名:</label>
|
||||
<input type="text" name="oldname" value="<?= $this->formdata['oldname'] ?>">
|
||||
<fieldset><legend>替换信息</legend>
|
||||
<li><label>姓名:</label><input type="text" name="name" value="<?= $this->formdata['name'] ?>"></li>
|
||||
<li><label>单位:</label><input type="text" name="unit" value="<?= $this->formdata['unit'] ?>"></li>
|
||||
<li><label>地址:</label><input type="text" name="delpoint" value="<?= $this->formdata['delpoint'] ?>"></li>
|
||||
<li><label>城市:</label><input type="text" name="city" value="<?= $this->formdata['city'] ?>"></li>
|
||||
<li><label>省份:</label><input type="text" name="adminarea" value="<?= $this->formdata['adminarea'] ?>"></li>
|
||||
<li><label>国家:</label><input type="text" name="country" value="<?= $this->formdata['country'] ?>"></li>
|
||||
<li><label>邮编:</label><input type="text" name="postcode" value="<?= $this->formdata['postcode'] ?>"></li>
|
||||
<li><label>电话:</label><input type="text" name="voicenum" value="<?= $this->formdata['voicenum'] ?>"></li>
|
||||
<li><label>邮箱:</label><input type="text" name="email" value="<?= $this->formdata['email'] ?>"></li>
|
||||
</fieldset>
|
||||
<label>测试XML数据</label>
|
||||
<textarea name="testxml" rows="10" cols="80"><?= $this->formdata['testxml'] ?></textarea>
|
||||
<li><input type="submit" name="test" id="test" value="测试"> <input type="submit" id="submit" name="submit" value="全部运行(危险操作!请先测试)"></li>
|
||||
</form>
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/data/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
|
@ -1,44 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('文件大小处理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/water/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,32 +0,0 @@
|
|||
<?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('WATER元数据工具');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<p>此页面的所有功能都是对元数据库进行直接处理!请小心使用!不要多次刷新!</p>
|
||||
<hr />
|
||||
|
||||
<h2>正则替换使用说明</h2>
|
||||
<p>
|
||||
正则表达式有很强的功能,在使用前一定要进行测试。<br />
|
||||
如替换元数据中联系地址时,正则表达式PATTERN可以设置为:
|
||||
<font color="red">
|
||||
<strong>
|
||||
<pre>
|
||||
\<delPoint\>兰州市东岗西路320号\<\/delPoint\>
|
||||
</pre></strong></font>
|
||||
|
||||
替换表达式可以设置为:<font color="red"><strong>Donggang West Road 320</strong></font>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
|
@ -1,45 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('关键词替换');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/water/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,11 +0,0 @@
|
|||
<div class="well">
|
||||
<ul class="nav nav-stacked">
|
||||
<li><a href="/admin/watermd/replace">正则替换工具</a></li>
|
||||
<li class="nav-divider"></li>
|
||||
<li id="Nav-watermd-citetitle"><a href="/admin/watermd/citetitle">引用的标题替换</a></li>
|
||||
<li id="Nav-watermd-filesize"><a href="/admin/watermd/filesize">文件大小处理</a></li>
|
||||
<li id="Nav-watermd-uselimit"><a href="/admin/watermd/uselimit">使用声明处理</a></li>
|
||||
<li id="Nav-watermd-contact"><a href="/admin/watermd/contact">联系人替换</a></li>
|
||||
<li id="Nav-watermd-keyword"><a href="/admin/watermd/keyword">关键词替换</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,43 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('正则替换');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
<?php echo $this->form; ?>
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/water/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,43 +0,0 @@
|
|||
<?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/watermd">WATER元数据工具</a>');
|
||||
$this->breadcrumb('数据使用声明处理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="hidden-sm hidden-xs col-md-2">
|
||||
<?= $this->partial('watermd/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message" class="alert alert-info">
|
||||
<?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; ?>
|
||||
<?php echo $this->form; ?>
|
||||
<?php if ($this->deal) : ?>
|
||||
<div id="mdlist">
|
||||
已处理数据:
|
||||
<?php foreach ($this->deal as $deal): ?>
|
||||
<ul>
|
||||
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
||||
<li><a href="/water/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->test) : ?>
|
||||
<div>测试结果:<br />
|
||||
<?= $this->escape($this->test) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -17,7 +17,7 @@ class HiwaterController extends DataController
|
|||
{
|
||||
$this->view->pageIn = "collapse2";
|
||||
}
|
||||
else if(in_array($acName,array("hmon",'super','normal','prec')))
|
||||
else if(in_array($acName,array("hmon",'hmon2012','hmon2013','hmon2012up','hmon2012middle','hmon2012down','hmon2013up','hmon2013middle','hmon2013down','super','normal','prec')))
|
||||
{
|
||||
$this->view->pageIn = "collapse3";
|
||||
}
|
||||
|
@ -184,10 +184,9 @@ class HiwaterController extends DataController
|
|||
|
||||
function hmonAction()
|
||||
{
|
||||
$this->getmdlimited(array('西支','黄藏寺','黄草沟','峨堡','景阳岭','阿柔阳坡','阿柔阴坡','戈壁站','神沙窝沙漠站','花寨子荒漠站','张掖湿地站','阿柔超级站','大满超级站','四道桥超级站'),'水文气象');
|
||||
$md=$this->view->metadata;
|
||||
$this->getmd(array('','河川径流观测'));
|
||||
$this->view->metadata=array_merge($md,$this->view->metadata);
|
||||
$this->getmd(array('水文气象观测网'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('HiWATER:流域水文气象观测网','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function superAction()
|
||||
|
@ -381,6 +380,50 @@ class HiwaterController extends DataController
|
|||
$this->getmdlimited(array('NPP',''),'卫星遥感产品');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2012Action()
|
||||
{
|
||||
$this->getmdrestricted(array('2012','水文气象观测网'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('HiWATER:流域水文气象观测网','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2013Action()
|
||||
{
|
||||
$this->getmdrestricted(array('2013','水文气象观测网'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('HiWATER:流域水文气象观测网','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2012upAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2012','上游寒区水文试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2012middleAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2012','中游人工绿洲试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2012downAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2012','下游天然绿洲试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2013upAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2013','上游寒区水文试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2013middleAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2013','中游人工绿洲试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function hmon2013downAction()
|
||||
{
|
||||
$this->getmdrestricted(array('2013','下游天然绿洲试验区','水文气象观测网'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function listAction()
|
||||
{
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
<?php if($this->pageIn) { ?>
|
||||
<script>
|
||||
$('#<?= $this->pageIn?>').addClass('in');
|
||||
$('#<?= $this->pageIn?>').css({ display: "block"});
|
||||
$('#<?= $this->pageIn?>').show();
|
||||
$('#<?= $this->pageIn?>').prev('.accordion-heading').addClass('active');
|
||||
$('#<?= $this->pageIn?>').prev('.accordion-heading').children('a.detail-link').children('i').addClass('icon-minus');
|
||||
</script>
|
||||
<?php } ?>
|
||||
<script>
|
||||
|
|
|
@ -43,7 +43,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<?php if ($this->mcitation && (count($this->mcitation)>1)) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
|
@ -57,7 +57,9 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ol>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if ($md->citation) : ?>
|
||||
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
||||
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
||||
?>
|
||||
<hr />
|
||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
||||
|
@ -195,14 +197,14 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||
<li><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">相关搜索</a></li>
|
||||
<li><a href="#service" data-toggle="tab">服务记录</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane active">
|
||||
<div id="related" class="tab-pane">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
|
@ -535,6 +537,15 @@ function ajaxpage(page){
|
|||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
<?php if ($this->downhistory) : ?>
|
||||
$('#recommend_t').parent('li').addClass('active');
|
||||
$('#recommend').addClass('active');
|
||||
recommend(0);
|
||||
<?php else : ?>
|
||||
$('#related_t').parent('li').addClass('active');
|
||||
$('#related').addClass('active');
|
||||
<? endif; ?>
|
||||
|
||||
var config = { projection: "EPSG:4326"}
|
||||
var map=new TMap("watermap",config);
|
||||
var lat=<?= ($md->south+$md->north)/2; ?>;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-hiwater-index">
|
||||
<a class="accordion-toggle" href="/hiwater/">
|
||||
黑河生态水文遥感试验
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="nav">
|
||||
<li class="accordion-group m-navs">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-index">
|
||||
<a class="accordion-toggle" title="" href="/hiwater/">黑河生态水文遥感试验</a>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse1">航空遥感数据</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/aviation" title="查看详细">航空遥感数据</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree accordion-group" id="collapse1">
|
||||
<ul class="nav nav-list tree" id="collapse1">
|
||||
<li id="Nav-hiwater-radiometer"><a href="/hiwater/radiometer"><i class="icon-double-angle-right"></i>微波辐射计</a></li>
|
||||
<li id="Nav-hiwater-lidar"><a href="/hiwater/lidar"><i class="icon-double-angle-right"></i>激光雷达</a></li>
|
||||
<li id="Nav-hiwater-ccdlidar"><a href="/hiwater/ccdlidar"><i class="icon-double-angle-right"></i>CCD影像(与激光雷达并飞)</a></li>
|
||||
|
@ -19,26 +20,13 @@
|
|||
<li id="Nav-hiwater-ccdwidas"><a href="/hiwater/ccdwidas"><i class="icon-double-angle-right"></i>CCD影像(与多角度多波段成像观测系统并飞)</a></li>
|
||||
<li id="Nav-hiwater-nearvis"><a href="/hiwater/nearvis"><i class="icon-double-angle-right"></i>可见光和近红外成像光谱仪</a></li>
|
||||
<li id="Nav-hiwater-thermal"><a href="/hiwater/thermal"><i class="icon-double-angle-right"></i>热红外成像光谱仪</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse1s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse1s">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/airborne" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse2">航空遥感产品</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/airborne" title="查看详细">航空遥感产品</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse2">
|
||||
<li id="Nav-hiwater-demdsm"><a href="/hiwater/demdsm"><i class="icon-double-angle-right"></i>DEM和DSM</a></li>
|
||||
|
@ -47,41 +35,35 @@
|
|||
<li id="Nav-hiwater-vegparam"><a href="/hiwater/vegparam"><i class="icon-double-angle-right"></i>植被结构参数</a></li>
|
||||
<li id="Nav-hiwater-temperature"><a href="/hiwater/temperature"><i class="icon-double-angle-right"></i>地表温度</a></li>
|
||||
<li id="Nav-hiwater-soilmoisture"><a href="/hiwater/soilmoisture"><i class="icon-double-angle-right"></i>土壤水分</a></li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse2s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" href="#collapse2s">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/hmon" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse3">流域水文气象观测网</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon" title="查看详细">流域水文气象观测网</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse3">
|
||||
<li id="Nav-hiwater-super"><a href="/hiwater/super"><i class="icon-double-angle-right"></i>超级站</a></li>
|
||||
<li id="Nav-hiwater-normal"><a href="/hiwater/normal"><i class="icon-double-angle-right"></i>普通站</a></li>
|
||||
<li id="Nav-hiwater-prec"><a href="/hiwater/prec"><i class="icon-double-angle-right"></i>径流观测</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse3s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon2012" title="查看详细">2012</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse3s">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
<ul class="nav nav-list tree">
|
||||
<li><a href="/hiwater/hmon2012up"><i class="icon-double-angle-right"></i>上游</a></li>
|
||||
<li><a href="/hiwater/hmon2012middle"><i class="icon-double-angle-right"></i>中游</a></li>
|
||||
<li><a href="/hiwater/hmon2012down"><i class="icon-double-angle-right"></i>下游</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon2013" title="查看详细">2013</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li><a href="/hiwater/hmon2013up"><i class="icon-double-angle-right"></i>上游</a></li>
|
||||
<li><a href="/hiwater/hmon2013middle"><i class="icon-double-angle-right"></i>中游</a></li>
|
||||
<li><a href="/hiwater/hmon2013down"><i class="icon-double-angle-right"></i>下游</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -89,59 +71,33 @@
|
|||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/cgs" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse4">定标与真实性检验观测试验</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/cgs" title="查看详细">定标与真实性检验观测试验</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse4">
|
||||
<li id="Nav-hiwater-calibration"><a href="/hiwater/calibration"><i class="icon-double-angle-right"></i>定标观测</a></li>
|
||||
<li id="Nav-hiwater-ground"><a href="/hiwater/ground"><i class="icon-double-angle-right"></i>地基遥感观测</a></li>
|
||||
<li id="Nav-hiwater-sync"><a href="/hiwater/sync"><i class="icon-double-angle-right"></i>地面同步和加密观测</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse4s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse4s">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/wsn" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse5">生态水文无线传感器网络</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/wsn" title="查看详细">生态水文无线传感器网络</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse5">
|
||||
<li id="Nav-hiwater-waternet"><a href="/hiwater/waternet"><i class="icon-double-angle-right"></i>WATERNET</a></li>
|
||||
<li id="Nav-hiwater-soilnet"><a href="/hiwater/soilnet"><i class="icon-double-angle-right"></i>SoilNET</a></li>
|
||||
<li id="Nav-hiwater-bnunet"><a href="/hiwater/bnunet"><i class="icon-double-angle-right"></i>BNUNET</a></li>
|
||||
<li id="Nav-hiwater-bnulai"><a href="/hiwater/bnulai"><i class="icon-double-angle-right"></i>BNULAI</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading" id="collapse5s">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse5s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading">
|
||||
<a href="/hiwater/mso" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse6">非均匀下垫面地表蒸散发的多尺度观测试验</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/mso" title="查看详细">非均匀下垫面地表蒸散发的多尺度观测试验</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree collapse in" id="collapse6" >
|
||||
<li id="Nav-hiwater-autometeo"><a href="/hiwater/autometeo"><i class="icon-double-angle-right"></i>自动气象站观测</a></li>
|
||||
|
@ -150,19 +106,6 @@
|
|||
<li id="Nav-hiwater-isotope"><a href="/hiwater/isotope"><i class="icon-double-angle-right"></i>稳定同位素观测</a></li>
|
||||
<li id="Nav-hiwater-tdp"><a href="/hiwater/tdp"><i class="icon-double-angle-right"></i>树杆液流</a></li>
|
||||
<li id="Nav-hiwater-cosmos"><a href="/hiwater/cosmos"><i class="icon-double-angle-right"></i>宇宙射线土壤水分观测COSMOS</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading" id="collapse6s">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse6">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
@ -174,8 +117,8 @@
|
|||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-rsproduct">
|
||||
<a href="/hiwater/rsproduct" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse7">卫星遥感产品</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/rsproduct" title="查看详细">卫星遥感产品</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse7">
|
||||
<li id="Nav-hiwater-snow"><a href="/hiwater/snow"><i class="icon-double-angle-right"></i>积雪</a></li>
|
||||
|
@ -184,32 +127,19 @@
|
|||
<li id="Nav-hiwater-vegcov"><a href="/hiwater/vegcov"><i class="icon-double-angle-right"></i>植被覆盖度</a></li>
|
||||
<li id="Nav-hiwater-phenology"><a href="/hiwater/phenology"><i class="icon-double-angle-right"></i>物候期</a></li>
|
||||
<li id="Nav-hiwater-npp"><a href="/hiwater/npp"><i class="icon-double-angle-right"></i>NPP</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle">
|
||||
<div class="">
|
||||
<div class="accordion-heading" id="collapse7s">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse7s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-document">
|
||||
<a class="accordion-toggle" href="/hiwater/document">试验文档</a>
|
||||
<a class="accordion-toggle" href="/hiwater/document">试验文档</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-funtion">
|
||||
<a href="/hiwater/satellite" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse10">其他导航方式</a>
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="#" title="查看详细">其他导航方式</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse10">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>关键词浏览</a></li>
|
||||
|
@ -220,19 +150,6 @@
|
|||
<li id="Nav-hiwater-fund"><a href="/hiwater/fund"><i class="icon-double-angle-right"></i>项目浏览</a></li>
|
||||
<li id="Nav-hiwater-author"><a href="/hiwater/author"><i class="icon-double-angle-right"></i>作者浏览</a></li>
|
||||
<li id="Nav-hiwater-organization"><a href="/hiwater/organization"><i class="icon-double-angle-right"></i>单位浏览</a></li>
|
||||
<li>
|
||||
<div class="tree-toggle" id="collapse10">
|
||||
<div class="">
|
||||
<div class="accordion-heading">
|
||||
<a href="/hiwater/aviation" title="查看详细" class="detail-link pull-right"><i class="icon-arrow-right"></i></a>
|
||||
<a class="accordion-toggle" href="#collapse10s">航空遥感数据</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse10s">
|
||||
<li id="Nav-hiwater-tag"><a href="/hiwater/tag"><i class="icon-double-angle-right"></i>3栏目</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
@ -240,33 +157,43 @@
|
|||
|
||||
|
||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/hiwater/search" method="post">
|
||||
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
|
||||
<input type="hidden" name="submit" value="submit">
|
||||
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
|
||||
<input type="hidden" name="submit" value="submit">
|
||||
</form>
|
||||
|
||||
<style type="text/css">
|
||||
a.detail-link{display:block;}
|
||||
a.detail-link:hover{text-decoration:none;}
|
||||
ul.nav.nav-list.tree{display:none;margin-top:6px;}
|
||||
ul.nav.nav-list.tree li {margin:0 15px;}
|
||||
div.tree-toggle.accordion-heading.active a {
|
||||
background-color: #39c;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
}
|
||||
background-color: #39c;
|
||||
border-radius: 3px;
|
||||
color: #fff;}
|
||||
.m-navs ul.nav.nav-list.tree li {margin:0;}
|
||||
.m-navs ul.nav.nav-list.tree li a.accordion-toggle{ padding:4px 7px;}
|
||||
a:focus {outline:none;-moz-outline:none;}
|
||||
.m-navs .nav-list {padding: 0 5px;}
|
||||
/*.accordion-toggle{width:100px; height:55px;z-index:8;}*/
|
||||
</style>
|
||||
<script>
|
||||
$('.tree-toggle').click(function () {
|
||||
$(this).parent().children('ul.tree').toggle(200);
|
||||
//$(this).parent('.accordion-group').children('ul.tree').css({ background: "blue" });
|
||||
});
|
||||
function myfocus(element) {
|
||||
if (element.value == '回车搜索标题和摘要') {
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
function myblur(element) {
|
||||
if (element.value == '') {
|
||||
element.value = '回车搜索标题和摘要';
|
||||
}
|
||||
}
|
||||
$('.tree-toggle').click(function () {
|
||||
$(this).children().children().toggleClass('icon-minus','icon-minus', true);
|
||||
$(this).parent().children('ul.tree').toggle(200);
|
||||
$(this).parent().siblings().children('ul.tree').hide();
|
||||
});
|
||||
$('.accordion-toggle').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
function myfocus(element) {
|
||||
if (element.value == '回车搜索标题和摘要') {
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
function myblur(element) {
|
||||
if (element.value == '') {
|
||||
element.value = '回车搜索标题和摘要';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -41,7 +41,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<?php if ($this->mcitation && (count($this->mcitation)>1)) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
|
@ -62,7 +62,9 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ol>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if ($md->citation) : ?>
|
||||
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
||||
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
||||
?>
|
||||
<hr />
|
||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
||||
|
@ -200,14 +202,14 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||
<li><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">相关搜索</a></li>
|
||||
<li><a href="#service" data-toggle="tab">服务记录</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane active">
|
||||
<div id="related" class="tab-pane">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
|
@ -534,6 +536,15 @@ function ajaxpage(page){
|
|||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
<?php if ($this->downhistory) : ?>
|
||||
$('#recommend_t').parent('li').addClass('active');
|
||||
$('#recommend').addClass('active');
|
||||
recommend(0);
|
||||
<?php else : ?>
|
||||
$('#related_t').parent('li').addClass('active');
|
||||
$('#related').addClass('active');
|
||||
<? endif; ?>
|
||||
|
||||
var config = { projection: "EPSG:4326"}
|
||||
var map=new TMap("watermap",config);
|
||||
var lat=<?= ($md->south+$md->north)/2; ?>;
|
||||
|
|
|
@ -104,10 +104,10 @@ function InputValueChange(){
|
|||
var p4=new TLngLat($(input.east).val(),$(input.south).val());
|
||||
map.setViewport(new Array(p1,p2,p3,p4));
|
||||
|
||||
var west=$(input.west).val();
|
||||
var east=$(input.east).val();
|
||||
var north=$(input.north).val();
|
||||
var south=$(input.south).val();
|
||||
var west=parseFloat($(input.west).val());
|
||||
var east=parseFloat($(input.east).val());
|
||||
var north=parseFloat($(input.north).val());
|
||||
var south=parseFloat($(input.south).val());
|
||||
var bounds = new TBounds(west,south,east,north);
|
||||
rect = new TRect(bounds);
|
||||
map.addOverLay(rect);
|
||||
|
|
|
@ -56,7 +56,7 @@ class LoginOperate implements \Users\Event\LoginEvent
|
|||
return array('error'=>"Password is required",'place'=>'password');
|
||||
}
|
||||
|
||||
$sql = "SELECT id,{$this->FieldPasword} FROM {$this->tbl_member} WHERE {$this->FieldUsername}=?";
|
||||
$sql = "SELECT id,{$this->FieldPasword},status FROM {$this->tbl_member} WHERE {$this->FieldUsername}=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$rs = $sth->execute(array($data[$this->FieldUsername]));
|
||||
$row = $sth->fetch();
|
||||
|
@ -71,6 +71,10 @@ class LoginOperate implements \Users\Event\LoginEvent
|
|||
{
|
||||
return array('error'=>"wrong password",'place'=>'password');
|
||||
}
|
||||
if($row['status'] == -1)
|
||||
{
|
||||
return array('error'=>'您的帐号已被禁止登录','place'=>'password');
|
||||
}
|
||||
return true;
|
||||
}else{
|
||||
return array('error'=>"wrong password",'place'=>'username');
|
||||
|
|
|
@ -10,7 +10,7 @@ use \Helpers\Table;
|
|||
对 \Users\Account 再次进行抽象,满足后台调用的需求,屏蔽一些错误等等
|
||||
!!!!important!!!!大部分操作直接来自 \User\Account,慎重修改
|
||||
*/
|
||||
class Users extends \Zend_Controller_Plugin_Abstract
|
||||
class Users
|
||||
{
|
||||
private $db;
|
||||
protected $events = NULL; //事件
|
||||
|
@ -67,7 +67,49 @@ class Users extends \Zend_Controller_Plugin_Abstract
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 封禁用户
|
||||
* @param $userid
|
||||
* @return bool
|
||||
*/
|
||||
public function ban($userid)
|
||||
{
|
||||
if(!is_numeric($userid) || $userid < 1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql = "UPDATE users SET status=-1 WHERE id=$userid";
|
||||
$rs = $this->db->exec($sql);
|
||||
|
||||
if($rs > 0)
|
||||
{
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}//ban
|
||||
|
||||
/**
|
||||
* 解禁用户
|
||||
* @param $userid
|
||||
* @return bool
|
||||
*/
|
||||
public function unban($userid)
|
||||
{
|
||||
if(!is_numeric($userid) || $userid < 1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql = "UPDATE users SET status=1 WHERE id=$userid";
|
||||
$rs = $this->db->exec($sql);
|
||||
|
||||
if($rs > 0)
|
||||
{
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,8 +4,7 @@ ini_set('display_errors', 1);
|
|||
date_default_timezone_set('Asia/Shanghai');
|
||||
|
||||
// directory setup and class loading
|
||||
set_include_path('.' . PATH_SEPARATOR . '../include/'
|
||||
. PATH_SEPARATOR . '/var/www/card.westgis.ac.cn/include/'
|
||||
set_include_path('.' . PATH_SEPARATOR . __DIR__.'/../include/'
|
||||
. PATH_SEPARATOR . '../application/models'
|
||||
. PATH_SEPARATOR . '../application/module'
|
||||
. PATH_SEPARATOR . '../application/default/controllers'
|
||||
|
|
Loading…
Reference in New Issue