From 16a9e8aecdc0f82a28a7a5a26f6358eeb16a6553 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 20 Mar 2014 18:42:56 +0000 Subject: [PATCH] fix search problem --- application/models/ISO19115.php | 2 +- application/models/Search.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php index 96fb4311..23b0f309 100755 --- a/application/models/ISO19115.php +++ b/application/models/ISO19115.php @@ -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'])); diff --git a/application/models/Search.php b/application/models/Search.php index 964b6e24..f66b64e1 100644 --- a/application/models/Search.php +++ b/application/models/Search.php @@ -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;