Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIIN-3207: Sort holdings by location name and call number #2720

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julianladisch
Copy link
Contributor

Purpose

The instance view shows the holdings that belong to that instance. There are many libraries with many holdings per instance, they need this sorted by effectiveLocation.name, callNumberPrefix, callNumber, callNumberSuffix.

Approach

Use this CQL query:

instanceId==5b966ed6-3cd6-4dda-a0c7-f9b5e2826ccd sortBy effectiveLocation.name callNumberPrefix callNumber callNumberSuffix

Refs

https://folio-org.atlassian.net/browse/UIIN-3207

The instance view shows the holdings that belong to that instance. There are many libraries with many holdings per instance, they need this sorted by effectiveLocation.name, callNumberPrefix, callNumber, callNumberSuffix.

Solution:

Use this CQL query:

`instanceId==5b966ed6-3cd6-4dda-a0c7-f9b5e2826ccd sortBy effectiveLocation.name callNumberPrefix callNumber callNumberSuffix`
Copy link

github-actions bot commented Jan 22, 2025

Jest Unit Test Statistics

       1 files  ±0     255 suites  ±0   15m 9s ⏱️ +26s
1 025 tests ±0  1 023 ✔️ ±0  2 💤 ±0  0 ±0 
1 032 runs  ±0  1 030 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 256d4b7. ± Comparison against base commit ca8b571.

♻️ This comment has been updated with latest results.

@julianladisch julianladisch requested a review from a team January 27, 2025 18:40
@OleksandrHladchenko1 OleksandrHladchenko1 requested a review from a team January 28, 2025 09:37
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.

  1. OMG I cannot believe results have been unsorted all these years! Thank you for noticing this and fixing it.
  2. Please review the ticket with Ryan Taylor, UIIN PO, before merging. Given the display is "effective location - prefix - cn - suffix" it's hard to imagine he'll ask for a different order but for user-facing changes like this we should still ask.
  3. But but but how does this work? Records returned by /holdings-storage/holdings don't include a property named effectiveLocation.name so how can you sort by it? 🪄 ✨ 🤨 and this property is not listed in API documentation. How could a developer who is not familiar with the undocumented internal implementation of mod-inventory-storage come up with this solution?

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.

4 participants