Sha256: 96222127f3c4efe116704c00a2ea15c3bdbe93836f01e93f12c26a0974bdc892
Contents?: true
Size: 1004 Bytes
Versions: 23
Compression:
Stored size: 1004 Bytes
Contents
atom_feed(:url => manifestations_url(:format => :atom), "xmlns:opds" => "http://opds-spec.org/2010/catalog", "xmlns:jepa" => "http://www.jepa.or.jp/xmlns/atomPhonetics/1.1" ) do |feed| feed.title t('manifestation.query_search_result', :query => @query, :library_group_name => @library_group.display_name.localize) feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now) feed.link :rel => 'start', :href => manifestations_url(:format => :opds), :type => "application/atom+xml;profile=opds-catalog;kind=navigation" @manifestations.each do |manifestation| feed.entry(manifestation) do |entry| entry.link :rel => "http://opds-spec.org/acquisition/borrow", :href => manifestation_url(manifestation), :type => 'text/html' entry.title(manifestation.original_title) manifestation.creators.readable_by(current_user).each do |patron| entry.author do |author| author.name(patron.full_name) end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems