Skip to content

Console catalogue actions

Petr Marek edited this page Oct 21, 2021 · 2 revisions

To make catalogue rows selectable via checkboxes whilst adding option to download or export CSV en masse, add catalogue_collection_actions option to folio_console_controller_for.

So far, the following are implemented:

  • destroy
  • csv
  • discard
  • undiscard

Example usage:

class Folio::Console::UsersController < Folio::Console::BaseController
  folio_console_controller_for "Folio::User",
                               csv: true,
                               catalogue_collection_actions: %i[destroy csv]
  
  ...
end