Sha256: 5b6905d482d63626bf01275202ff0060402249be696525f04434d6214310447a

Contents?: true

Size: 689 Bytes

Versions: 3

Compression:

Stored size: 689 Bytes

Contents

atom_feed(url: manifestations_url(format: :atom)) do |feed|
  feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name)
  feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now)

  @manifestations.each do |manifestation|
    feed.entry(manifestation) do |entry|
      entry.title(manifestation.original_title)
      if defined?(EnjuBookmark)
        entry.content(manifestation.tags.join(' '), type: 'html')
      end

      manifestation.creators.readable_by(current_user).each do |agent|
        entry.author do |author|
          author.name(agent.full_name)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.4.0.rc.1 app/views/manifestations/index.atom.builder
enju_biblio-0.4.0.beta.2 app/views/manifestations/index.atom.builder
enju_biblio-0.4.0.beta.1 app/views/manifestations/index.atom.builder