Skip to content

Elaborate "Key not found: doi" Error Message When Adding a Work Without DOI Service #356

@nomadicoder

Description

@nomadicoder

Attempted to add a work in a curate app using "Starting a New Curate Based Application" in https://github.com/projecthydra/curate/blob/master/README.md. Both specified to and not to remotely mint DOI's.

Steps as follows:

Either case fails

  • Answered 'y' to

    Would you like to use jettywrapper for your SOLR and Fedora?

  • Started Hydra:Jetty server

  • Agreed to terms of service agreement

  • Completed user profile

  • Clicked 'plus' button and selected "Adding an Article"

Got error page

KeyError at /concern/articles/new
key not found: :doi

With trace dump:

Hydra::RemoteIdentifier::Configuration#find_remote_service  hydra-remote_identifier (0.6.1) lib/hydra/remote_identifier/configuration.rb, line 20
Hydra::RemoteIdentifier.remote_service  hydra-remote_identifier (0.6.1) lib/hydra/remote_identifier.rb, line 55
#<Class:0x007fb003f53d58>#___sers_skng__rvm_gems_ruby_______p____curate_no_doi_gems_curate_______app_views_curation_concern_base__form_doi_html_erb___2768855590727271116_70197022069520 curate (0.5.6) app/views/curation_concern/base/_form_doi.html.erb, line 1
block in ActionView::Template#render  actionpack (4.0.0) lib/action_view/template.rb, line 143
ActiveSupport::Notifications.instrument  activesupport (4.0.0) lib/active_support/notifications.rb, line 161
ActionView::Template#render  actionpack (4.0.0) lib/action_view/template.rb, line 141

Provide message to inform user to provide DOI service.

Cross reference #345

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions