Ignore:
Timestamp:
29/11/07 11:03:23 (12 years ago)
Author:
lawrence
Message:

Support for synonyms in semantic search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/semantic.kid

    r3069 r3070  
    22    <body> 
    33        <div id="SemanticSearchResults"> 
    4             <span py:if="c.narrower!=[] or c.broader!=[]">You could also try </span> 
     4            <span py:if="c.semAvailable">You could also try - </span> 
     5            <span py:if="c.synonyms !=[]">  
     6                synonym(s): <span py:for="i,url in c.synonyms"><a href="$url">$i</a>&nbsp;</span> 
     7                <span py:if="c.narrower!=[] or c.broader!=[]">;</span> 
     8            </span> 
    59            <span py:if="c.narrower !=[]">  
    610                narrower search(s): <span py:for="i,url in c.narrower"><a href="$url">$i</a>&nbsp;</span> 
     11                <span py:if="c.broader!=[]">;</span> 
    712            </span> 
    8             <span py:if="c.narrower !=[] and c.broader!=[]">;</span> 
    913            <span py:if="c.broader !=[]">  
    1014                broader search(s): <span py:for="i,url in c.broader"><a href="$url">$i</a>&nbsp;</span> 
    11             </span> 
    12             <span py:if="c.narrower==[] and c.broader==[]">No alternatives available</span> 
     15            </span>. 
     16            <span py:if="not c.semAvailable">No alternatives available</span> 
    1317        </div> 
    1418    </body> 
Note: See TracChangeset for help on using the changeset viewer.