Author: earle Date: 2005-11-02 02:17:04 +0000 (Wed, 02 Nov 2005) New Revision: 703
Modified: trunk/Build.PL trunk/Changes trunk/PREREQUISITES trunk/lib/OpenGuides.pm trunk/lib/OpenGuides/RDF.pm Log: DOAP metadata for RSS feed from new CGI::Wiki::Plugin::RSS
Modified: trunk/Build.PL =================================================================== --- trunk/Build.PL 2005-10-23 19:24:03 UTC (rev 702) +++ trunk/Build.PL 2005-11-02 02:17:04 UTC (rev 703) @@ -222,7 +222,7 @@ 'CGI::Wiki::Plugin::Categoriser' => 0, 'CGI::Wiki::Plugin::Diff' => '0.07', # earlier buggy 'CGI::Wiki::Plugin::Locator::Grid'=> '0.02', # cope with sqlite 3 - 'CGI::Wiki::Plugin::RSS::ModWiki' => '0.073', # earlier doesn't escape XML properly + 'CGI::Wiki::Plugin::RSS::ModWiki' => '0.08', # supports DOAP metadata 'CGI::Wiki::Plugin::RSS::Reader' => '1.3', # earlier versions don't support RSS 2.0 'Class::Accessor' => 0, 'Config::Tiny' => 0,
Modified: trunk/Changes =================================================================== --- trunk/Changes 2005-10-23 19:24:03 UTC (rev 702) +++ trunk/Changes 2005-11-02 02:17:04 UTC (rev 703) @@ -15,6 +15,7 @@ - Add summary field to RDF as dc:description. - Show node summary in search results. * New "format=raw" option for outputting wiki text of a node. + * RSS feed now contains DOAP (http://usefulinc.com/doap) metadata.
RDF bugfixes: * Locales, address and summary fields now XML-escaped properly. @@ -22,6 +23,8 @@ associated fix escaping node names in RSS feed.) * Add "address" field that was missing from the RDF node view. * Update URL for Dublin Core elements in RDF index view. + * Fix URL in the RSS <channel> element to point to the RSS URL, + not the RecentChanges page URL.
Search bugfixes: * Fix bug that was breaking coordinate entry fields on search page if
Modified: trunk/PREREQUISITES =================================================================== --- trunk/PREREQUISITES 2005-10-23 19:24:03 UTC (rev 702) +++ trunk/PREREQUISITES 2005-11-02 02:17:04 UTC (rev 703) @@ -10,7 +10,7 @@ CGI::Wiki::Plugin::Categoriser CGI::Wiki::Plugin::Diff (version 0.07 or later) CGI::Wiki::Plugin::Locator::Grid (version 0.02 or later) -CGI::Wiki::Plugin::RSS::ModWiki (version 0.073 or later) +CGI::Wiki::Plugin::RSS::ModWiki (version 0.08 or later) CGI::Wiki::Plugin::RSS::Reader (version 1.3 or later) Class::Accessor Config::Tiny
Modified: trunk/lib/OpenGuides/RDF.pm =================================================================== --- trunk/lib/OpenGuides/RDF.pm 2005-10-23 19:24:03 UTC (rev 702) +++ trunk/lib/OpenGuides/RDF.pm 2005-11-02 02:17:04 UTC (rev 703) @@ -3,7 +3,7 @@ use strict;
use vars qw( $VERSION ); -$VERSION = '0.071'; +$VERSION = '0.08';
use CGI::Wiki::Plugin::RSS::ModWiki; use Time::Piece; @@ -50,6 +50,7 @@ $self->{default_city} = $config->default_city || ""; $self->{default_country} = $config->default_country || ""; $self->{site_description} = $config->site_desc || ""; + $self->{og_version} = $args{og_version};
$self; } @@ -207,9 +208,13 @@ $self->{rss_maker} = CGI::Wiki::Plugin::RSS::ModWiki->new( wiki => $self->{wiki}, site_name => $self->{site_name}, + site_url => $self->{config}->script_url, site_description => $self->{site_description}, make_node_url => $self->{make_node_url}, - recent_changes_link => $self->{config}->script_url . uri_escape($self->{config}->script_name) . "?RecentChanges" + recent_changes_link => $self->{config}->script_url . '?action=rss', + software_name => 'OpenGuides', + software_homepage => 'http://openguides.org/', + software_version => $self->{og_version}, ); }
Modified: trunk/lib/OpenGuides.pm =================================================================== --- trunk/lib/OpenGuides.pm 2005-10-23 19:24:03 UTC (rev 702) +++ trunk/lib/OpenGuides.pm 2005-11-02 02:17:04 UTC (rev 703) @@ -660,8 +660,9 @@ }
my $rdf_writer = OpenGuides::RDF->new( - wiki => $self->wiki, - config => $self->config + wiki => $self->wiki, + config => $self->config, + og_version => $VERSION, ); my $output = "Content-Type: text/plain\n"; $output .= "Last-Modified: " . $rdf_writer->rss_timestamp( %criteria ) . "\n\n";
openguides-commits@lists.openguides.org