add alias for description
This commit is contained in:
parent
0fd88b944f
commit
e46372da70
|
@ -112,7 +112,7 @@ class ServiceController extends Zend_Controller_Action
|
||||||
if (empty($w)) $w=-180;
|
if (empty($w)) $w=-180;
|
||||||
//$start=$this->_request->getParam('start');
|
//$start=$this->_request->getParam('start');
|
||||||
//$end=$this->_request->getParam('end');
|
//$end=$this->_request->getParam('end');
|
||||||
$sql="select id,title,uuid,substring(description for 400),filesize,fileformat from normalmetadata where east<? and west>? and north<? and south>?";
|
$sql="select id,title,uuid,substring(description for 400) as description,filesize,fileformat from normalmetadata where east<? and west>? and north<? and south>?";
|
||||||
if (!empty($key)) {
|
if (!empty($key)) {
|
||||||
$sql.= " and (title ilike ? or description ilike ?)";
|
$sql.= " and (title ilike ? or description ilike ?)";
|
||||||
$sql.= " order by title";
|
$sql.= " order by title";
|
||||||
|
|
Loading…
Reference in New Issue