Skip to content

Commit

Permalink
Work around for duplicate predicate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Apr 8, 2016
1 parent 911deb9 commit 128b2b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/concerns/curation_concerns/file_set_behavior.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module CurationConcerns
module FileSetBehavior
extend ActiveSupport::Concern
# BasicMetadata needs to be included before Characterization since
# both of them declare properties with the same predicate (dc:creator
# and dc:language.) Loading BasicMetadata first allows Characterization
# to detect the duplicate (via the AlreadyThereStrategy) and prevents
# the warning.
include CurationConcerns::BasicMetadata
include Hydra::Works::FileSetBehavior
include Hydra::Works::VirusCheck
include Hydra::Works::Characterization
Expand All @@ -9,7 +15,6 @@ module FileSetBehavior
include CurationConcerns::Noid
include CurationConcerns::FileSet::Derivatives
include CurationConcerns::Permissions
include CurationConcerns::BasicMetadata
include CurationConcerns::FileSet::FullTextIndexing
include CurationConcerns::FileSet::Indexing
include CurationConcerns::FileSet::BelongsToWorks
Expand Down

0 comments on commit 128b2b9

Please sign in to comment.