Sha256: 491967adc8ee6f2810cbdc1a2c2781f91917a705c4894674ff25fa0472a77135

Contents?: true

Size: 1.45 KB

Versions: 18

Compression:

Stored size: 1.45 KB

Contents

xml.instruct! :xml, :version=>"1.0"
xml.rss('version' => "2.0",
        'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
        'xmlns:atom' => "http://www.w3.org/2005/Atom"){
  xml.channel{
    xml.title t('page.listing', model: t('activerecord.models.tag')) + " (#{@library_group.display_name.localize})"
    xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: nil, only_path: true))}"
    xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
    xml.language @locale.to_s
    xml.ttl "60"
    xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: :rss, only_path: true))}"
    xml.tag! "atom:link", rel: 'alternate', href: tags_url
    xml.tag! "atom:link", rel: 'search', type: 'application/opensearchdescription+xml', href: page_opensearch_url
    unless params[:query].blank?
      xml.tag! "opensearch:totalResults", @count[:query_result]
      xml.tag! "opensearch:startIndex", @tags.offset + 1
      xml.tag! "opensearch:itemsPerPage", @tags.per_page
      xml.tag! "opensearch:Query", :role => 'request', :searchTerms => h(params[:query]), :startPage => (h(params[:page]) || 1)
    end
    @tags.each do |tag|
      xml.item do
        xml.title tag.name
        xml.pubDate tag.created_at.utc.rfc822
        xml.link tag_url(tag.name)
        xml.guid tag_url(tag.name), :isPermaLink => "true"
      end
    end
  }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_bookmark-0.2.2 app/views/tags/index.rss.builder
enju_bookmark-0.2.1 app/views/tags/index.rss.builder
enju_bookmark-0.2.0 app/views/tags/index.rss.builder
enju_bookmark-0.2.0.beta.5 app/views/tags/index.rss.builder
enju_bookmark-0.2.0.beta.3 app/views/tags/index.rss.builder
enju_bookmark-0.2.0.beta.2 app/views/tags/index.rss.builder
enju_bookmark-0.2.0.beta.1 app/views/tags/index.rss.builder
enju_bookmark-0.1.3 app/views/tags/index.rss.builder
enju_bookmark-0.1.2 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre23 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre22 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre21 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre20 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre19 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre18 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre17 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre16 app/views/tags/index.rss.builder
enju_bookmark-0.1.2.pre15 app/views/tags/index.rss.builder