Sha256: 20ae52195ab23b22c866e302a41c93264257c270ff6e8ef219ae8fcf3ebc5a55
Contents?: true
Size: 1.99 KB
Versions: 9
Compression:
Stored size: 1.99 KB
Contents
<%- # Compare with render_document_functions_partial helper, and # _document_functions partial. BL actually has two groups # of document-related tools. "document functions" by default # contains Bookmark/Folder functionality shown on both results and # item view. While "document tools" contains external export type # functions by default only on detail. -%> <ul class="tools"> <% if (@document.respond_to?(:export_as_mla_citation_txt) || @document.respond_to?(:export_as_apa_citation_txt)) %> <li class="cite"> <%= link_to t('blacklight.tools.cite'), citation_catalog_path(:id => @document), {:id => 'citeLink', :name => 'citation', :class => 'lightboxLink'} %> </li> <% end %> <% if @document.export_formats.keys.include?( :refworks_marc_txt ) %> <li class="refworks"> <%= link_to t('blacklight.tools.refworks'), refworks_export_url(:id => @document) %> </li> <% end %> <% if @document.export_formats.keys.include?( :endnote ) %> <li class="endnote"> <%= link_to t('blacklight.tools.endnote'), catalog_path(@document, :format => 'endnote') %> </li> <% end %> <% if @document.respond_to?( :to_email_text ) %> <li class="email"> <%= link_to t('blacklight.tools.email'), email_catalog_path(:id => @document), {:id => 'emailLink', :name => 'email', :class => 'lightboxLink'} %> </li> <%- end -%> <%- if @document.respond_to?( :to_sms_text ) -%> <li class="sms"> <%= link_to t('blacklight.tools.sms'), sms_catalog_path(:id => @document), {:id => 'smsLink', :name => 'sms', :class => 'lightboxLink'} %> </li> <%- end -%> <% if @document.respond_to?(:to_marc) %> <li class="librarian_view"> <%= link_to t('blacklight.tools.librarian_view'), librarian_view_catalog_path(@document), {:id => 'librarianLink', :name => 'librarian_view', :class => 'lightboxLink'} %> </li> <% end %> </ul>
Version data entries
9 entries across 9 versions & 1 rubygems