Skip to content

v2.4.4: Holdings-level Availability Status

Compare
Choose a tag to compare
@seanaery seanaery released this 16 Sep 20:51
· 138 commits to main since this release
07faee4

Display holdings-level availability status on item show pages (if present). Closes TD-1336.

Changes

  • This change especially accommodates Duke records (post-Alma migration) where availability status is encoded at the holdings instead of item level
  • Ensures horizontal alignment of holdings-level & item-level availability text
  • Lets narrow location header extend to full width if it has no holdings-level availability status
  • Extends the existing conditional item status styling/color rules to apply to holdings status
  • Also suppresses display of the "status" label if the value is blank
  • Adds an overridable items_section_location_status partial as a local hook to override if desired
  • Adds two new helper methods, display_item_availability? & display_holdings_availability?, which can be overridden locally if desired

Update Notes

  • This update should result in no perceptible change to the display of item availability for resources held by NCSU, UNC, or NCCU (i.e., where availability status is always present at the item level). At present, this will only affect the presentation of Duke's holdings on item views.
  • If you have customized local copies of any affected partials, you will likely need to replicate the changes. See especially: _items_section.html.erb, _items_section_item.html.erb, & _items_section_location.html.erb.
  • If further customization is desired locally, this version has added three new seams that can be overridden: the display_item_availability? & display_holdings_availability? helper methods, and the _items_section_location_status.html.erb partial.