修改hiwater专题
This commit is contained in:
parent
8f53104216
commit
c7e17207f8
|
@ -51,10 +51,10 @@ class HiwaterController extends DataController
|
|||
|
||||
function indexAction()
|
||||
{
|
||||
$sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and length(t.data)>2 order by random() limit 3";
|
||||
$sql="select m.uuid,m.title,m.id,m.description from en.normalmetadata m left join en.thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and length(t.data)>2 order by random() limit 3";
|
||||
$this->view->meatdata=$this->db->fetchAll($sql);
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('HiWATER:黑河流域生态-水文过程综合遥感观测联合试验','about');
|
||||
$this->view->info = $archive->getOneArchive('Heihe Watershed Allied Telemetry Experimental Research (HiWATER)','about');
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -65,11 +65,11 @@ class HiwaterController extends DataController
|
|||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ");
|
||||
$state=$this->db->query("select count(*) from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$select=$this->db->select();
|
||||
$select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ")->order('title desc')->limitPage($page,$this->limit);
|
||||
$select->from('en.normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ")->order('title desc')->limitPage($page,$this->limit);
|
||||
$this->view->metadata = $this->db->fetchAll($select);
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
|
@ -80,11 +80,11 @@ class HiwaterController extends DataController
|
|||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ");
|
||||
$state=$this->db->query("select count(*) from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$select=$this->db->select();
|
||||
$select->from('normalmetadata as m','m.*')
|
||||
$select->from('en.normalmetadata as m','m.*')
|
||||
->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ")
|
||||
->order('m.title desc')->limitPage($page,$this->limit);
|
||||
$this->view->metadata = $this->db->fetchAll($select);
|
||||
|
@ -96,11 +96,11 @@ class HiwaterController extends DataController
|
|||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ))");
|
||||
$row=$this->db->fetchAll("select count(*) from reference where language<>'zh' and id in (select refid from mdref where uuid in (select uuid from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ))");
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') )) order by reference limit ? offset ?";
|
||||
$sql="select * from reference where language<>'zh' and id in (select refid from mdref where uuid in (select uuid from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') )) order by reference limit ? offset ?";
|
||||
$this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit,"文献");
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit,"literatures");
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
|
||||
|
@ -427,7 +427,7 @@ class HiwaterController extends DataController
|
|||
|
||||
function listAction()
|
||||
{
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by timebegin,title";
|
||||
$sql="select uuid,title from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by timebegin,title";
|
||||
$this->view->metadata=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
|
@ -440,15 +440,15 @@ class HiwaterController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
if (!empty($key)) {
|
||||
$this->view->codename=$key;
|
||||
$sql=$this->db->quoteInto("select count(k.id) from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and k.keyword=?",$key);
|
||||
$sql=$this->db->quoteInto("select count(k.id) from en.keyword k left join en.normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and k.keyword=?",$key);
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?";
|
||||
$sql="select uuid,title,id,description from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from en.keyword where keyword='".$key."') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
} else {
|
||||
$sql="select k.keyword,count(*),k.keytype from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ";
|
||||
$sql="select k.keyword,count(*),k.keytype from en.keyword k left join en.normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ";
|
||||
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'";
|
||||
$sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc';
|
||||
$state=$this->db->query($sql);
|
||||
|
@ -470,9 +470,9 @@ class HiwaterController extends DataController
|
|||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where);
|
||||
$row=$this->db->fetchAll("select count(*) from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where);
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where." order by timebegin,title limit ? offset ?";
|
||||
$sql="select uuid,title,id,description from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where." order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->key=$key;
|
||||
|
@ -482,19 +482,19 @@ class HiwaterController extends DataController
|
|||
|
||||
function timemapAction()
|
||||
{
|
||||
$sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null";
|
||||
$sql="select id,uuid,west,south,north,east,title,timebegin,timeend from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null";
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
function timelineAction()
|
||||
{
|
||||
$fn="hiwatertime.xml";
|
||||
$rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by ts_created desc limit 1");
|
||||
$rows=$this->db->fetchAll("select ts_created from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by ts_created desc limit 1");
|
||||
$last_update=strtotime($rows[0]['ts_created']);
|
||||
if (!file_exists($fn) || (filemtime($fn)<$last_update))
|
||||
{
|
||||
$dateformat="M j Y";
|
||||
$rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null order by timebegin,title");
|
||||
$rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null order by timebegin,title");
|
||||
$timexml='<data>';
|
||||
foreach($rows as $row) {
|
||||
$timexml.='<event start="'.date($dateformat,strtotime($row['timebegin'])).' GMT+0800" ';
|
||||
|
@ -519,11 +519,11 @@ class HiwaterController extends DataController
|
|||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') group by c.code,cc.name,cc.name_zh");
|
||||
$this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join en.normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') group by c.code,cc.name,cc.name_zh");
|
||||
if ($code>0 && $code<20) {
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from category where code=".$code.")");
|
||||
$row=$this->db->fetchAll("select count(*) from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from category where code=".$code.")");
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?";
|
||||
$sql="select uuid,title,description,id from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
|
@ -558,11 +558,11 @@ class HiwaterController extends DataController
|
|||
$key.=")";
|
||||
$keyword=$key;
|
||||
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")");
|
||||
$state=$this->db->query("select count(m.*) from en.normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and m.id in (select id from en.keyword where keytype='".$type."' and keyword in ".$keyword.")");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by title limit ? offset ?";
|
||||
$sql="select uuid,title from en.normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from en.keyword where keytype='".$type."' and keyword in ".$keyword.") order by title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
|
@ -605,19 +605,19 @@ class HiwaterController extends DataController
|
|||
$withoutkey.=")";
|
||||
}
|
||||
|
||||
$sql="select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id
|
||||
where s.code='hiwater' and m.id in (select id from keyword where keyword='".$limited."')
|
||||
and m.id in (select id from keyword where keyword in ".$keyword.")";
|
||||
if (!empty($without)) $sql.=" and m.id not in (select id from keyword where keyword in $withoutkey)";
|
||||
$sql="select count(m.*) from en.normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id
|
||||
where s.code='hiwater' and m.id in (select id from en.keyword where keyword='".$limited."')
|
||||
and m.id in (select id from en.keyword where keyword in ".$keyword.")";
|
||||
if (!empty($without)) $sql.=" and m.id not in (select id from en.keyword where keyword in $withoutkey)";
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where
|
||||
$sql="select uuid,title from en.normalmetadata where
|
||||
uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater')
|
||||
and id in (select id from keyword where keyword='".$limited."')
|
||||
and id in (select id from keyword where keyword in ".$keyword.")";
|
||||
if (!empty($without)) $sql.=" and id not in (select id from keyword where keyword in $withoutkey)";
|
||||
and id in (select id from en.keyword where keyword='".$limited."')
|
||||
and id in (select id from en.keyword where keyword in ".$keyword.")";
|
||||
if (!empty($without)) $sql.=" and id not in (select id from en.keyword where keyword in $withoutkey)";
|
||||
$sql.=" order by title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
|
@ -638,17 +638,17 @@ class HiwaterController extends DataController
|
|||
$key="(";
|
||||
foreach($keyword as $k)
|
||||
{
|
||||
$key.="m.id in (select id from keyword where keyword='".$k."') and ";
|
||||
$key.="m.id in (select id from en.keyword where keyword='".$k."') and ";
|
||||
}
|
||||
$key=substr($key,0,-4);
|
||||
$key.=")";
|
||||
$keyword=$key;
|
||||
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and $keyword");
|
||||
$state=$this->db->query("select count(m.*) from en.normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and $keyword");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata m where m.uuid in
|
||||
$sql="select uuid,title from en.normalmetadata m where m.uuid in
|
||||
(select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater')
|
||||
and $keyword
|
||||
order by title limit ? offset ?";
|
||||
|
@ -670,7 +670,7 @@ class HiwaterController extends DataController
|
|||
//列出作者的数据
|
||||
$sql="select username,realname from users where id=?";
|
||||
$this->view->author=$this->db->fetchRow($sql,array($id));
|
||||
$sql="select m.* from normalmetadata m left join mdauthor a on a.uuid=m.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.userid=?";
|
||||
$sql="select m.* from en.normalmetadata m left join mdauthor a on a.uuid=m.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.userid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -682,7 +682,7 @@ class HiwaterController extends DataController
|
|||
$this->view->paginator=$paginator;
|
||||
} else {
|
||||
//已经认证过的数据作者
|
||||
$sql="select u.username,u.realname,u.id,count(u.id) as count from mdauthor a left join users u on a.userid=u.id where a.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.status=1 and a.uuid in (select uuid from normalmetadata) group by u.id,u.username,u.realname";
|
||||
$sql="select u.username,u.realname,u.id,count(u.id) as count from mdauthor a left join users u on a.userid=u.id where a.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.status=1 and a.uuid in (select uuid from en.normalmetadata) group by u.id,u.username,u.realname";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -699,9 +699,9 @@ class HiwaterController extends DataController
|
|||
$this->view->ac='unverified';
|
||||
if ($id) {
|
||||
//列出数据
|
||||
$sql="select individual as username from responsible where id=?";
|
||||
$sql="select individual as username from en.responsible where id=?";
|
||||
$this->view->author=$this->db->fetchRow($sql,array($id));
|
||||
$sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where r.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.id=?";
|
||||
$sql="select distinct m.* from en.normalmetadata m left join en.role r on m.uuid=r.uuid left join en.responsible s on r.resid=s.id where r.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.id=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -713,7 +713,7 @@ class HiwaterController extends DataController
|
|||
$this->view->paginator=$paginator;
|
||||
} else {
|
||||
//列出所有作者
|
||||
$sql="select distinct responsible.individual as username,responsible.id from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')";
|
||||
$sql="select distinct responsible.individual as username,responsible.id from en.responsible left join en.role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -734,7 +734,7 @@ class HiwaterController extends DataController
|
|||
$sql="select * from fund where id=?";
|
||||
$this->view->fund=$this->db->fetchRow($sql,array($id));
|
||||
if ($this->view->fund) {
|
||||
$sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and mf.fid=?";
|
||||
$sql="select distinct m.* from en.normalmetadata m left join mdfund mf on m.uuid=mf.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and mf.fid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -765,11 +765,11 @@ class HiwaterController extends DataController
|
|||
{
|
||||
$page = $this->_request->getParam('page');
|
||||
$name = $this->_request->getParam('name');
|
||||
$state=$this->db->query("select distinct responsible.organisation from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')");
|
||||
$state=$this->db->query("select distinct responsible.organisation from en.responsible left join en.role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')");
|
||||
$this->view->organisation=$state->fetchAll();
|
||||
if (!empty($name)) {
|
||||
$this->view->codename=$name;
|
||||
$sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.organisation=?";
|
||||
$sql="select distinct m.* from en.normalmetadata m left join en.role r on m.uuid=r.uuid left join en.responsible s on r.resid=s.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.organisation=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($name));
|
||||
$rows = $sth->fetchAll();
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('数据作者浏览');
|
||||
$this->headTitle('By author');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
?>
|
||||
|
@ -14,8 +14,8 @@ $this->headLink()->appendStylesheet('/css/water.css');
|
|||
</div>
|
||||
<div class="span9">
|
||||
<ul class="nav nav-tabs">
|
||||
<li id="Nav-author-unverified"><a href="/hiwater/author">未认证的数据作者<?php if ($this->author && $this->ac=='unverified') echo ':'.$this->author['username']; ?></a></li>
|
||||
<li id="Nav-author-verified"><a href="/hiwater/author/ac/verified">已认证的数据作者<?php if ($this->author && $this->ac=='verified') echo ':'.$this->author['username'].'['.$this->author['realname'].']'; ?></a></li>
|
||||
<li id="Nav-author-unverified"><a href="/hiwater/author">Unverified author<?php if ($this->author && $this->ac=='unverified') echo ':'.$this->author['username']; ?></a></li>
|
||||
<li id="Nav-author-verified"><a href="/hiwater/author/ac/verified">Verified author<?php if ($this->author && $this->ac=='verified') echo ':'.$this->author['username'].'['.$this->author['realname'].']'; ?></a></li>
|
||||
</ul>
|
||||
<?php if ($this->author) : ?>
|
||||
<?php if (!empty($this->paginator)) : ?>
|
||||
|
@ -29,10 +29,10 @@ $this->headLink()->appendStylesheet('/css/water.css');
|
|||
<h4 class="media-heading"><a href="/hiwater/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<?php if (@$md['datadoi']) : ?>
|
||||
<h4 class="media-heading">DOI:<?php echo $md['datadoi'];?>
|
||||
<?php if (@$md['ts_submitted']) : ?> <span class="label label-info">申请日期:<?php echo $md['ts_submitted'];?></span>
|
||||
<?php else: if (@$md['ts_created']) : ?> <span class="label label-info">创建日期:<?php echo $md['ts_created'];?></span> <?php endif; ?>
|
||||
<?php if (@$md['ts_submitted']) : ?> <span class="label label-info">Submitted: <?php echo $md['ts_submitted'];?></span>
|
||||
<?php else: if (@$md['ts_created']) : ?> <span class="label label-info">Created: <?php echo $md['ts_created'];?></span> <?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (@$md['ts_published']) : ?> <span class="label label-success">发布日期:<?php echo $md['ts_published'];?></span><?php endif; ?>
|
||||
<?php if (@$md['ts_published']) : ?> <span class="label label-success">Published: <?php echo $md['ts_published'];?></span><?php endif; ?>
|
||||
</h4>
|
||||
<?php else: if (@$md['doi']): ?>
|
||||
<h4 class="media-heading">DOI:<?php echo $md['doi']; ?></h4>
|
||||
|
|
|
@ -3,7 +3,7 @@ $this->headTitle($this->config->title->site);
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('全部浏览');
|
||||
$this->headTitle('Browse');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
|
|
|
@ -3,10 +3,10 @@ $this->headTitle($this->config->title->site);
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/">Home</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
|
@ -15,7 +15,7 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<h3>数据相关文献</h3>
|
||||
<h3>Related publications</h3>
|
||||
<?php if ($this->refs) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
|
@ -24,10 +24,10 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
<li><?php echo $md['reference'];
|
||||
if ($md['link'])
|
||||
{
|
||||
echo ' <a href="'.$md['link'].'">下载</a>';
|
||||
echo ' <a href="'.$md['link'].'">download</a>';
|
||||
}
|
||||
?>
|
||||
[<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)">相关数据</a>]
|
||||
[<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)">Related dataset</a>]
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle('Fund');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml') ?>
|
||||
<div class='row'>
|
||||
|
@ -16,11 +16,11 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
<?php foreach($this->paginator as $md) : ?>
|
||||
<div class="well">
|
||||
<h4><a href="/hiwater/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']>5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?></div>
|
||||
No: <?php echo $md['fund_id']; ?> | Type: <?php echo $md['fund_type']; ?> | Datasets: <?php echo $md['datacount']; ?>条,<?php echo $md['filesize']>5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?></div>
|
||||
<?php endforeach; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php else : ?>
|
||||
暂无对应信息。
|
||||
No data.
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle('Fund');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml') ?>
|
||||
|
@ -14,7 +14,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<div class="span9">
|
||||
<div class="well">
|
||||
<h4><a href="/hiwater/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title']);?></a></h4>
|
||||
编号:<?php echo $this->fund['fund_id']; ?> | 类型:<?php echo $this->fund['fund_type']; ?>
|
||||
No: <?php echo $this->fund['fund_id']; ?> | Type: <?php echo $this->fund['fund_type']; ?>
|
||||
</div>
|
||||
<?php if (!empty($this->paginator)) : ?>
|
||||
<hr />
|
||||
|
@ -32,7 +32,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<?php endforeach; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php else : ?>
|
||||
暂无对应信息。
|
||||
No data.
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
|
|
@ -3,7 +3,7 @@ $this->headTitle($this->config->title->site);
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/">Home</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/hiwater/">'.$this->config->title->hiwater.'</a>');
|
||||
$this->breadcrumb('数据列表');
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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/">HiWATER</a>
|
||||
<a class="accordion-toggle" title="" href="/hiwater/">Introduction of HiWATER</a>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
@ -10,60 +10,60 @@
|
|||
<li class="accordion-group">
|
||||
<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/aviation" title="查看详细">航空遥感数据</a>
|
||||
<a class="accordion-toggle" href="/hiwater/aviation" title="details">Airborne remote sensing raw dataset</a>
|
||||
</div>
|
||||
<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>
|
||||
<li id="Nav-hiwater-widas"><a href="/hiwater/widas"><i class="icon-double-angle-right"></i>多角度多波段成像观测系统WiDAS</a></li>
|
||||
<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 id="Nav-hiwater-radiometer"><a href="/hiwater/radiometer"><i class="icon-double-angle-right"></i>Airborne microwave radiometers</a></li>
|
||||
<li id="Nav-hiwater-lidar"><a href="/hiwater/lidar"><i class="icon-double-angle-right"></i>LiDAR raw data</a></li>
|
||||
<li id="Nav-hiwater-ccdlidar"><a href="/hiwater/ccdlidar"><i class="icon-double-angle-right"></i>CCD image data (LiDAR)</a></li>
|
||||
<li id="Nav-hiwater-widas"><a href="/hiwater/widas"><i class="icon-double-angle-right"></i>WIDAS</a></li>
|
||||
<li id="Nav-hiwater-ccdwidas"><a href="/hiwater/ccdwidas"><i class="icon-double-angle-right"></i>CCD image data (WIDAS)</a></li>
|
||||
<li id="Nav-hiwater-nearvis"><a href="/hiwater/nearvis"><i class="icon-double-angle-right"></i>Visible and near-infrared hyperspectral radiometer</a></li>
|
||||
<li id="Nav-hiwater-thermal"><a href="/hiwater/thermal"><i class="icon-double-angle-right"></i>Thermal-Infrared hyperspectral radiometer</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<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/airborne" title="查看详细">航空遥感产品</a>
|
||||
<a class="accordion-toggle" href="/hiwater/airborne" title="details">Airborne remote sensing data products</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>
|
||||
<li id="Nav-hiwater-reflectance"><a href="/hiwater/reflectance"><i class="icon-double-angle-right"></i>地表反射率/反照率</a></li>
|
||||
<li id="Nav-hiwater-vegtypeair"><a href="/hiwater/vegtypeair"><i class="icon-double-angle-right"></i>植被类型分布</a></li>
|
||||
<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>
|
||||
<li id="Nav-hiwater-reflectance"><a href="/hiwater/reflectance"><i class="icon-double-angle-right"></i>Albedo</a></li>
|
||||
<li id="Nav-hiwater-vegtypeair"><a href="/hiwater/vegtypeair"><i class="icon-double-angle-right"></i>Land cover/use</a></li>
|
||||
<li id="Nav-hiwater-vegparam"><a href="/hiwater/vegparam"><i class="icon-double-angle-right"></i>Vegetation Height</a></li>
|
||||
<li id="Nav-hiwater-temperature"><a href="/hiwater/temperature"><i class="icon-double-angle-right"></i>Land surface temperature </a></li>
|
||||
<li id="Nav-hiwater-soilmoisture"><a href="/hiwater/soilmoisture"><i class="icon-double-angle-right"></i>Soil moisture</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<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/hmon" title="查看详细">流域水文气象观测网</a>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon" title="details">Hydrometeorological observation network</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree" id="collapse3">
|
||||
<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/hmon2012" title="查看详细">2012</a>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon2012" title="details">2012</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li><a href="/hiwater/hmon2012up"><i class="icon-double-angle-right"></i>up-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2012middle"><i class="icon-double-angle-right"></i>middle-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2012down"><i class="icon-double-angle-right"></i>down-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2012up"><i class="icon-double-angle-right"></i>The cold region hydrology experimental area</a></li>
|
||||
<li><a href="/hiwater/hmon2012middle"><i class="icon-double-angle-right"></i>The artificial oasis experimental area</a></li>
|
||||
<li><a href="/hiwater/hmon2012down"><i class="icon-double-angle-right"></i>The natural oasis eco-hydrological experimental area</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>
|
||||
<a class="accordion-toggle" href="/hiwater/hmon2013" title="details">2013</a>
|
||||
</div>
|
||||
<ul class="nav nav-list tree">
|
||||
<li><a href="/hiwater/hmon2013up"><i class="icon-double-angle-right"></i>up-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2013middle"><i class="icon-double-angle-right"></i>middle-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2013down"><i class="icon-double-angle-right"></i>down-stream</a></li>
|
||||
<li><a href="/hiwater/hmon2013up"><i class="icon-double-angle-right"></i>The cold region hydrology experimental area</a></li>
|
||||
<li><a href="/hiwater/hmon2013middle"><i class="icon-double-angle-right"></i>The artificial oasis experimental area</a></li>
|
||||
<li><a href="/hiwater/hmon2013down"><i class="icon-double-angle-right"></i>The natural oasis eco-hydrological experimental area</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -72,19 +72,19 @@
|
|||
<li class="accordion-group">
|
||||
<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/cgs" title="查看详细">定标与真实性检验观测试验</a>
|
||||
<a class="accordion-toggle" href="/hiwater/cgs" title="details">Calibration and validation experiment</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 id="Nav-hiwater-calibration"><a href="/hiwater/calibration"><i class="icon-double-angle-right"></i>Calibration</a></li>
|
||||
<li id="Nav-hiwater-ground"><a href="/hiwater/ground"><i class="icon-double-angle-right"></i>Ground-based remote sensing</a></li>
|
||||
<li id="Nav-hiwater-sync"><a href="/hiwater/sync"><i class="icon-double-angle-right"></i>The ground based synchronous observation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<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/wsn" title="查看详细">生态水文无线传感器网络</a>
|
||||
<a class="accordion-toggle" href="/hiwater/wsn" title="details">Eco-hydrological wireless sensor network</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>
|
||||
|
@ -97,35 +97,35 @@
|
|||
<li class="accordion-group">
|
||||
<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/mso" title="查看详细">非均匀下垫面地表蒸散发的多尺度观测试验</a>
|
||||
<a class="accordion-toggle" href="/hiwater/mso" title="details">The multi-scale observation experiment on evapotranspiration over heterogeneous land surfaces</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>
|
||||
<li id="Nav-hiwater-ec"><a href="/hiwater/ec"><i class="icon-double-angle-right"></i>涡动相关观测</a></li>
|
||||
<li id="Nav-hiwater-las"><a href="/hiwater/las"><i class="icon-double-angle-right"></i>大孔径闪烁仪观测</a></li>
|
||||
<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 id="Nav-hiwater-autometeo"><a href="/hiwater/autometeo"><i class="icon-double-angle-right"></i>Automatic meteorological station</a></li>
|
||||
<li id="Nav-hiwater-ec"><a href="/hiwater/ec"><i class="icon-double-angle-right"></i>Eddy covariance system</a></li>
|
||||
<li id="Nav-hiwater-las"><a href="/hiwater/las"><i class="icon-double-angle-right"></i>Large aperture scintillometer</a></li>
|
||||
<li id="Nav-hiwater-isotope"><a href="/hiwater/isotope"><i class="icon-double-angle-right"></i>Stable isotopic observation</a></li>
|
||||
<li id="Nav-hiwater-tdp"><a href="/hiwater/tdp"><i class="icon-double-angle-right"></i>Thermal Dissipation sap flow velocity Probe</a></li>
|
||||
<li id="Nav-hiwater-cosmos"><a href="/hiwater/cosmos"><i class="icon-double-angle-right"></i>Cosmic-ray soil moisture</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-satellite">
|
||||
<a class="accordion-toggle" href="/hiwater/satellite">Satallite</a>
|
||||
<a class="accordion-toggle" href="/hiwater/satellite">Satellite remote sensing raw dataset</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="accordion-group">
|
||||
<div class="tree-toggle accordion-heading" id="Nav-hiwater-rsproduct">
|
||||
<a href="#" class="detail-link pull-right"><i class="icon-plus"></i></a>
|
||||
<a class="accordion-toggle" href="/hiwater/rsproduct" title="查看详细">Satallite products</a>
|
||||
<a class="accordion-toggle" href="/hiwater/rsproduct" title="details">Satellite remote sensing data products</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>
|
||||
<li id="Nav-hiwater-sm"><a href="/hiwater/sm"><i class="icon-double-angle-right"></i>土壤水分</a></li>
|
||||
<li id="Nav-hiwater-vegtype"><a href="/hiwater/vegtype"><i class="icon-double-angle-right"></i>植被类型分布</a></li>
|
||||
<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-snow"><a href="/hiwater/snow"><i class="icon-double-angle-right"></i>Snow cover</a></li>
|
||||
<li id="Nav-hiwater-sm"><a href="/hiwater/sm"><i class="icon-double-angle-right"></i>Soil moisture</a></li>
|
||||
<li id="Nav-hiwater-vegtype"><a href="/hiwater/vegtype"><i class="icon-double-angle-right"></i>Land cover/use</a></li>
|
||||
<li id="Nav-hiwater-vegcov"><a href="/hiwater/vegcov"><i class="icon-double-angle-right"></i>Fractional vegetation cover</a></li>
|
||||
<li id="Nav-hiwater-phenology"><a href="/hiwater/phenology"><i class="icon-double-angle-right"></i>Crop phenology</a></li>
|
||||
<li id="Nav-hiwater-npp"><a href="/hiwater/npp"><i class="icon-double-angle-right"></i>NPP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('分单位浏览');
|
||||
$this->headTitle('By organization');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml') ?>
|
||||
|
@ -17,7 +17,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
|
||||
|
||||
<?php if (!empty($this->paginator)) : ?>
|
||||
<h3>当前浏览:<?php echo $this->codename; ?></h3>
|
||||
<h3>Current browse: <?php echo $this->codename; ?></h3>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<ul id="datalist">
|
||||
<?php foreach($this->paginator as $md) : ?>
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
|
||||
$this->headTitle('快速搜索');
|
||||
$this->headTitle('Quick Search');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class='row'>
|
||||
|
@ -30,7 +30,7 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
else :
|
||||
?>
|
||||
<div>
|
||||
<p>您的搜索结果为空,请尝试其他关键词进行查询。</p>
|
||||
<p>No results.</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@ $this->headTitle($this->config->title->data);
|
|||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
|
@ -14,7 +14,7 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
<div class="span9">
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='mdlist'>
|
||||
<h1>关键词:<?php echo $this->codename; ?> 【<a href="/hiwater/tag/">全部关键词</a>】</h1>
|
||||
<h1>Tag: <?php echo $this->codename; ?> 【<a href="/hiwater/tag/">All tags</a>】</h1>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div class="md-list">
|
||||
|
@ -31,7 +31,7 @@ $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验
|
|||
|
||||
<div>
|
||||
<?php
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
$keytypezh=array('place'=>'Place','theme'=>'Theme','discipline'=>'Discipline','stratum'=>'Stratum','temporal'=>'Temporal');
|
||||
$type='';
|
||||
foreach($this->keywords as $cg) :
|
||||
if ($type!=$cg['keytype']) :
|
||||
|
@ -41,7 +41,7 @@ foreach($this->keywords as $cg) :
|
|||
$type=$cg['keytype'];
|
||||
?>
|
||||
<h4><a href="/hiwater/tag/keytype/<?php echo $type; ?>"><?php echo $keytypezh[$type]; ?></a>
|
||||
<?php if ($this->keytype) : ?><a class="pull-right" href="/hiwater/tag"><i class="icon-tags"></i>全部关键词</a> <?php endif; ?></h4>
|
||||
<?php if ($this->keytype) : ?><a class="pull-right" href="/hiwater/tag"><i class="icon-tags"></i>All tags</a> <?php endif; ?></h4>
|
||||
<ul class="inline">
|
||||
<li><a href='/hiwater/tag/key/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php else : ?>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('缩略图浏览');
|
||||
$this->headTitle('Thumbnail');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,'masonry');
|
||||
?>
|
||||
|
@ -28,7 +28,7 @@ $this->theme->AppendPlus($this,'masonry');
|
|||
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
|
||||
</p>
|
||||
</div>
|
||||
<span class="pull-right"><a href="/hiwater/view/uuid/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>查看</a></span>
|
||||
<span class="pull-right"><a href="/hiwater/view/uuid/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>View details</a></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('时间轴导航');
|
||||
$this->headTitle('Timeline');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/hiwater/">'.$this->config->title->hiwater.'</a>');
|
||||
$this->breadcrumb('时间轴导航');
|
||||
$this->breadcrumb('Timeline');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('时空导航');
|
||||
$this->headTitle('Timemap');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
|
@ -10,7 +10,7 @@ $this->headScript()->appendFile('/js/timeline_var.js');
|
|||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
||||
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<style>
|
||||
img{max-width:none}
|
||||
|
|
|
@ -3,93 +3,65 @@
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle($this->metadata->title);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
|
||||
$this->breadcrumb('查看元数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->theme->AppendPlus($this,'tianditu');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验');
|
||||
if(!empty($this->dataService)) {
|
||||
$this->theme->AppendModel($this,"dataservice");
|
||||
}
|
||||
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
|
||||
?>
|
||||
<style>
|
||||
h3.gs_rt{font-size:110%;}
|
||||
#file-list li:hover {background-color: #f5f5f5;}
|
||||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
#watermap img {max-width:none;}
|
||||
</style>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||
</h3>
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);
|
||||
echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images/china.png" alt="Chinese Version"></a>';?>
|
||||
</h3>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<div>
|
||||
<div>
|
||||
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
||||
<p style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($this->mcitation && (count($this->mcitation)>1)) : ?>
|
||||
<?php if ($md->citation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
{
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if(!empty($ref->attid)) {
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
}
|
||||
else
|
||||
echo '<li>'.$ref->reference.'<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a> <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
||||
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
||||
?>
|
||||
<h4><i class="icon-quote-left muted"></i>Citation<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-107.html" ><i class="icon-comment"></i>Help</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<span class="label label-info">Paper Cite</span>
|
||||
<?php endif; echo $this->escape($md->citation);
|
||||
if (strpos($md->citation,$md->datadoi)) : ?>
|
||||
(Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</a> |
|
||||
<a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex</a>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">Dataset Cite</span>
|
||||
<?php echo str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; ?>
|
||||
(Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</a> |
|
||||
<a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex</a>)</p>
|
||||
<?php endif; endif; ?>
|
||||
<?php if ($this->ref) : ?>
|
||||
<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>
|
||||
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
|
||||
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Related publications (Recommended by Author)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
|
@ -98,17 +70,17 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Special Publications</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
|
@ -116,43 +88,38 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Cited By</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>More</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
|
||||
<h4><i class="icon-legal text-warning"></i>Limitations</h4>
|
||||
<?php
|
||||
if ($this->uselimits) :
|
||||
foreach($this->uselimits as $uselimit) :
|
||||
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
|
||||
endforeach;
|
||||
?>
|
||||
<?php else : ?>
|
||||
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||
<p>中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)</p>
|
||||
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if($this->data_archives){ ?>
|
||||
<h4>数据相关新闻</h4>
|
||||
<h4>Dataset News</h4>
|
||||
<ul>
|
||||
<?php
|
||||
foreach($this->data_archives as $v){?>
|
||||
|
@ -162,11 +129,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<h4><i class="icon-money text-info"></i>Fund</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<li><?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
|
@ -175,7 +142,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||
<h4><i class="icon-bolt text-warning"></i>Online Resources</h4>
|
||||
<ul class="unstyled inline"><?php foreach($this->resources as $link) : ?>
|
||||
<li><a class="label" href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
||||
<?php
|
||||
|
@ -202,61 +169,35 @@ 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><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>
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">Related Dataset</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Literatures</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Searching</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommendation</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane">
|
||||
<div id="related" class="tab-pane active">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
<ul class="nav nav-pills lit-nav">
|
||||
<li><a href="javascript:;" class="literatures lit-nav-btn">西部计划知识库</a></li>
|
||||
<li><a href="javascript:;" class="scholar lit-nav-btn">Google学术搜索</a></li>
|
||||
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI学术搜索</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="literature-list">
|
||||
</div>
|
||||
</div>
|
||||
<div id="gsearch" class="tab-pane">
|
||||
<ul id="searchlist" class="unstyled well well-small"></ul>
|
||||
</div>
|
||||
<div id="service" class="tab-pane">
|
||||
<?php if ($this->downhistory) : ?>
|
||||
<p>最近10条服务记录如下:</p>
|
||||
<ol start="1">
|
||||
<?php
|
||||
foreach($this->downhistory as $v){
|
||||
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
|
||||
if (!empty($v->offlineproject))
|
||||
echo ' 用途:'.$v->offlineproject;
|
||||
elseif (!empty($v->onlineproject))
|
||||
echo ' 用途:'.$v->onlineproject;
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php else : ?>
|
||||
暂时没有服务记录,欢迎您下载使用!
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="recommend" class="tab-pane">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<hr />
|
||||
<div id="comments">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<p class="strong">This data is not published yet. You are invited to review this dataset, to make the data released as soon as possible.<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<?php else : ?>
|
||||
<h4>数据评论</h4>
|
||||
<h4>Comment</h4>
|
||||
<div id="allcomments">
|
||||
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
|
||||
<div id="loading"><img src="/images/loading.gif" />Loading</div>
|
||||
</div>
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
@ -273,7 +214,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<form class="form-horizontal" id="postcommentform">
|
||||
<div class="control-group">
|
||||
<label class="control-label">姓名</label>
|
||||
<label class="control-label">Name</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="author" value="<?php echo $name;?>" />
|
||||
</div>
|
||||
|
@ -291,13 +232,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">内容</label>
|
||||
<label class="control-label">Content</label>
|
||||
<div class="controls">
|
||||
<textarea name="content" class="span5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">验证码</label>
|
||||
<label class="control-label">Captcha</label>
|
||||
<div class="controls">
|
||||
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
|
||||
</div>
|
||||
|
@ -306,24 +247,24 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<div class="controls">
|
||||
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
|
||||
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
|
||||
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
|
||||
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">Submit</a><button type="reset" id="reset" class="btn">Reset</button><span id="returninfo"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="infobox"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>Category: </a></li>
|
||||
<?php foreach($this->category as $cat): ?>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name_zh);?></a></li>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name);?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||
$kw=array('discipline'=>'Discipline','place'=>'Place','theme'=>'Theme','temporal'=>'Temporal','stratum'=>'Stratum');
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
|
@ -344,21 +285,20 @@ foreach($this->keys as $cg) :
|
|||
endforeach;
|
||||
?></ul>
|
||||
<?php if ($md->doi) : ?>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI</span> <a href="http://dx.doi.org/<?php echo $md->doi; ?>"><?php echo $md->doi; ?></a></li></ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">DOI</span> <?php echo $md->doi; ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<hr />
|
||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>文件列表</a></h4>
|
||||
<h4>Information<a class="btn pull-right" href="javascript:void(0);" id="show-list" title="" rel="<?= $md->uuid;?>"><i class="icon-file"></i>File list</a></h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md->fileformat) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||
<li><strong>File Format: </strong><?php echo $md->fileformat; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>大小:</strong><?php echo $md->filesize; ?>MB</li>
|
||||
<li><strong>Size: </strong><?php echo $md->filesize; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||
<li><strong>Downloaded: </strong><?php echo $this->downloaded; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||
<li><strong>Viewed: </strong><?php echo $this->viewed; ?></li>
|
||||
<!--
|
||||
<?php if ($md->projection) : ?>
|
||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||
|
@ -376,57 +316,51 @@ endforeach;
|
|||
<?php endif; ?>
|
||||
-->
|
||||
<?php if (!empty($md->timebegin)) : ?>
|
||||
<li id="datatimes"><strong>数据时间范围:</strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($this->doc)) : ?>
|
||||
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
||||
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
|
||||
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
|
||||
echo "/data/wiki/$title";
|
||||
}else{
|
||||
echo $this->doc;
|
||||
}?>">数据说明文档</a></li>
|
||||
<li id="datatimes"><strong>Temporal Range: </strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->attachments) : ?>
|
||||
<li><span class="label label-success">相关文档:</span>
|
||||
<li id="attach"><span>Documents: </span>
|
||||
<?php foreach ($this->attachments as $k=>$a) : ?>
|
||||
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
|
||||
<?php endforeach; ?>
|
||||
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||
<li id="datatype"><strong>Sharing: </strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
|
||||
</ul>
|
||||
<div id="linkurl">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="You are invited to review this dataset.">Reviewing</a>
|
||||
<?php else : if (!$md->datatype) : ?>
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="直接下载">
|
||||
在线下载
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="Download">
|
||||
Download
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
if(!empty($this->dataService)) { ?>
|
||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php if($this->dataService['service_type'] == 2) { ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="Select the subset" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php }else if($this->dataService['service_type'] == 3) {?>
|
||||
<a href="#selectDataWindow" role="button" class="btn btn-primary btn-large btn-block" data-toggle="modal">
|
||||
<?php } ?>
|
||||
<?php }else{ ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="Free of Charge!">
|
||||
<?php } ?>
|
||||
放入数据篮
|
||||
Put in the Basket
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr />
|
||||
<h4>空间位置</h4>
|
||||
<h4>Google Maps</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
<h4>联系信息</h4>
|
||||
<h4>Contacts</h4>
|
||||
<div id="authors">
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
||||
$party_zh=array('resourceProvider'=>'Resource Provider','custodian'=>'Custodian','owner'=>'Owner','user'=>'User','distributor'=>'Distributor','originator'=>'Originator','pointOfContact'=>'Point Of Contact','principalInvestigator'=>'Principal Investigator','processor'=>'Processor','publisher'=>'Publisher','author'=>'Author');
|
||||
$r='';
|
||||
$i=0;
|
||||
foreach($this->authors as $k=>$author) :
|
||||
|
@ -454,40 +388,27 @@ endforeach;
|
|||
</ul>
|
||||
<hr />
|
||||
<ul class="unstyled">
|
||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>下载元数据:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc格式"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
|
||||
<li>Last update: <?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>Download Metadata:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF" title="Adobe PDF"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt" title="OpenOffice odt"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc" title="Word doc"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="XML" title="XML"></a>
|
||||
</li>
|
||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||
<?php if($this->version->c>0):?>
|
||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<li id="dataversion">Version: <a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="pull-left">分享到</div>
|
||||
<!-- JiaThis Button BEGIN -->
|
||||
<div class="jiathis_style" style="margin-left:10px;">
|
||||
<a class="jiathis_button_tsina"></a>
|
||||
<a class="jiathis_button_qzone"></a>
|
||||
<a class="jiathis_button_tqq"></a>
|
||||
<a class="jiathis_button_renren"></a>
|
||||
<a class="jiathis_button_douban"></a>
|
||||
<a class="jiathis_button_tsohu"></a>
|
||||
<a class="jiathis_button_t163"></a>
|
||||
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
|
||||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
$(".colorbox").colorbox({photo:"true"});
|
||||
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
|
||||
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
|
||||
|
@ -495,7 +416,7 @@ $(function() {
|
|||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
||||
$('#related_t').click(function(){related(1);});
|
||||
$('#recommend_t').click(function(){recommend(0);});
|
||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
|
||||
$('.literatures').click(function(){literature(1);});
|
||||
ajaxpage(0);
|
||||
related(1);
|
||||
|
@ -532,59 +453,29 @@ function recommend(page){
|
|||
recommend_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
function getFileList(){
|
||||
getFileList_h('<?php echo $md->uuid;?>');
|
||||
}
|
||||
|
||||
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; ?>;
|
||||
var lng=<?= ($md->east+$md->west)/2; ?>;
|
||||
map.centerAndZoom(new TLngLat(lng,lat),12);
|
||||
map.setMapType(TMAP_HYBRID_MAP);
|
||||
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
|
||||
var marker=new TMarker(new TLngLat(lng,lat));
|
||||
map.addOverLay(marker);
|
||||
<?php else :?>
|
||||
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
|
||||
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
|
||||
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
|
||||
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
|
||||
map.setViewport(new Array(p1,p2,p3,p4));
|
||||
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
|
||||
var config = {
|
||||
strokeColor:"blue", //折线颜色
|
||||
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
|
||||
strokeWeight:"3px", //折线的宽度,以像素为单位
|
||||
opacity:0.3, //折线的透明度,取值范围0 - 1
|
||||
strokeStyle:"dashed" //折线的样式,solid或dashed
|
||||
};
|
||||
var rect = new TRect(bounds,config);
|
||||
map.addOverLay(rect);
|
||||
//map.zoomOut();
|
||||
<?php endif; ?>
|
||||
var config = {
|
||||
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
|
||||
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
|
||||
offset:[0,0], //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息,true表示显示,false表示隐藏。
|
||||
};
|
||||
//创建缩放平移控件对象
|
||||
control=new TNavigationControl(config);
|
||||
//添加缩放平移控件
|
||||
map.addControl(control);
|
||||
var map = null;
|
||||
var mapElementID = "watermap";
|
||||
var bounds = null;
|
||||
var rectangle = null;
|
||||
var zoomlevel = 1;
|
||||
var bound = {
|
||||
lat:<?= ($md->south+$md->north)/2; ?>,
|
||||
lng:<?= ($md->east+$md->west)/2; ?>,
|
||||
zoom:<?php if ($md->north==$md->south) { ?> 10 <?php }else {?> 16 <?php }?>,
|
||||
east:<?= $md->east; ?>,
|
||||
west:<?= $md->west; ?>,
|
||||
south:<?= $md->south; ?>,
|
||||
north:<?= $md->north; ?>
|
||||
}
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
||||
<?php endif;?>
|
Loading…
Reference in New Issue