Sha256: b732162cb71a02d2fada8680c42e374f86d6c6316ff5fd5b59863e2ab8e14b5e
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
<%# Renders the primary download that is shown first %> <% document ||= @document %> <% if document.direct_download.present? %> <% if document.direct_download[:download].is_a? Array %> <% document.direct_download[:download].each do |download| %> <%= render partial: 'download_link', locals: { download_link: download_link_file(download['label'], document.id, download['url']) } %> <% end %> <% end %> <% if document.direct_download[:download].is_a? String %> <%= render partial: 'download_link', locals: { download_link: download_link_file(download_text(document.file_format), document.id, document.direct_download[:download]['url']) } %> <% end %> <% end %> <% if document.hgl_download.present? %> <%= render partial: 'download_link', locals: { download_link: download_link_hgl(download_text(document.download_types.first[0]), document) } %> <% end %> <% if document.iiif_download.present? %> <%= render partial: 'download_link', locals: { download_link: download_link_iiif } %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight-4.0.0.pre.alpha.2 | app/views/catalog/_downloads_primary.html.erb |
geoblacklight-4.0.0.pre.alpha.1 | app/views/catalog/_downloads_primary.html.erb |