修复不同同步water thumbs问题

This commit is contained in:
wlx 2009-12-22 11:18:24 +00:00
parent 6a97ffe006
commit a4a6f62c63
2 changed files with 3 additions and 1 deletions

View File

@ -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"; $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); $rows=$this->db->fetchAll($sql);
foreach($rows as $row) { 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=?"; $sql="update thumbnail set data=? where id=?";
$this->db->query($sql,array(base64_encode($data),$row->id)); $this->db->query($sql,array(base64_encode($data),$row->id));
} }

View File

@ -12,6 +12,8 @@ geonetwork.params.username = gis
geonetwork.params.password = gispassword geonetwork.params.password = gispassword
geonetwork.params.dbname = geonetwork geonetwork.params.dbname = geonetwork
watergeonetwork.url=http://210.77.68.252:8080/geonetwork/
seekspace.url=http://seekspace.resip.ac.cn/ seekspace.url=http://seekspace.resip.ac.cn/
seekspace.handleurl=http://seekspace.resip.ac.cn/handle seekspace.handleurl=http://seekspace.resip.ac.cn/handle