Sha256: b08cdb6ab6ecef67105cd6fcd48eb4be3ea0fed1c8dd26ce03cbb3dc01774c5d

Contents?: true

Size: 1.94 KB

Versions: 11

Compression:

Stored size: 1.94 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 "Cite This", citation_catalog_path(:id => @document[:id]), {:id => 'citeLink', :name => 'citation', :class => 'lightboxLink'} %>
      </li>
    <% end %>
    
    <% if @document.export_formats.keys.include?( :refworks_marc_txt ) %>
      <li class="refworks">
        <%= link_to "Export to RefWorks", refworks_export_url(@document) %>        
      </li>
    <% end %>
    
    <% if @document.export_formats.keys.include?( :endnote ) %>
      <li class="endnote">
        <%= link_to "Export to EndNote", catalog_path(@document[:id], :format => 'endnote') %>
      </li>
    <% end %>
    
    <% if @document.respond_to?( :to_email_text ) %>
      <li class="email">
         <%= link_to "Email This", email_catalog_path(:id => @document[:id]), {:id => 'emailLink', :name => 'email', :class => 'lightboxLink'} %>
      </li>
    <%- end -%>
    <%- if @document.respond_to?( :to_sms_text ) -%>
      <li class="sms">
         <%= link_to "SMS This", sms_catalog_path(:id => @document[:id]), {:id => 'smsLink', :name => 'sms', :class => 'lightboxLink'} %>
      </li>
    <%- end -%>
    
    <% if @document.respond_to?(:to_marc) %>
      <li class="librarian_view">
        <%= link_to "Librarian View", librarian_view_catalog_path(@document[:id]), {:id => 'librarianLink', :name => 'librarian_view', :class => 'lightboxLink'} %>
      </li>
    <% end %>
    
  </ul>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-3.1.2 app/views/catalog/_show_tools.html.erb
blacklight-3.1.1 app/views/catalog/_show_tools.html.erb
blacklight-3.1.0 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0pre8 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0pre7 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0pre6 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0pre4 app/views/catalog/_show_tools.html.erb
blacklight-3.0.0pre3 app/views/catalog/_show_tools.html.erb
blacklight-3.0pre2 app/views/catalog/_show_tools.html.erb
blacklight-3.0pre1 app/views/catalog/_show_tools.html.erb