Make "Browse digital objects" context menu link on description view page context sensitive
|Category:||Search / Browse||Estimated time:||4.00 hours|
|Target version:||Release 2.6.0|
|Google Code Legacy ID:||Tested version:||2.6|
In #8408 we added 2 new links to the right-hand context menu on archival descriptions, providing users with additional means to browse the contents of a specific archival unit's hierarchy - the "Browse as list" and "Browse digital objects" links. These links take the user to a search/browse page, already limited to the descendants of the current top-level description, allowing users to take advantage of AtoM's filters, facets, and other advanced search options to further refine the results when searching for particular content.
However, currently the "Browse digital objects" link is not context-sensitive - meaning, it displays all the time, regardless of whether there are digital objects attached to lower levels of description or not. This can be confusing for end users when they follow the link and arrive on a search results page with zero results.
With this enhancement, the "Browse digital objects" link will become context-sensitive. If there are no digital objects in any descendants from the current description, then the link will not display. As such, the link should only be visible when following it will lead to a page with at least one result.
The imageflow component already queries to show the carousel in:
We should move that query to the IO index action and pass the results to the component to avoid making it twice.
#4 Updated by Dan Gillean 7 months ago
- Requires documentation deleted (
- Tested version 2.6 added
Docs updated in 2.6 branch: https://github.com/artefactual/atom-docs/commit/da3c407fe81047fe07d7385ba80f6472edd5a6e8