Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 924 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 924 Bytes

View Catalog Action Button

NOTE: This code has been moved into our general PUI customizations. This plugin is now read-only.

Adds a button to resource views in the ArchivesSpace public site so that a user may click through the library catalog, where they can view holdings and determine availability of collection materials.

This plugin assumes catalog keys are kept in string_1 in the User Defined fields in ArchivesSpace. Currently, to update this you will need to edit the plugin code directly. Ideally it would be configurable.

Because the button displays conditionally based on a user-defined string value, it must be activated with a partial. To activate it, add the following code to your config/config.rb file:

AppConfig[:pui_page_custom_actions] = {
  'record_type' => ['resource'],
  'erb_partial' => 'shared/view_catalog_action',
}