fix search problem

This commit is contained in:
wlx 2014-03-20 18:42:56 +00:00
parent ef5cab577b
commit 16a9e8aecd
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,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='http://westdc.westgis.ac.cn/geonetwork/'; $geonetwork='http://www.sanjiangyuan.org.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']));

View File

@ -66,7 +66,7 @@ class Search
function __construct($text='') function __construct($text='')
{ {
require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php'; require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php';
$this->xs=new XS('heihe'); $this->xs=new XS('westdc');
$this->search=$this->xs->search; $this->search=$this->xs->search;
$this->terms = array(); $this->terms = array();
$this->text=$text; $this->text=$text;