From a4a6f62c63d27ffd64a44041046d899cb0eb3d2c Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 22 Dec 2009 11:18:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E5=90=8C=E5=90=8C?= =?UTF-8?q?=E6=AD=A5water=20thumbs=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 2 +- application/config.ini | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index a3a059e6..e7544bf1 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -71,7 +71,7 @@ class Admin_DataController extends Zend_Controller_Action $sql="select g.id as gid,m.uuid,t.* from thumbnail t left join metadata m on t.id=m.id left join watergn g on m.uuid=g.uuid where t.filetype is not null and t.filename is not null"; $rows=$this->db->fetchAll($sql); foreach($rows as $row) { - $data=file_get_contents($this->view->config->geonetwork->url.'srv/cn/resources.get?access=public&id='.$row->gid.'&fname='.urlencode($row->filename)); + $data=file_get_contents($this->view->config->watergeonetwork->url.'srv/cn/resources.get?access=public&id='.$row->gid.'&fname='.urlencode($row->filename)); $sql="update thumbnail set data=? where id=?"; $this->db->query($sql,array(base64_encode($data),$row->id)); } diff --git a/application/config.ini b/application/config.ini index dd1b5def..9adbcf29 100755 --- a/application/config.ini +++ b/application/config.ini @@ -12,6 +12,8 @@ geonetwork.params.username = gis geonetwork.params.password = gispassword geonetwork.params.dbname = geonetwork +watergeonetwork.url=http://210.77.68.252:8080/geonetwork/ + seekspace.url=http://seekspace.resip.ac.cn/ seekspace.handleurl=http://seekspace.resip.ac.cn/handle