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

Resources need to include the depositor to be included in search results #4787

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

elrayle
Copy link
Contributor

@elrayle elrayle commented Mar 15, 2021

Fixes: #4786

Description

After adding a Monograph, which is a Valkyrie::Resource, through the UI, it was not included in the list of works on Dashboard -> Works. This was caused by the indexer for Valkyrie based works not including the depositor in the solr doc.

This limiting part of the query that provides the list of works for Dashboard -> Works is…

"fq"=>["{!terms f=has_model_ssim}GenericWork,NamespacedWorks::NestedWork,Monograph", "_query_:\"{!raw f=depositor_ssim}example@hotmail.com\""]

So without the depositor in the solr doc, Monographs, which are were never returned in the search results. Adding in the depositor, they are now included.

Remaining Work

  • The thumbnail image is not displayed in Dashboard -> Works, but is on the show page for the Monograph.

@samvera/hyrax-code-reviewers

This limiting part of the query that provides the list of works for Dashboard -> Works is…
```
"fq"=>["{!terms f=has_model_ssim}GenericWork,NamespacedWorks::NestedWork,Monograph", "_query_:\"{!raw f=depositor_ssim}example@hotmail.com\""]
```

So without the depositor in the solr doc, Monographs, which are Valkyrie::Resources, were never returned in the search results.  Adding in the depositor, they are now included.

Remaining Work:

* The thumbnail image is not displayed in the list, but is in the show page for the Monograph.
@escowles escowles merged commit 07f9cfa into master Mar 15, 2021
@escowles escowles deleted the fix/4786_dashboard_works_resources branch March 15, 2021 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating monograph through UI doesn't show up in Dashboard -> Works
2 participants