Sha256: 7f7888ee4f64b1c6e2d7d2d1d85ab14aaa3c3e921c81f806285babdb825c3762

Contents?: true

Size: 969 Bytes

Versions: 8

Compression:

Stored size: 969 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 |agent|
        entry.author do |author|
          author.name(agent.full_name)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre63 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre62 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre61 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre60 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre59 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre58 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre57 app/views/manifestations/index.opds.builder
enju_biblio-0.1.0.pre56 app/views/manifestations/index.opds.builder