[Geomoose-users] Search issue - no results

CoFIS Web coffee at uni-bonn.de
Wed Dec 16 07:45:17 EST 2009


Hello altogether,

I am trying to modify the search function (GM 2.0.1) to fit my data. I 
modified the settings in my mapbook, mapfile and itemquery.html (below). 
However, the search does not return any results - and it takes only a 
split second. So I guess, it does not really search the shapefile at all:

"No results found for your query!"

Where should I look for what?

Thanks,
Nils

***

<!-- mapbook service -->
<service name="search_admin">
   <url>php/itemquery.php</url>
     <step type="input">
       <input type="select" name="fieldname0" title="Search by:">
         <option value="wereda">Wereda</option>
         <option value="region">Region</option>
       </input>

       <input type="hidden" name="comparitor0" value="like-icase"/>
       <input type="user" name="value0" title=""/>
       <input type="hidden" name="layer0" value="administration/wereda"/>
       <input type="hidden" name="template0" value="itemquery"/>
       <input type="hidden" name="highlight" value="true"/>
       <input type="hidden" name="mode" value="search"/>
     </step>
</service>

<!-- mapbook catalog -->
<tool name="search_admin" title="Search" type="service" 
service="search_admin" selectable="false"/>


In my mapfile in
METADATA
'identify_record'	'tool_identify/wereda_identify.html'
'itemquery'		'tool_select/admin_04_wereda_itemquery.html'
#'itemquery-filteritem'	'region'
'itemquery-filter'	'/.*[qstring].*/i'
'qstring_validation_pattern'	'.'
END	#METADATA


admin_04_wereda_itemquery.html says
<!-- MapServer Template -->
<tr>
<td>[wereda]</td>
<td>[region]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Wereda', 
'Region', '[region]', 
'/srv/coffeeshop/map/tool_select/admin_04_wereda_itemquery.html'); 
Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img 
src="images/toolbar/zoomto.png" border="0" title="Click here to zoom 
selected wereda"></a></td>
</tr>

-- 
Center for Development Research
Department of Ecology and Resource Management

Walter-Flex-Strasse 3
53113 Bonn (Germany)

Tel.:   +49 (0) 228 - 73-1793
FAX:    +49 (0) 228 - 73-1889

E-Mail: coffee at uni-bonn.de

Web:    http://www.cofis.info/atlas
         http://www.coffee.uni-bonn.de




More information about the Geomoose-users mailing list