Sha256: ab378c5ce3750adc9c8652c02c30ce883d5e794d774c01ccd267443d2d8d2b73

Contents?: true

Size: 1.46 KB

Versions: 20

Compression:

Stored size: 1.46 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('order_list.library_group_order_list', :library_group_name => @library_group.display_name.localize)
    xml.link order_lists_url
    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 => order_lists_url(:format => :rss)
    xml.tag! "atom:link", :rel => 'alternate', :href => order_lists_url
    #xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port}/page/opensearch"
    unless params[:query].blank?
      xml.tag! "opensearch:totalResults", @count[:query_result]
      xml.tag! "opensearch:startIndex", @order_lists.offset + 1
      xml.tag! "opensearch:itemsPerPage", @order_lists.per_page
      #xml.tag! "opensearch:Query", :role => 'request', :searchTerms => params[:query], :startPage => (params[:page] || 1)
    end
    @order_lists.each do |order_list|
      xml.item do
        xml.title order_list.title
        #xml.description(order_list.title)
        # rfc822
        xml.pubDate order_list.created_at.utc.rfc822
        xml.link order_list_url(order_list)
        xml.guid order_list_url(order_list), :isPermaLink => "true"
      end
    end
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
enju_purchase_request-0.1.0.pre9 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre8 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre7 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre6 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre5 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre4 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre3 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre2 app/views/order_lists/index.rss.builder
enju_purchase_request-0.1.0.pre app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.14 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.13 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.12 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.10 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.9 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.8 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.7 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.6 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.5 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.4 app/views/order_lists/index.rss.builder
enju_purchase_request-0.0.3 app/views/order_lists/index.rss.builder