Skip to content

Conversation

@elsenhans
Copy link
Contributor

Purpose

Adding additionalCallNumbers to the inventorys' holdings history as requested here:
https://folio-org.atlassian.net/browse/UIIN-3559
https://folio-org.atlassian.net/browse/UIIN-3540

Instead of showing just the values of sub-fields as unnamed lists, we like to show the field name together with the sub-field value.

Adding sub-fields to fieldLabelsMap for these objects:

  • additionalCallNumbers
  • holdingsStatements
  • holdingsStatementsForSupplements
  • holdingsStatementsForIndexes
  • notes
  • electronicAccess
  • entries

Approach

We define and pass a itemFormatter to the AuditLogModal which allows us to display object properties as name-value pairs.

Refs

folio-org/stripes-components#2519
folio-org/mod-audit#229

PR for inventory Items:
#2953

Screenshots

with itemFormatter (add fieldnames)

holdings_with_itemFormatter

BEFORE or DEFAULT: without itemFormatter (no fieldnames)

holdings_without_itemFormatter

@elsenhans elsenhans requested review from a team, BogdanDenis and mariia-aloshyna December 23, 2025 11:04
@github-actions
Copy link

github-actions bot commented Dec 23, 2025

Jest Unit Test Results

    1 files  ±0    316 suites  ±0   9m 45s ⏱️ -44s
1 402 tests +6  1 383 ✅ +6  19 💤 ±0  0 ❌ ±0 
1 416 runs  +6  1 397 ✅ +6  19 💤 ±0  0 ❌ ±0 

Results for commit 08b5d10. ± Comparison against base commit ded4829.

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider whether you want this to be implemented as a breaking change.

isInitialLoading={isLoading}
fieldLabelsMap={fieldLabelsMap}
fieldFormatter={fieldFormatter}
itemFormatter={itemFormatter}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

itemFormatter was added to AuditLogPane in folio-org/stripes-components#2519 and will be available in the next version of @folio/stripes, likely 10.1.0. Since many breaking changes have already been added the next release of ui-inventory, consider bumping the deps on @folio/stripes in package.json to ^10.1.0.

Technically, passing new props to an existing function is backwards compatible; in an older version they'll be ignored but won't cause an error. Ultimately, up to you.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
44.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@elsenhans elsenhans merged commit bff2c6d into master Jan 5, 2026
14 of 15 checks passed
@elsenhans elsenhans deleted the UIIN-3540-add-additionalCallNumber-to-versionHistory-for-holdings branch January 5, 2026 10:19
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.

5 participants