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 b12dc40 commit 8653301Copy full SHA for 8653301
1 file changed
config/initializers/oai_provider.rb
@@ -23,5 +23,7 @@ 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), identifier_field: 'id')
+ TrainingProvider.source_model OAI::Provider::ActiveRecordWrapper.new(Material.where(visible: true))
27
+rescue ActiveRecord::ActiveRecordError
28
+ Rails.logger.debug 'There is no database yet or some other error, so the OAI-PMH endpoint is not configured.'
29
0 commit comments