add xun search lib

This commit is contained in:
jack 2018-05-02 17:47:58 +08:00
parent e89817b550
commit 9cbbaf48f8
2 changed files with 5 additions and 5 deletions

View File

@ -2620,10 +2620,10 @@ group by m.uuid,m.title,m.description) md ON md.uuid=v.uuid
return true;
}
// 1. 权限认定 --skip
// 1. 权限认定 --skip
// 2. 保存变化记录 save changelog & userid
$sql = "UPDATE mdversion SET changelog=?,userid=g.owner from geonetworkmetadata g WHERE g.uuid=mdversion.uuid and mdversion.id=?";
$this->db->query($sql,array($changelog,$id));
$this->db->query($sql,array($changelog, $id));
// 3. 获取数据评审状态
$sql = "SELECT s.*,v.xml,m.title FROM mdstatus s left join mdversion v on s.uuid=v.uuid
@ -2908,7 +2908,7 @@ group by m.uuid,m.title,m.description) md ON md.uuid=v.uuid
}
//@$mail->send();
$data = array("commited"=>1,"error"=>'该版本已经成功发布!');
$data = array("commited"=>1, "error"=>'该版本已经成功发布!');
$this->jsonexit($data);
return true;
}

View File

@ -1,4 +1,6 @@
<?php
require_once '/home/lijianxuan/xunsearch/sdk/php/lib/XS.php';
class Search
{
var $terms;
@ -17,8 +19,6 @@ class Search
var $base_url;
var $expanded;
//require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php';
private function safe_query($search)
{
return preg_replace('/%|_|\'|\\\\/', '\\\\$0', stripslashes($search));