Module: BatchSelectHelper

Defined in:
app/helpers/batch_select_helper.rb

Overview

View Helpers for Hydra Batch Edit functionality

Instance Method Summary collapse

Instance Method Details

#button_for_add_to_batch(document) ⇒ Object

Displays the button to select/deselect items for your batch. Call this in the index partial that’s rendered for each search result.

Parameters:

  • document (Hash)

    the Hash (aka Solr hit) for one Solr document



5
6
7
# File 'app/helpers/batch_select_helper.rb', line 5

def button_for_add_to_batch(document)
  render partial: '/batch_select/add_button', locals: { document: document }
end