Changeset 331


Ignore:
Timestamp:
Jun 15, 2006, 6:01:08 PM (13 years ago)
Author:
nick
Message:

Finish new style mini feeds support, and add tests for this code

Location:
wiki-toolkit/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/Changes

    r327 r331  
     10.71
     2                More feed code refactoring, to allow "mini" feeds with just
     3           name, and optionally distance and location. Typically used in
     4           search results, especially with Wiki::Toolkit::Plugin::Locator's
    150.70    6 June 2006
    26        Feed code has been refactored.
  • wiki-toolkit/trunk/MANIFEST

    r310 r331  
    7272t/297_feed_rss_recentchanges.t
    7373t/298_feed_rss_node_all_versions.t
     74t/299_feed_rss_gen_node_dist_feed.t
    7475t/300_feed_atom_setup.t
    7576t/301_feed_atom_add_test_data.t
    7677t/302_feed_atom_recentchanges.t
    7778t/303_feed_atom_node_all_versions.t
     79t/304_feed_atom_gen_node_dist_feed.t
    7880t/lib/Wiki/Toolkit/Plugin/Bar.pm
    7981t/lib/Wiki/Toolkit/Plugin/Foo.pm
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Atom.pm

    r330 r331  
    215215       $title =~ s/>/>/g;
    216216
     217    # What location stuff do we have?
     218    my $geo_atom = $self->format_geo($node);
     219
    217220    push @items, qq{
    218221  <entry>
     
    220223    <link href="$url" />
    221224    <id>$url</id>
     225$geo_atom
    222226  </entry>
    223227};
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm

    r330 r331  
    304304
    305305    # What location stuff do we have?
    306     my $location = undef;
    307     my $distance = undef;
     306    my $geo_rss = $self->format_geo($node);
    308307
    309308    push @items, qq{
     
    312311  <link>$url</link>
    313312  <rdfs:seeAlso rdf:resource="$rdf_url" />
     313$geo_rss
    314314</item>
    315315};
Note: See TracChangeset for help on using the changeset viewer.