Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/templates/org/joist/search SearchPage.wm

Project highlights: Architectural Overview

joist
Discussion topic

Hide all messages in topic

All messages in topic

CVS update: joist/templates/org/joist/search SearchPage.wm

Author anoncvs
Full name anonymous CVS access
Date 2000-12-02 19:19:19 PST
Message User: jrobbins
  Date: 00/12/02 19:19:19

  Modified: templates/org/joist/search SearchPage.wm
  Log:
  applied stylesheet
  
  Revision Changes Path
  1.14 +94 -91 joist/templates/org/​joist/search/SearchP​age.wm
  
  Index: SearchPage.wm
  ====================​====================​====================​=======
  RCS file: /cvs/joist/templates​/org/joist/search/Se​archPage.wm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SearchPage.wm 2000/11/07 01:40:45 1.13
  +++ SearchPage.wm 2000/12/03 03:19:19 1.14
  @@ -1,91 +1,94 @@
  -## <!-- $Id -->
  -
  -## <!-- webmacro variables -->
  -## <!-- Test for presences of $searchresult. It has everything in it. -->
  -## <!-- Get the original query object by doing: #set $query = $searchresult.getQuery( ) -->
  -## <!-- Once you have the query object, you can ask the following: -->
  -## <!-- Query index file name: $query.getSearchIndex( ) -->
  -## <!-- Query results per page: $query.getResultsPerQuery( ) -->
  -## <!-- Query: $query.getQueryString( ); -->
  -## <!-- From the searchresult itself you can get the following: -->
  -## <!-- Number Of Hits: $searchresult.getNumberOfHits( ) -->
  -## <!-- Index Name: $searchresult.getIndexName( ) -->
  -## <!-- Index Mod Date: $searchresult.getIndexModDate( );
  -## <!-- Index Stats: $searchresult.getIndexStats( ); -->
  -## <!-- Index Path: $searchresult.getIndexPointer( ); -->
  -## <!-- Query after searchengine processing: $searchresult.getSe​archengineSearchWord​s( ); -->
  -## <!-- Cycle on list of search result items by doing this: #foreach $item in $searchresult.getSe​archResultItems( ) -->
  -## <!-- For each search result item, you can ask: -->
  -## <!-- $item.getRanking( ) $item.getSize( ) <a href="$item.getFile​RelativeToHtDoc( )">$item.getFile( )</a> $item.getTitle( ) -->
  -## <!-- Finally, print out the total searchresult object by just putting $searchresult in your page -->
  -##
  -
  -
  -
  -<!-- Commenting out search field since there is already one in the side nav
  -<P>
  -<FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  -Simple Search</FONT>
  -<P>
  -<FONT FACE="TIMES">
  -<FORM ACTION="Search" METHOD="post">
  -<INPUT TYPE="hidden" NAME="resultsPerPage" VALUE="40">
  -Query: <INPUT NAME="query" SIZE="10"><BR>
  -<INPUT TYPE="submit" NAME="Button" VALUE="Search">
  -<INPUT TYPE="submit" NAME="Button" VALUE="Cancel"> </FORM>
  -</FONT>
  --->
  -
  -
  -#if( $searchresult )
  -{
  - #if ($searchresult.getNumberOfHits( ).equals(0))
  - {
  - Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) items.
  - } #else {
  - #if ($searchresult.getNumberOfHits( ).equals(1))
  - {
  - Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) item.
  - } #else {
  - Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) items, listed in order of computed relevance.
  - }
  - }
  -
  -#if( !$searchresult.getNumberOfHits( ).equals(0))
  -{
  - <P>
  - <FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  - Search Results:</FONT>
  - <P>
  -}
  -
  - #if( $searchresult.getSe​archResultItems( ) )
  - {
  - <OL>
  - #foreach $item in $searchresult.getSe​archResultItems( )
  - {
  - #set $url=$item.getSourceCastURL( )
  - #set $location=$item.ge​tFileRelativeToHtDoc​( )
  - #set $title=$location
  - #if( $item.getTitle( ) && $item.getTitle( ).length( ) )
  - {
  - #set $title=$item.getTitle( )
  - }
  -
  - <LI><a href="$url" >$title</a​><br><i>​Size: $item.getSize( ), Ranking: $item.getRanking( )</i></LI>
  - }
  - </OL>
  - }
  -
  -<!--
  -#set $query = $searchresult.getQuery( )
  -Search Details:
  -
  -Query entered by user: $query.getQueryString( )
  -Query as interpreted by Search Engine: $searchresult.getSe​archengineSearchWord​s( )
  -Maximum number of results: $query.getResultsPerQuery( )
  -Search index modification date: $searchresult.getIndexModDate( )
  -Search index stats: $searchresult.getIndexStats( )
  --->
  -
  -}
  +## <!-- $Id -->
  +
  +## <!-- webmacro variables -->
  +## <!-- Test for presences of $searchresult. It has everything in it. -->
  +## <!-- Get the original query object by doing: #set $query = $searchresult.getQuery( ) -->
  +## <!-- Once you have the query object, you can ask the following: -->
  +## <!-- Query index file name: $query.getSearchIndex( ) -->
  +## <!-- Query results per page: $query.getResultsPerQuery( ) -->
  +## <!-- Query: $query.getQueryString( ); -->
  +## <!-- From the searchresult itself you can get the following: -->
  +## <!-- Number Of Hits: $searchresult.getNumberOfHits( ) -->
  +## <!-- Index Name: $searchresult.getIndexName( ) -->
  +## <!-- Index Mod Date: $searchresult.getIndexModDate( );
  +## <!-- Index Stats: $searchresult.getIndexStats( ); -->
  +## <!-- Index Path: $searchresult.getIndexPointer( ); -->
  +## <!-- Query after searchengine processing: $searchresult.getSe​archengineSearchWord​s( ); -->
  +## <!-- Cycle on list of search result items by doing this: #foreach $item in $searchresult.getSe​archResultItems( ) -->
  +## <!-- For each search result item, you can ask: -->
  +## <!-- $item.getRanking( ) $item.getSize( ) <a href="$item.getFile​RelativeToHtDoc( )">$item.getFile( )</a> $item.getTitle( ) -->
  +## <!-- Finally, print out the total searchresult object by just putting $searchresult in your page -->
  +##
  +
  +
  +
  +<!-- Commenting out search field since there is already one in the side nav
  +<P>
  +<FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  +Simple Search</FONT>
  +<P>
  +<FONT FACE="TIMES">
  +<FORM ACTION="Search" METHOD="post">
  +<INPUT TYPE="hidden" NAME="resultsPerPage" VALUE="40">
  +Query: <INPUT NAME="query" SIZE="10"><BR>
  +<INPUT TYPE="submit" NAME="Button" VALUE="Search">
  +<INPUT TYPE="submit" NAME="Button" VALUE="Cancel"> </FORM>
  +</FONT>
  +-->
  +
  +<p class="PlainText">
  +#if( $searchresult )
  +{
  + #if ($searchresult.getNumberOfHits( ).equals(0))
  + {
  + Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) items.
  + } #else {
  + #if ($searchresult.getNumberOfHits( ).equals(1))
  + {
  + Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) item.
  + } #else {
  + Your search for <b>$query</b> returned $searchresult.getNumberOfHits( ) items, listed in order of computed relevance.
  + }
  + }
  +</p>
  +
  +#if( !$searchresult.getNumberOfHits( ).equals(0))
  +{
  + <P class="header" nowrap>
  + ##<FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  + Search Results:
  + ##</FONT>
  + <P>
  +}
  +
  + #if( $searchresult.getSe​archResultItems( ) )
  + {
  + <OL class="TableData">
  + #foreach $item in $searchresult.getSe​archResultItems( )
  + {
  + #set $url=$item.getSourceCastURL( )
  + #set $location=$item.ge​tFileRelativeToHtDoc​( )
  + #set $title=$location
  + #if( $item.getTitle( ) && $item.getTitle( ).length( ) )
  + {
  + #set $title=$item.getTitle( )
  + }
  +
  + <LI class="TableDate"><a href="$url" >$title</a><br>
  + <SPAN class="PlainText">Size: $item.getSize( ), Ranking: $item.getRanking( )</SPAN></LI>
  + }
  + </OL>
  + }
  +
  +<!--
  +#set $query = $searchresult.getQuery( )
  +Search Details:
  +
  +Query entered by user: $query.getQueryString( )
  +Query as interpreted by Search Engine: $searchresult.getSe​archengineSearchWord​s( )
  +Maximum number of results: $query.getResultsPerQuery( )
  +Search index modification date: $searchresult.getIndexModDate( )
  +Search index stats: $searchresult.getIndexStats( )
  +-->
  +
  +}
Messages per page: