Skip to content

Commit

Permalink
support relatedMetadataScheme in index. #191
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 13, 2019
1 parent 81e719d commit dc0c023
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions app/models/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 3 additions & 0 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit dc0c023

Please sign in to comment.