An ArchivesSpace plugin that demonstrates how to customize as_arclight mappings.
Explanation of the files in this plugin:
-
config.yml - This file contains plugin configuration information. It is not required, but the following will ensure
as_arclightis present at start up, and that the plugins are loaded in the correct order:depends_on_plugins: - as_arclight -
indexer/plugin_init.rb - In this file the plugin loads its custom mapping classes, and registers them with the Arclight mapper.
-
indexer/custom_resource_mapper.rb - The custom mapping class. It must subclass Arclight::Mapper or one of its descendents. It defines a
mapmethod that includes the desired customizations. If it subclasses one of the existing mappers, it can callsuperto perform the default mapping, and then apply its customizations - as shown in the example. -
indexer/custom_archival_object_mapper.rb - Archival object mapping template. Includes commented extension points for:
- Adding local logic to file version URIs
- mapping IIIF manifest metadata into Solr dynamic fields such as
dado_creator_ssimordado_date_digitized_ssm
Custom fields must use one of the Solr dynamic suffixes included in the ArcLight index.