gwu-libraries / scholarspace-hyrax

Hyrax-based repository for GW ETDs and other original content
https://scholarspace.library.gwu.edu/
MIT License
9 stars 4 forks source link

Patch to avoid Ldp::Conflict #188

Open kerchner opened 5 years ago

kerchner commented 5 years ago

As per https://github.com/samvera/hyrax/issues/3128#issuecomment-439967751 , action to fix is:

Add to your hyrax app... /config/initializers/noid_rails.rb

::Noid::Rails.config.identifier_in_use = lambda do |id|
 ActiveFedora::Base.exists?(id) || ActiveFedora::Base.gone?(id)
end
kerchner commented 5 years ago

Consider Hyrax upgrade first - our 2.0.1 based app doesn't have a config/initializers/noid_rails.rb - need to look into whether to create this, or whether subsequent versions of Hyrax will result in one being generated.

kerchner commented 5 years ago

Was this fixed in the upgrade to Hyrax 2.5?