[Geomoose-users] Search issue - no results

Len Kne lkne at houstoneng.com
Wed Dec 16 08:23:59 EST 2009


Nils

The inputs you are using look to fit the new query service (query.php).  Try changing your URL to that file and it should work better.

http://www.geomoose.org/moose/services/query.php.html

Len

________________________________________
From: CoFIS Web [coffee at uni-bonn.de]
Sent: Wednesday, December 16, 2009 6:45 AM
To: GeoMoose Mailing list
Subject: [Geomoose-users] Search issue - no results

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geomoose-users



More information about the Geomoose-users mailing list