Permalink
Browse files

improve description for RSS feeds

  • Loading branch information...
robramsaynz committed Jan 12, 2015
1 parent 4ecd514 commit 3bf7fa5489f4983c90026dd6c25330e10f84a8bd
@@ -13,6 +13,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "AudioRecording"
@items = AudioRecording.updated_since(date)
render 'shared/list'
end
@@ -13,6 +13,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "Document"
@items = Document.updated_since(date)
render 'shared/list'
end
@@ -13,6 +13,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "StillImage"
@items = StillImage.updated_since(date)
render 'shared/list'
end
@@ -14,6 +14,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "Topic"
@items = Topic.updated_since(date)
render 'shared/list'
end
@@ -13,6 +13,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "Video"
@items = Video.updated_since(date)
render 'shared/list'
end
@@ -15,6 +15,7 @@ def list
date = DateTime.parse(params[:updated_since]) if params[:updated_since]
date = DateTime.now.beginning_of_month if date.nil?

@list_type = "WebLink"
@items = WebLink.updated_since(date)
render 'shared/list'
end
@@ -11,9 +11,12 @@
xml.instruct! :xml, :version => "1.0"
xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
xml.channel do
xml.title("#{SystemSetting.site_domain} StillImages RSS Feed")
xml.title("#{SystemSetting.site_domain} #{@list_type} RSS Feed")
xml.link "http://#{SystemSetting.site_url}"
xml.description "#{SystemSetting.pretty_site_name} StillImage ordered by most update-time"
xml.description "#{SystemSetting.pretty_site_name} #{@list_type}s ordered by update-time. By default this shows items added/updated this month. "+
"An item is considered updated if it or it's tags/contributors/related_items has changed.\n"+
"\n"+
"To see earlier records use the udpated_since=date_string HTTP query-field (iso8601, rfc3339, rfc2822, rfc822)"
xml.language "en-nz"
xml.ttl "60"

@@ -106,4 +109,4 @@ xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
end
end
end
end
end

0 comments on commit 3bf7fa5

Please sign in to comment.