We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d5a9ae commit b12dc40Copy full SHA for b12dc40
1 file changed
config/initializers/oai_provider.rb
@@ -23,7 +23,5 @@ class TrainingProvider < OAI::Provider::Base
23
end
24
25
Rails.application.config.after_initialize do
26
- TrainingProvider.source_model OAI::Provider::ActiveRecordWrapper.new(Material.where(visible: true))
27
-rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished
28
- Rails.logger.debug 'There is no database yet, so the OAI-PMH endpoint is not configured.'
+ TrainingProvider.source_model OAI::Provider::ActiveRecordWrapper.new(Material.where(visible: true), identifier_field: 'id')
29
0 commit comments