diff --git a/Readme.md b/Readme.md index 5e797bb..105fbbb 100644 --- a/Readme.md +++ b/Readme.md @@ -69,7 +69,8 @@ of ArchivesSpace may cause changes in the functionality of this plugin. - Fixed a bug where only the first container would be included in the request. - Markup is now stripped from the `title` parameter. - Plugin has been refactored so builtin ArchivesSpace functionality can be used. - +- **20180410** + - Fixed a bug with the `:requests_permitted_for_containers_only` setting ## Configuring Plugin Settings diff --git a/public/models/record_mapper.rb b/public/models/record_mapper.rb index 6b1ea18..2d29122 100644 --- a/public/models/record_mapper.rb +++ b/public/models/record_mapper.rb @@ -39,7 +39,7 @@ def show_action? puts "Aeon Fulfillment Plugin -- Checking for top containers" has_top_container = false - instances = self.record.dig('json', 'instances') + instances = self.record.json['instances'] if instances instances.each do |instance|