[Mapbender-commits] r10102 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Apr 11 22:56:21 PDT 2019
Author: armin11
Date: 2019-04-11 22:56:20 -0700 (Thu, 11 Apr 2019)
New Revision: 10102
Modified:
trunk/mapbender/http/php/mod_callCswMetadata.php
Log:
Fixed eu catalogue search for '*'
Modified: trunk/mapbender/http/php/mod_callCswMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_callCswMetadata.php 2019-04-11 14:35:44 UTC (rev 10101)
+++ trunk/mapbender/http/php/mod_callCswMetadata.php 2019-04-12 05:56:20 UTC (rev 10102)
@@ -491,9 +491,13 @@
}
foreach($searchTextArray as $queryString) {
- $fullTextFilter .= '<ogc:PropertyIsLike wildCard="%" singleChar="_" escapeChar="">';
+ $fullTextFilter .= '<ogc:PropertyIsLike wildCard="*" singleChar="_" escapeChar="">';
$fullTextFilter .= '<ogc:PropertyName>AnyText</ogc:PropertyName>';
- $fullTextFilter .= '<ogc:Literal>%'.$queryString.'%</ogc:Literal>';
+ if($queryString != '*'){
+ $queryString = '*' . $queryString . '*';
+ }
+ $fullTextFilter .= '<ogc:Literal>'.$queryString.'</ogc:Literal>';
+
$fullTextFilter .= '</ogc:PropertyIsLike>';
}
if (count($searchTextArray) > 1) {
More information about the Mapbender_commits
mailing list