change the default geonetwork url

This commit is contained in:
wlx 2012-06-12 09:49:27 +00:00
parent 335fc86d06
commit aba271ee99
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class ISO19115
if ($this->view->config) if ($this->view->config)
$geonetwork=$this->view->config->geonetwork->url; $geonetwork=$this->view->config->geonetwork->url;
else else
$geonetwork='/geonetwork/'; $geonetwork='http://westdc.westgis.ac.cn/geonetwork/';
$thumb=base64_encode(file_get_contents($geonetwork.'srv/cn/resources.get?access=public&id='.$r->gid.'&fname='.urlencode($this->graph['filename']))); $thumb=base64_encode(file_get_contents($geonetwork.'srv/cn/resources.get?access=public&id='.$r->gid.'&fname='.urlencode($this->graph['filename'])));
$sql="insert into thumbnail (id,data,filetype,filedesc,filename) values(?,?,?,?,?)"; $sql="insert into thumbnail (id,data,filetype,filedesc,filename) values(?,?,?,?,?)";
$db->query($sql,array($id,$thumb,$this->graph['filetype'],$this->graph['filedesc'],$this->graph['filename'])); $db->query($sql,array($id,$thumb,$this->graph['filetype'],$this->graph['filedesc'],$this->graph['filename']));