Author: earle Date: 2005-10-10 00:37:43 +0100 (Mon, 10 Oct 2005) New Revision: 684
Modified: trunk/templates/supersearch.tt Log: add summary field to search results; fix bug breaking distance input fields if lat/lon is being used
Modified: trunk/templates/supersearch.tt =================================================================== --- trunk/templates/supersearch.tt 2005-10-09 22:51:40 UTC (rev 683) +++ trunk/templates/supersearch.tt 2005-10-09 23:37:43 UTC (rev 684) @@ -35,22 +35,11 @@ <tr> <th>Location:</th> <td> - <ul> - [% IF coord_field_1 == 'os_x' OR coord_field_1 == 'osie_x' %] - <li> - within <input type="text" name="[% dist_field %]" value="[% dist %]" size="5" maxlength="5" /> metres - of [% coord_field_1_name %] - <input type="text" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" size="10" maxlength="10" />, - [% coord_field_2_name %] - <input type="text" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" size="10" maxlength="10" /> - </li> - [% END %] - <li> - within <input type="text" name="latlong_dist" value="[% dist %]" size="5" maxlength="5" /> metres - of latitude <input type="text" name="latitude" value="[% latitude %]" size="10" maxlength="10" /> - longitude <input type="text" name="longitude" value="[% longitude %]" size="10" maxlength="10" /> - </li> - </ul> + <p> + within <input type="text" name="[% dist_field %]" value="[% dist %]" size="5" maxlength="5" /> metres of<br /> + [% coord_field_1_name %] <input type="text" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" size="10" maxlength="10" />,<br /> + [% coord_field_2_name %] <input type="text" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" size="10" maxlength="10" /> + </p> </td> </tr> <tr> @@ -73,9 +62,10 @@ <a href="[% result.url %]"><b>[% result.name %]</b></a> (score: [% result.score %]) [% IF result.distance %] ([% result.distance %] metres away) - [% END %] - <br /> + [% END %][% IF result.summary %] + <div class="hit_summary"> [% result.summary %] + </div>[% END %] </li> [% END %] </ol>
openguides-commits@lists.openguides.org