You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 a collection
navigate to: Dashboard -> Collections
click button: New Collection
select type: anything that doesn't include branding (branding does not work at this time)
click button: Create Collection
set Title: My Collection (or other meaningful name)
click Save
To reproduce:
navigate to: Dashboard -> Works
click button: Add new work
select type: Monograph (needs to be a Valkyrie resource)
fill in required metadata and upload file if needed
click tab: Relationships
under Collections, type collection name created in prerequisites, select, and click button: Add
click button: Save
This forwards to the new work's show page. The Relationships section should show the collection, but is empty.
The same happens if you fully create the work without a relationship, and then edit to add the collection relationship.
Related work
See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP
The text was updated successfully, but these errors were encountered:
the view sets existing collections from member_of_collections_json ([Array<Hash>] that holds id:, label:, and path: for each collection)
the view returns collection membership changes in member_of_collections_attributes
the view does not use or set member_of_collection_ids
Form processing
Hyrax::ResourceForm does not set member_of_collections_json
Hyrax::ResourceForm does not process member_of_collections_attributes ([Hash<Hash>] that holds id: and _destroy: true|false for each collection change)
Hyrax::ResourceForm does not populate or process member_of_collection_ids
elrayle
changed the title
When using PcdmCollection, adding a work to a collection does not appear to complete
adding a Monograph work to a collection does not appear to complete
Feb 18, 2022
Descriptive summary
Adding a Valkyrie work to a collection at create or edit time fails to add the work to the collection.
Rationale
Works in collections is core functionality and should work for Valkyrie.
Expected behavior
When creating or editing a work, adding it to an existing collection on the Relationships tab and saving should create the relationship.
Actual behavior
When creating or editing a work, adding it to an existing collection on the Relationships tab and saving appears to be ignored.
Prerequisites:
Configure Hyrax:
/config/initializers/hyrax.rb
and set:hyrax-development
andhyrax-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.NOTE: For testing of nurax-pg, the solr core is typically named nurax-pg.
Create a collection
To reproduce:
This forwards to the new work's show page. The Relationships section should show the collection, but is empty.
The same happens if you fully create the work without a relationship, and then edit to add the collection relationship.
Related work
See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP
The text was updated successfully, but these errors were encountered: