Changeset 685


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

add node summary to search results

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r684 r685  
    22        New "summary" metadata field for one-line summaries of nodes.
    33        Add "summary" field to RDF as dc:description.
     4        Show node summary in search results.
    45        Add "address" field that had got missed out from the RDF.
     6        Fix bug that was breaking coordinate entry fields on search page if lat/lon
     7          was being used.
    58        Replace underscores in node names in redirection message with spaces.
    69        Redirection message now links to a rendered version of the old page
  • trunk/README.CSS

    r684 r685  
    8585    Purpose: User who made a change
    8686
     87div.hit_summary
     88    Used in: supersearch.tt
     89    Purpose: One-line summary of individual search result.
     90
    8791IDs
    8892---
  • 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.