Sha256: bd90eb5fa6c0dd168dbd93bd60ae5535a945a9293f98bd2a899b5ddc58e10280

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

module FcrepoAdmin
  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), { :'data-counter' => opts[:counter] }.merge(opts.reject { |k,v| [:label, :counter, :results_view].include? k  })
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.3 lib/fcrepo_admin/blacklight_helper_behavior.rb
fcrepo_admin-0.3.2 lib/fcrepo_admin/blacklight_helper_behavior.rb
fcrepo_admin-0.3.1 lib/fcrepo_admin/blacklight_helper_behavior.rb