Changeset 10149


Ignore:
Timestamp:
12/01/10 19:29:42 (18 months ago)
Author:
MichaelDaum
Message:

Item9311:

  • using Stringifier instead of StringifierContrib
  • minor improvements rendering search results


Location:
trunk/KinoSearchContrib/lib/Foswiki/Contrib/KinoSearchContrib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/KinoSearchContrib/lib/Foswiki/Contrib/KinoSearchContrib/Index.pm

    r7655 r10149  
    2424use KinoSearch::Analysis::PolyAnalyzer; 
    2525 
    26 use Foswiki::Contrib::StringifierContrib; 
     26use Foswiki::Contrib::Stringifier (); 
    2727use strict; 
    2828 
     
    567567    $filename = $1; 
    568568    my $attText = 
    569       Foswiki::Contrib::StringifierContrib->stringFor( 
     569      Foswiki::Contrib::Stringifier->stringFor( 
    570570        $filename); 
    571571         
  • trunk/KinoSearchContrib/lib/Foswiki/Contrib/KinoSearchContrib/Search.pm

    r8893 r10149  
    383383        $revDate = $hit->{date}; 
    384384    } 
     385    my $score = sprintf("%.2f", $hit->{score} * 100); 
    385386 
    386387    $tempVal =~ s/%WEB%/$resweb/go; 
    387     $tempVal =~ s/%SCORE%//go; 
     388    $tempVal =~ s/%SCORE%/$score/go; 
    388389     
    389390    # field $name only is present if the hit is an attachment 
     
    401402        $icon = ""; 
    402403        # URL for the topic 
    403         $tempVal =~ s/%MATCH%/\[\[$resweb\.$restopic\]\]/go; 
     404        $tempVal =~ s/%MATCH%/\[\[$resweb\.$restopic\]\[$restopic\]\]/go; 
    404405        # if locks are to be displayed, then find it out for each hit 
    405406        if ($showlock) { 
Note: See TracChangeset for help on using the changeset viewer.