Sha256: 9ebd50c646e90651d53ec553e9b8209bb5356f327707f8b3dc3557b681467b38

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

module FcrepoAdmin::Helpers
  module BlacklightHelperBehavior

    def link_to_document(doc, opts = {:label => nil, :counter => nil, :results_view => true})
      opts[:label] ||= blacklight_config.index.show_link.to_sym
      label = render_document_index_label doc, opts
      link_to label, fcrepo_admin.object_path(doc.id)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 lib/fcrepo_admin/helpers/blacklight_helper_behavior.rb
fcrepo_admin-0.6.0 lib/fcrepo_admin/helpers/blacklight_helper_behavior.rb
fcrepo_admin-0.5.5 lib/fcrepo_admin/helpers/blacklight_helper_behavior.rb
fcrepo_admin-0.5.5.pre lib/fcrepo_admin/helpers/blacklight_helper_behavior.rb