aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-08-01 19:24:40 +0200
committerPetter Reinholdtsen <pere@hungry.com>2011-08-01 19:24:40 +0200
commit9d23030bc3cfc114729e86c6ad23190f54f65d76 (patch)
tree29a74cdbc92c0f95d22ab54a8417b2de72b923b2 /perllib/FixMyStreet/App/Controller/Open311.pm
parentafc5be9a3b027222d94c8fdc72e176de4466e40b (diff)
Try to get Open311 GeoRSS output working.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Open311.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm
index f3f38bcf6..99d7bddee 100644
--- a/perllib/FixMyStreet/App/Controller/Open311.pm
+++ b/perllib/FixMyStreet/App/Controller/Open311.pm
@@ -60,7 +60,7 @@ sub old_uri : Regex('^open311\.cgi') : Args(0) {
=head2 discovery
-http://search.cpan.org/~bobtfish/Catalyst-Manual-5.8007/lib/Catalyst/Manual/Intro.pod#Action_types
+http://search.cpan.org/~bobtfish/Catalyst-Manual-5.8007/lib/Catalyst/Manual/Intro.pod
=cut
@@ -362,7 +362,7 @@ sub get_requests : Private {
$criteria->{$key} = { $op, $value };
}
-# if ('rss' eq $c->stash->{format}) {
+ if ('rss' eq $c->stash->{format}) {
# FIXME write new implementatin
# my $cobrand = Page::get_cobrand($c);
# my $alert_type = 'open311_requests_rss';
@@ -376,9 +376,14 @@ sub get_requests : Private {
# $c, $criteria, $max_requests);
# print $c->header( -type => 'application/xml; charset=utf-8' );
# print $out;
-# } else {
+ $c->stash->{type} = 'new_problems';
+ $c->stash->{search_criteria} = $criteria;
+ $c->stash->{max_requests} = $max_requests;
+ # Call Controller::Rss::output
+ $c->forward( '/rss/output' );
+ } else {
$c->forward( 'output_requests', [ $criteria, $max_requests ] );
-# }
+ }
}
# Example