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

Availability display in Show page for CDL items #2691

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

hectorcorrea
Copy link
Member

Display "Online" as the availability for items in CDL instead of "Unavailable". It also removes the Request button from the page. Fixes #2669

The only drawback with the current implementation is that the user will initially see the "Request" button next to each item, and after a few seconds (when the call to BibData/Alma comes back) the Request buttons will be removed. This is a known issue due to the slowness of the Alma API to return when we request this level of information (see #1616) and could be tackled separately.

Below are two screenshots showing the page before and after the change.

Before

cdl_before

After

cdl_after

@hectorcorrea
Copy link
Member Author

@kevinreiss I removed the Request button in this case just like we did with reserves, but let me know if that is not what we want for this.

@christinach
Copy link
Member

In the past we displayed for cdl item status: 'Reserved for digital lending'.

'On-site - in-transit discharged', 'Reserved for digital lending'];
if (availability_label_text === "Reserved for digital lending") {

@kevinreiss, @kelynch do we want to display this status again instead of 'Online'?

@kevinreiss
Copy link
Member

I approve of making this change where if I understand it the user will never see a request button for these items at any point no matter how slow the extra availability checks take.

@hectorcorrea
Copy link
Member Author

@kevinreiss The current implementation will initially show the Request button for a few seconds (4-5 seconds) like it does for Reserves and then, after Alma comes back with CDL info we hide them. This is not ideal.

We could try to implement this the other way around: Initially hide the Request button and only show if after the Alma slow API comes back. But this will be a more complicated and riskier change so I would vote to do that separately so that we can test it extensively...because if we mess that one up the Request button won't show up if there is an Alma error or bug in our code.

@pulbot pulbot temporarily deployed to qa August 31, 2021 16:28 Inactive
@christinach christinach merged commit aeb61aa into main Aug 31, 2021
@christinach christinach deleted the issue_2669_cdl_availability branch August 31, 2021 16:38
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.

Record page - Control Digital Lending Items have status Unavailable
4 participants