Skip to content

Cannot change admin set when using AdministrativeSets  #5450

@elrayle

Description

@elrayle

Descriptive summary

Setting the admin set during create or editing a work and changing the admin set, does not move the work from the Default Admin Set to the newly selected admin set.

Rationale

Changing admin sets is a core behavior and should work for ActiveFedora AdminSets and Valkyrie AdministrativeSets.

Expected behavior

Edit work and change the Administrative Set for the work should update which admin set the work is in.

Actual behavior

Edit work and change the Administrative Set for the work has no impact on the admin set.

Steps to reproduce the behavior

Configure Hyrax:

  1. Edit /config/initializers/hyrax.rb and set:
  config.collection_model = "Hyrax::PcdmCollection"
  config.query_index_from_valkyrie = true
  config.index_adapter = :solr_index
  1. restart rails app
  2. Make sure regular hyrax-development and hyrax-valkyrie-dev solr cores are running . Your core names may vary depending on how you start them and how they are configured in the app.
  3. Make sure you have access to the datastore (i.e. postgres)

NOTE: For testing of nurax-pg, the solr core is typically named nurax-pg.

Create an admin set

  1. navigate to: Dashboard -> Collections
  2. click button: New Collection
  3. select type: Admin Set
  4. click button: Create collection
  5. set Title: My Admin Set (or other meaningful name)
  6. click Save

To reproduce:

  1. navigate to: Dashboard -> Works
  2. click button: Add new work
  3. select type: Monograph (needs to be a Valkyrie resource)
  4. fill in required metadata and upload file if needed
  5. click tab: Relationships
  6. under Administrative Set, select the admin set created in the prerequisites
  7. click button: Save

This forwards to the new work's show page. The admin set relationship does not show in the Relationships section.

  1. click button: Edit
  2. click tab: Relationships

The admin set is set to the Default Admin Set instead of the one you selected.

Related work

See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions