diff --git a/app/controllers/concerns/hyrax/breadcrumbs_for_collections.rb b/app/controllers/concerns/hyrax/breadcrumbs_for_collections.rb index 35023dc43f..855a6dd724 100644 --- a/app/controllers/concerns/hyrax/breadcrumbs_for_collections.rb +++ b/app/controllers/concerns/hyrax/breadcrumbs_for_collections.rb @@ -14,7 +14,7 @@ def add_breadcrumb_for_controller def add_breadcrumb_for_action case action_name when 'edit'.freeze - add_breadcrumb I18n.t("hyrax.collection.browse_view"), collection_path(params["id"]), mark_active_action + add_breadcrumb I18n.t("hyrax.collection.edit_view"), collection_path(params["id"]), mark_active_action when 'show'.freeze add_breadcrumb presenter.to_s, polymorphic_path(presenter), mark_active_action end diff --git a/config/locales/hyrax.en.yml b/config/locales/hyrax.en.yml index 8b4ebb203f..93fd685a29 100644 --- a/config/locales/hyrax.en.yml +++ b/config/locales/hyrax.en.yml @@ -596,6 +596,7 @@ en: no_visible_works: The collection is either empty or does not contain items to which you have access. edit: manage_items: Manage Items in this Collection + edit_view: Edit View form: additional_fields: Additional fields description: Descriptions diff --git a/spec/controllers/hyrax/dashboard/collections_controller_spec.rb b/spec/controllers/hyrax/dashboard/collections_controller_spec.rb index c01579e4bc..1444f44b6b 100644 --- a/spec/controllers/hyrax/dashboard/collections_controller_spec.rb +++ b/spec/controllers/hyrax/dashboard/collections_controller_spec.rb @@ -491,7 +491,7 @@ expect(controller).to receive(:add_breadcrumb).with('Home', Hyrax::Engine.routes.url_helpers.root_path(locale: 'en')) expect(controller).to receive(:add_breadcrumb).with('Dashboard', Hyrax::Engine.routes.url_helpers.dashboard_path(locale: 'en')) expect(controller).to receive(:add_breadcrumb).with('Collections', Hyrax::Engine.routes.url_helpers.my_collections_path(locale: 'en')) - expect(controller).to receive(:add_breadcrumb).with(I18n.t("hyrax.collection.browse_view"), collection_path(collection.id, locale: 'en'), "aria-current" => "page") + expect(controller).to receive(:add_breadcrumb).with(I18n.t("hyrax.collection.edit_view"), collection_path(collection.id, locale: 'en'), "aria-current" => "page") get :edit, params: { id: collection } expect(response).to be_successful end @@ -506,7 +506,7 @@ expect(controller).to receive(:add_breadcrumb).with('Home', Hyrax::Engine.routes.url_helpers.root_path(locale: 'en')) expect(controller).to receive(:add_breadcrumb).with('Dashboard', Hyrax::Engine.routes.url_helpers.dashboard_path(locale: 'en')) expect(controller).to receive(:add_breadcrumb).with('Collections', Hyrax::Engine.routes.url_helpers.my_collections_path(locale: 'en')) - expect(controller).to receive(:add_breadcrumb).with(I18n.t("hyrax.collection.browse_view"), collection_path(collection.id, locale: 'en'), "aria-current" => "page") + expect(controller).to receive(:add_breadcrumb).with(I18n.t("hyrax.collection.edit_view"), collection_path(collection.id, locale: 'en'), "aria-current" => "page") get :edit, params: { id: collection } expect(response).to be_successful end