fix search problem
This commit is contained in:
parent
ef5cab577b
commit
16a9e8aecd
|
@ -225,7 +225,7 @@ class ISO19115
|
|||
if ($this->view->config)
|
||||
$geonetwork=$this->view->config->geonetwork->url;
|
||||
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'])));
|
||||
$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']));
|
||||
|
|
|
@ -66,7 +66,7 @@ class Search
|
|||
function __construct($text='')
|
||||
{
|
||||
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->terms = array();
|
||||
$this->text=$text;
|
||||
|
|
Loading…
Reference in New Issue