Feature #12797

Make "Browse digital objects" context menu link on description view page context sensitive

Added by Dan Gillean 8 months ago. Updated 5 months ago.

Status:NewStart date:02/08/2019
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:Search / BrowseEstimated time:4.00 hours
Target version:Release 2.6.0
Google Code Legacy ID: Tested version:
Sponsored:Yes Requires documentation:Yes

Description

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.

Development notes

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.

History

#2 Updated by Dan Gillean 5 months ago

  • Target version set to Release 2.6.0

Also available in: Atom PDF