Feature #8384

Inventory page

Added by Jesús García Crespo about 7 years ago. Updated over 6 years ago.

Status:VerifiedStart date:05/04/2015
Priority:MediumDue date:
Assignee:Jesús García Crespo% Done:

0%

Category:Reports
Target version:Release 2.3.0
Google Code Legacy ID: Tested version:2.3
Sponsored:No Requires documentation:

Description

This feature will add a new way for users to explore the descendants of a description (e.g. files and items in a series, etc), via an HTML table with sortable columns.

In the right-hand context menu, a new link "Inventory" will appear below the reports pages on descriptions with children, depending on the administrator-controlled settings for the Inventory list.

When clicked, the user will be taken to a page listing all descendants (e.g. direct child descriptions, and also any of their children, etc) of the current description, presented in an HTML table with the following columns:

  • Identifier
  • Title
  • Level of description
  • Date

Each of the columns will be sortable. The Date column will show the display date, but will be sorted based on startDate or endDate, depending on the direction of the sort. Null values will always end up last in any sort. The title column will include links to the related description.

Administrators will have the ability to determine, via a new Inventory section on the Settings page, what levels of description will be included in an inventory list. A multi-select menu, populated with the terms from the Levels of description taxonomy, will be present - if no levels are selected, the Inventory list link will not be displayed, making it so that users who do not wish to use this new feature do not have to change anything. If new terms are later added to the levels of description taxonomy, they will also need to be manually added to the inventory list levels before they will appear in an inventory list.

inventory.png - preview of the html table on the new inventory page (23.1 KB) Dan Gillean, 05/05/2015 02:48 PM

inventory-link.png - preview of the inventory link in the right-hand context menu of a description with children (23.1 KB) Dan Gillean, 05/05/2015 02:48 PM

History

#2 Updated by Dan Gillean about 7 years ago

A couple of initial development screenshots have been included on the issue ticket for context.

#3 Updated by Dan Gillean about 7 years ago

  • Description updated (diff)

#4 Updated by Jesús García Crespo about 7 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean

Branch: dev/issue-8384-inventory

#5 Updated by Mike Gale about 7 years ago

Looks good to me except a couple minor style things. I answered my own question I think in regards to the helper functions being static (because you needed one of them in the template, right?).

#6 Updated by Jesús García Crespo about 7 years ago

Dan, this is now merged.

#7 Updated by Jesús García Crespo about 7 years ago

Note that in the inventory settings the list of levels of description is empty by default.

#8 Updated by Dan Gillean about 7 years ago

  • Status changed from QA/Review to Feedback

Looks great!

My only wish: If you enter the inventory list at the top level of description, there is no way to get back to the description's view page. When entering from a lower level, there is at least a breadcrumb back to the top-level parent - but even there, you can't get back to the description you entered from, unless you use your browser's back button. It'd be nice to have some kind of way back included in the page elements.

#9 Updated by Jesús García Crespo about 7 years ago

  • Status changed from Feedback to QA/Review

#10 Updated by Dan Gillean about 7 years ago

  • Status changed from QA/Review to Verified

Thanks!

#11 Updated by Jesús García Crespo almost 7 years ago

  • Status changed from Verified to Code Review
  • Assignee changed from Dan Gillean to Mike Gale

@mikeg, I've been asked to add a new column to the inventory page. Please code review! https://projects.artefactual.com/issues/8384

#12 Updated by Mike Gale almost 7 years ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Mike Gale to Jesús García Crespo

looks fine

#13 Updated by Jesús García Crespo almost 7 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean

I've merged https://github.com/artefactual/atom/pull/208 - a new column in the inventory page with a link to the digital object only shown if the user has the right permissions. It comes with a significant performance penalty but we are hoping not to be a deal breaker.

#14 Updated by Dan Gillean over 6 years ago

  • Status changed from QA/Review to Feedback
  • Assignee changed from Dan Gillean to Jesús García Crespo
  • Tested version 2.3 added

One thing I just noticed:

  • Navigate to Settings > Inventory
  • Select some levels of description for use in the inventory; save
  • Flip the user interface to French
Resulting error
  • LOD terms with translations do not remain selected when language is flipped
  • Inventory link not available on translated content

Expected result
*LOD terms with translations should remain selected when user interface is flipped

#15 Updated by Dan Gillean over 6 years ago

  • Status changed from Feedback to Verified
  • Requires documentation deleted (Yes)

Documentation added in the following commits:

Note: because it seems unlikely we are going to address it now, I have added notes to the documentation about multilingual content and the inventory settings (as described in the comment above). We can always open a new ticket and address that as a bug there, in the future.

Also available in: Atom PDF