Skip to content

Calculate availability status mainly using the process type#3178

Merged
christinach merged 1 commit intomainfrom
availability-orangelight-5715
Apr 9, 2026
Merged

Calculate availability status mainly using the process type#3178
christinach merged 1 commit intomainfrom
availability-orangelight-5715

Conversation

@christinach
Copy link
Copy Markdown
Member

@christinach christinach commented Apr 3, 2026

Set process status type constant
Check the process status type to calculate Unavailable status
Check the process status when the value is in process and the work order type is AcqWorkOrder or Firastone
when there is no process type check if it is requested or not:

- If the process type is in ACQ CLAIM_RETURNED_LOAN HOLDSHELF ILL LOAN LOST_ILL LOST_LOAN LOST_LOAN_AND_PAID MISSING REQUESTED TECHNICAL TRANSIT TRANSIT_TO_REMOTE_STORAGE WORK_ORDER_DEPARTMENT
it is Unavailable.
  - if it is In process we check the work order type-> is it 'AcqWorkOrder' || 'Firestone'
  - If not then Unavailable and Illiad will handle it.
  - if in process and in 'AcqWorkOrder', 'Firestone' work order type then it is an In process order
- When there is no process type and the item is requested (requested: true)
then it is Unavailable and Illiad will handle it.
- When there is no process type and the item is in Place and it is not requested -> it is Available

See confluence - Availability

@mzelesky Thank you for sharing your technical Alma knowledge and contributing
to create this documentation Calculate availability
We've created a simpler approach to calculate the status in bibdata.

related to pulibrary/orangelight#5715

@christinach christinach force-pushed the availability-orangelight-5715 branch from 8b299ac to fe6e77a Compare April 6, 2026 21:12
@christinach christinach force-pushed the availability-orangelight-5715 branch 6 times, most recently from a1f8a15 to e196e1b Compare April 8, 2026 14:11
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 8, 2026
…ht expects from bibdata

Bibdata update is in pulibrary/bibdata#3178
This was discussed in the circ meeting on April 8, 2026
@christinach christinach force-pushed the availability-orangelight-5715 branch from e196e1b to 691c986 Compare April 8, 2026 18:23
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 8, 2026
…ht expects from bibdata

Bibdata update is in pulibrary/bibdata#3178
This was discussed in the circ meeting on April 8, 2026
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 8, 2026
…ht expects from bibdata (#5750)

Bibdata update is in pulibrary/bibdata#3178
This was discussed in the circ meeting on April 8, 2026
@christinach christinach force-pushed the availability-orangelight-5715 branch 8 times, most recently from a346fdb to 3673b4f Compare April 9, 2026 18:17
Check the process status type to calculate Unavailable status
Check the process status when the value is in process and the work order type is AcqWorkOrder or Firastone
when there is no process type check if it is requested or not:

- If the process type is in ACQ CLAIM_RETURNED_LOAN HOLDSHELF ILL LOAN LOST_ILL LOST_LOAN LOST_LOAN_AND_PAID MISSING REQUESTED TECHNICAL TRANSIT TRANSIT_TO_REMOTE_STORAGE WORK_ORDER_DEPARTMENT
it is Unavailable.
  - if it is In process we check the work order type-> is it 'AcqWorkOrder' || 'Firestone'
  - If not then Unavailable and Illiad will handle it.
  - if in process and in 'AcqWorkOrder', 'Firestone' work order type then it is an In process order
- When there is no process type and the item is requested (requested: true)
then it is Unavailable and Illiad will handle it.
- When there is no process type and the item is in Place and it is not requested -> it is Available

related to pulibrary/orangelight#5715
See https://pul-confluence.atlassian.net/wiki/spaces/ALMA/pages/1025114135/Availability

@mzelesky Thank you for sharing your Alma knowledge and contributing
to create this documentation https://docs.google.com/document/d/1VzbWI4mEy8M2WWIpGBfYv1UtcgqtI6fj8LoomRT17_4/edit?pli=1&tab=t.0
We've created a simpler approach to  calculate the status in bibdata and clear some of this login in Orangelight.
@christinach christinach force-pushed the availability-orangelight-5715 branch from 3673b4f to edaee43 Compare April 9, 2026 18:23
@christinach christinach marked this pull request as ready for review April 9, 2026 18:24
Copy link
Copy Markdown
Member

@kevinreiss kevinreiss left a comment

Choose a reason for hiding this comment

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

Thanks @christinach

christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 14, 2026
Make sure description and enum is not an empty string

The specific issue appears for items in East Asian with bad data in Alma that fail the eligibility check for the Illiad service.
The problem was only revealed now after the changes in pulibrary/bibdata#3178.

For the East Asian items the enum and description values are empty strings, so the specific  method returns that are present and not nil . The next Illiad eligibility check is the Preservation Conservation which does not exist anymore as a status label.
So the Illiad service eligibility check fails.

related to [#5755]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 14, 2026
Make sure description and enum is not an empty string

The specific issue appears for items in East Asian with bad data in Alma that fail the eligibility check for the Illiad service.
The problem was only revealed now after the changes in pulibrary/bibdata#3178.

For the East Asian items the enum and description values are empty strings, so the specific  method returns that are present and not nil . The next Illiad eligibility check is the Preservation Conservation which does not exist anymore as a status label.
So the Illiad service eligibility check fails.

related to [#5755]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 14, 2026
Make sure description and enum is not an empty string

The specific issue appears for items in East Asian with bad data in Alma that fail the eligibility check for the Illiad service.
The problem was only revealed now after the changes in pulibrary/bibdata#3178.

For the East Asian items the enum and description values are empty strings, so the specific  method returns that are present and not nil . The next Illiad eligibility check is the Preservation Conservation which does not exist anymore as a status label.
So the Illiad service eligibility check fails.

related to [#5755]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 14, 2026
Make sure description and enum is not an empty string

The specific issue appears for items in East Asian with bad data in Alma that fail the eligibility check for the Illiad service.
The problem was only revealed now after the changes in pulibrary/bibdata#3178.

For the East Asian items the enum and description values are empty strings, so the specific  method returns that are present and not nil . The next Illiad eligibility check is the Preservation Conservation which does not exist anymore as a status label.
So the Illiad service eligibility check fails.

related to [#5755]
kevinreiss pushed a commit to pulibrary/orangelight that referenced this pull request Apr 14, 2026
Make sure description and enum is not an empty string

The specific issue appears for items in East Asian with bad data in Alma that fail the eligibility check for the Illiad service.
The problem was only revealed now after the changes in pulibrary/bibdata#3178.

For the East Asian items the enum and description values are empty strings, so the specific  method returns that are present and not nil . The next Illiad eligibility check is the Preservation Conservation which does not exist anymore as a status label.
So the Illiad service eligibility check fails.

related to [#5755]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5373]
related to [#4978]
christinach added a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5753]
related to [#4978]
kevinreiss pushed a commit to pulibrary/orangelight that referenced this pull request Apr 15, 2026
With recent changes in bibdata and per circ meeting we send them to Illiad.
pulibrary/bibdata#3178

related to [#5753]
related to [#4978]
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.

2 participants