Skip to content

Commit

Permalink
Merge pull request #4315 from sul-dlss/index-rss
Browse files Browse the repository at this point in the history
Update index.rss.builder from upstream.
  • Loading branch information
cbeer authored Jul 10, 2024
2 parents bde0587 + a1ee903 commit daf86e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/catalog/index.rss.builder
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# frozen_string_literal: true

xml.instruct! :xml, :version=>"1.0"
xml.rss(:version=>"2.0") {
xml.instruct! :xml, version: "1.0"
xml.rss(version: "2.0") {
xml.channel {
xml.title(t('blacklight.search.title', :application_name => application_name))
xml.link(search_action_url(search_state.to_h))
xml.description(t('blacklight.search.title', :application_name => application_name))
xml.title(t('blacklight.search.page_title.title', constraints: render_search_to_page_title(params), application_name: application_name))
xml.link(search_action_url(search_state.to_h.merge(only_path: false)))
xml.description(t('blacklight.search.page_title.title', constraints: render_search_to_page_title(params), application_name: application_name))
xml.language('en-us')
@document_list.each_with_index do |document, document_counter|
xml << Nokogiri::XML.fragment(render_document_partials(document, blacklight_config.view_config(:rss).partials, document_counter: document_counter))
@response.documents.each_with_index do |document, document_counter|
xml << render_xml_partials(document, blacklight_config.view_config(:rss).partials, document_counter: document_counter)
end
}
}

0 comments on commit daf86e3

Please sign in to comment.