Changeset 484


Ignore:
Timestamp:
Sep 18, 2004, 4:49:46 PM (17 years ago)
Author:
kake
Message:

New "ignore_minor_edits" option for Recent Changes RSS.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r483 r484  
    234234        'CGI::Wiki::Plugin::GeoCache'     => 0,
    235235        'CGI::Wiki::Plugin::Locator::UK'  => '0.09',
    236         'CGI::Wiki::Plugin::RSS::ModWiki' => '0.02',
     236        'CGI::Wiki::Plugin::RSS::ModWiki' => '0.04', # for ignore_minor_changes
    237237        'CGI::Wiki::Plugin::RSS::Reader'  => '1.3',  # earlier versions don't support RSS 2.0
    238238        'Config::Tiny'                    => 0,
  • trunk/Changes

    r483 r484  
    88        Set some pages to non-editable and non-deletable that should have been.
    99        Recent Changes RSS fixed so "wiki:importance" is set correctly.
     10        New "ignore_minor_edits" option for Recent Changes RSS.
    1011
    11120.39    15 September 2004
  • trunk/PREREQUISITES

    r483 r484  
    1212CGI::Wiki::Plugin::GeoCache
    1313CGI::Wiki::Plugin::Locator::UK (version 0.09 or later)
    14 CGI::Wiki::Plugin::RSS::ModWiki (version 0.02 or later)
     14CGI::Wiki::Plugin::RSS::ModWiki (version 0.04 or later)
    1515CGI::Wiki::Plugin::RSS::Reader (version 1.3 or later)
    1616Config::Tiny
  • trunk/lib/OpenGuides/RDF.pm

    r483 r484  
    3333                                         config => $config );
    3434
     35  # RDF version of a node.
    3536  print "Content-type: text/plain\n\n";
    3637  print $rdf_writer->emit_rdfxml( node => "Masala Zone, N1 0NU" );
     38
     39  # Ten most recent changes.
     40  print "Content-type: text/plain\n\n";
     41  print $rdf_writer->make_recentchanges_rss( items => 10 );
    3742
    3843=head1 METHODS
     
    240245=item B<make_recentchanges_rss>
    241246
    242   print "Content-type: text/plain\n\n";
    243   print $rdf_writer->make_recentchanges_rss;
     247  # Ten most recent changes.
     248  print "Content-type: text/plain\n\n";
     249  print $rdf_writer->make_recentchanges_rss(
     250                                             items => 10,
     251                                           );
     252
     253  # All the changes in the past week, ignoring minor edits.
     254  print "Content-type: text/plain\n\n";
     255  print $rdf_writer->make_recentchanges_rss(
     256                                             days               => 2,
     257                                             ignore_minor_edits => 1,
     258                                           );
    244259
    245260=cut
     
    255270     );
    256271
    257     if ( $args{items} ) {
    258         return $rssmaker->recent_changes( items => $args{items} );
    259     } elsif ( $args{days} ) {
    260         return $rssmaker->recent_changes( days => $args{days} );
    261     } else {
    262         return $rssmaker->recent_changes;
    263     }
     272    my %criteria;
     273    $criteria{items} = $args{items} if $args{items};
     274    $criteria{days} = $args{days} if $args{days};
     275    $criteria{ignore_minor_changes} if $args{ignore_minor_edits};
     276    return $rssmaker->recent_changes( %criteria );
    264277}
    265278
  • trunk/wiki.cgi

    r483 r484  
    107107            my $items = $q->param("items") || "";
    108108            my $days  = $q->param("days")  || "";
     109            my $ignore_minor_edits = $q->param("ignore_minor_edits") ? 1 : 0;
    109110            emit_recent_changes_rss( items => $items, days => $days);
    110111        } elsif ( $feed eq "chef_dan" ) {
Note: See TracChangeset for help on using the changeset viewer.