diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index da080f6e8..946f5f523 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -484,7 +484,7 @@ def safe_params :identifiers, { identifiers: [:identifier, :identifierType] }, :relatedIdentifiers, - { relatedIdentifiers: [:relatedIdentifier, :relatedIdentifierType, :relationType, :resourceTypeGeneral, :relatedMetadataScheme, :schemeUri, :schemeType] }, + { relatedIdentifiers: [:relatedIdentifier, :relatedIdentifierType, :relationType, relatedMetadataScheme, :schemeUri, :schemeType, :resourceTypeGeneral, :relatedMetadataScheme, :schemeUri, :schemeType] }, :fundingReferences, { fundingReferences: [:funderName, :funderIdentifier, :funderIdentifierType, :awardNumber, :awardUri, :awardTitle] }, :geoLocations, diff --git a/app/models/activity.rb b/app/models/activity.rb index 7907b3751..21c056d25 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -77,6 +77,9 @@ def after_audit relatedIdentifierType: { type: :keyword }, relatedIdentifier: { type: :keyword }, relationType: { type: :keyword }, + relatedMetadataScheme: { type: :keyword }, + schemeUri: { type: :keyword }, + schemeType: { type: :keyword }, resourceTypeGeneral: { type: :keyword } }}, types: { type: :object, properties: { diff --git a/app/models/doi.rb b/app/models/doi.rb index 17bd0489d..3d8a764d2 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -161,6 +161,9 @@ class Doi < ActiveRecord::Base relatedIdentifierType: { type: :keyword }, relatedIdentifier: { type: :keyword }, relationType: { type: :keyword }, + relatedMetadataScheme: { type: :keyword }, + schemeUri: { type: :keyword }, + schemeType: { type: :keyword }, resourceTypeGeneral: { type: :keyword } } indexes :types, type: :object, properties: {