Sha256: 9e727ceeaaee3234d869eefa40761a142052f28e5471832fdc896f9a66ce1943

Contents?: true

Size: 1.88 KB

Versions: 7

Compression:

Stored size: 1.88 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 => '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(:id => @document) %>
      </li>
    <% end %>

    <% if @document.export_formats.keys.include?( :endnote ) %>
      <li class="endnote">
        <%= link_to "Export to EndNote", catalog_path(@document, :format => 'endnote') %>
      </li>
    <% end %>

    <% if @document.respond_to?( :to_email_text ) %>
      <li class="email">
      <%= link_to "Email This", 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 "SMS This", 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 "Librarian View", librarian_view_catalog_path(@document), {:id => 'librarianLink', :name => 'librarian_view', :class => 'lightboxLink'} %>
      </li>
    <% end %>

  </ul>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curate-0.3.2 app/views/catalog/_show_tools.html.erb
curate-0.3.1 app/views/catalog/_show_tools.html.erb
curate-0.2.0 app/views/catalog/_show_tools.html.erb
curate-0.1.3 app/views/catalog/_show_tools.html.erb
curate-0.1.2 app/views/catalog/_show_tools.html.erb
curate-0.1.1 app/views/catalog/_show_tools.html.erb
curate-0.1.0 app/views/catalog/_show_tools.html.erb