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

Back to topic list

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

Author stack
Full name Michael Stack
Date 2000-10-31 20:17:08 PST
Message User: stack
  Date: 00/10/31 20:17:08

  Modified: templates/org/joist/search SearchPage.wm
  Log:
  Made found item title a link. Added location and size. Wrote out search details in a html comment. Will help w/ search debugging
  
  Revision Changes Path
  1.8 +21 -19 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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SearchPage.wm 2000/11/01 02:11:26 1.7
  +++ SearchPage.wm 2000/11/01 04:17:08 1.8
  @@ -1,3 +1,5 @@
  +## <!-- $Id -->
  +
   ## <!-- webmacro variables -->
   ## <!-- Test for presences of $searchresult. It has everything in it. -->
   ## <!-- Get the original query object by doing: #set $query = $searchresult.getQuery( ) -->
  @@ -58,27 +60,27 @@
       <UL>
           #foreach $item in $searchresult.getSe​archResultItems( )
           {
  - <LI>#if( $item.getTitle( ) && ( $item.getTitle( ) > 0 ) )
  - {
  - <a href="$item.getFile​RelativeToHtDoc( )" >$item.getTitle()</a> <br><i>Size $item.getSize( ), Ranking $item.getRanking( )</i>
  - }
  - #else
  - {
  - <a href="$item.getFile​RelativeToHtDoc( )" >$item.getFileRe​lativeToHtDoc()</​a> <br><i>Size $item.getSize( ), Ranking $item.getRanking( )</i>
  - }
  - }
  + #set $url=$item.getFile​RelativeToHtDoc( )
  + #set $title=$url
  + #if( $item.getTitle( ) && $item.getTitle( ).length( ) )
  + {
  + #set $title=$item.getTitle( )
  + }
  +
  + <LI><a href="$url" >$title</a​><br><i>​Location: $url, Size: $item.getSize( ), Ranking: $item.getRanking( )</i></LI>
  + }
       </UL>
  - }
  + }
       
  -<FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="-1">
  -Search Details:</FONT>
  +<!--
   #set $query = $searchresult.getQuery( )
  -<table>
  -<tr><td>Query entered by user:</td><​td>$query.getQue​ryString( )</td></tr>
  -<tr><td>Query as interpreted by Search Engine:</td>​<td>$searchresu​lt.getSearchengineSe​archWords( )</td></tr>
  -<tr><td>Maximum number of results to return:</td>​<td>$query.getR​esultsPerQuery( )</td></tr>
  -<tr><td>Index Modification Date:</td><​td>$searchresult​.getIndexModDate( )</td></tr>
  -<tr><td>Index Stats:</td>​<td>$searchresul​t.getIndexStats( )</td></tr>
  +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( )
  +-->
   
  -</table>
   }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/templates/org/joist/search SearchPage.wm stack Michael Stack 2000-10-31 20:17:08 PST
Messages per page: