Ignore:
Timestamp:
Oct 10, 2005, 12:40:37 AM (16 years ago)
Author:
Earle Martin
Message:

add node summary to search results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/SuperSearch.pm

    r684 r685  
    253253    foreach my $i ( 0 .. $#results ) {
    254254        my $name = $results[$i]{name};
     255
     256        # Add the one-line summary of the node, if there is one.
     257        my %node = $self->wiki->retrieve_node($name);
     258        $results[$i]{summary} = $node{metadata}{summary}[0];
     259
    255260        my $node_param = $formatter->node_name_to_node_param( $name );
    256261        $results[$i]{url} = $self->{wikimain} . "?$node_param";
Note: See TracChangeset for help on using the changeset viewer.