Blacklight Plugin

RSS feed link could be included in default application layout

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.6
  • Component/s: None
  • Description:
    Hide
    Currently the RSS feed that is available in Blacklight does not advertise itself in the default application layout. Something like the following code (I couldn't find a rails way to do a link_tag) can be added to advertise the rss feed. Place within the head tags.

     <link rel='alternate' href="<%= catalog_index_path(:params=> params, :format => :rss) %>" type="application/rss+xml" title="rss feed" />
    Show
    Currently the RSS feed that is available in Blacklight does not advertise itself in the default application layout. Something like the following code (I couldn't find a rails way to do a link_tag) can be added to advertise the rss feed. Place within the head tags.  <link rel='alternate' href="<%= catalog_index_path(:params=> params, :format => :rss) %>" type="application/rss+xml" title="rss feed" />

Issue Links

Activity

Hide
Jason Ronallo added a comment - 01/Jun/09 4:11 PM
There might be a cleaner way to do this but it should probably only be present on the catalog index pages like so:

<% if params[:controller] == 'catalog' and params[:action] == 'index'%>
      <link rel='alternate' href="<%= catalog_index_path(:params=> params, :format => :rss) %>" type="application/rss+xml" title="rss feed" />
<% end %>
Show
Jason Ronallo added a comment - 01/Jun/09 4:11 PM There might be a cleaner way to do this but it should probably only be present on the catalog index pages like so: <% if params[:controller] == 'catalog' and params[:action] == 'index'%>       <link rel='alternate' href="<%= catalog_index_path(:params=> params, :format => :rss) %>" type="application/rss+xml" title="rss feed" /> <% end %>
Hide
Jonathan Rochkind added a comment - 19/May/10 11:05 AM
Auto-discovery link for RSS now included in index view.

Done using new extra_head_content, in controller rather than view. Wasn't sure whether it was best to put it in controller or view, opted for controller because this way it'll show up in people's custom views without changes, so long as they call the head content helper.

Note that until the RSS feed is actually fixed to not use hard coded Solr stored fields, the RSS feed may not actually work.
Show
Jonathan Rochkind added a comment - 19/May/10 11:05 AM Auto-discovery link for RSS now included in index view. Done using new extra_head_content, in controller rather than view. Wasn't sure whether it was best to put it in controller or view, opted for controller because this way it'll show up in people's custom views without changes, so long as they call the head content helper. Note that until the RSS feed is actually fixed to not use hard coded Solr stored fields, the RSS feed may not actually work.

People

Dates

  • Created:
    01/Jun/09 3:21 PM
    Updated:
    19/May/10 11:05 AM
    Resolved:
    19/May/10 11:05 AM