Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyrax::AdministrativeSet shows 0 Total Items and No entries found under Works in This Set when it has works #5497

Closed
elrayle opened this issue Mar 4, 2022 · 0 comments · Fixed by #5563
Assignees
Labels
Admin Set impacts the Admin Set part of PCDM Model Effort: Moderate valkyrization

Comments

@elrayle
Copy link
Contributor

elrayle commented Mar 4, 2022

Descriptive summary

When works have been added in a Hyrax::AdministrativeSet, the show page for the admin set says there are 0 works and doesn't list any works under Works in This Set.

Rationale

AF and Valkyrie admin sets should show the works that are in the admin set.

Expected behavior

After adding a work to an admin set, the admin set show page should list the work.

Actual behavior

After adding a work to an admin set, the admin set show page shows 0 works.

image

Steps to reproduce the behavior

Prerequisite

Configure Hyrax:

  1. Edit /config/initializers/hyrax.rb and set:
  config.admin_set_model = "Hyrax::AdministrativeSet"
  config.query_index_from_valkyrie = true
  config.index_adapter = :solr_index
  1. restart rails app

Create an admin set.

  1. navigate to: Dashboard -> Collections
  2. click button: New Collection
  3. select type: Admin Set
  4. set title: MY ADMIN SET (or other meaningful name)
  5. Save

To Reproduce:

  1. navigate to: Dashboard -> Works
  2. click button: Add a work
  3. select type: Monograph (on Hyrax) or any type on nurax-pg
  4. file in required metadata and file if required
  5. click tab: Relationships
  6. under Administrative Set, select: MY ADMIN SET (or the name you set in prerequisites)
  7. Save

This should forward to the work show page and you will see MY ADMIN SET in the Relations section under In Administrative Set.

  1. navigate to: Dashboard -> Works
  2. click title: MY ADMIN SET (or the name you set in prerequisites)

This should forward to the admin set show page. You will see that the work is not shown in the list of works and the total items is 0.

Related work

Link to related tickets or prior related work here.

@elrayle elrayle added Admin Set impacts the Admin Set part of PCDM Model Effort: Moderate valkyrization labels Mar 4, 2022
@elrayle elrayle added this to Ready in Hyrax-Valkyrization Mar 4, 2022
@eliotjordan eliotjordan moved this from Ready to In Progress in Hyrax-Valkyrization Mar 7, 2022
@eliotjordan eliotjordan moved this from In Progress to Ready in Hyrax-Valkyrization Mar 7, 2022
@cjcolvar cjcolvar self-assigned this Mar 15, 2022
@cjcolvar cjcolvar moved this from Ready to In Progress in Hyrax-Valkyrization Mar 15, 2022
@elrayle elrayle moved this from In Progress to DONE in Hyrax-Valkyrization Apr 4, 2022
@jlhardes jlhardes moved this from DONE to Ready to be Archived in Hyrax-Valkyrization Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Set impacts the Admin Set part of PCDM Model Effort: Moderate valkyrization
Projects
Hyrax-Valkyrization
Ready to be Archived
3 participants