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

Refresh account status when a request is placed. #2926

Conversation

EreMaijala
Copy link
Contributor

@EreMaijala EreMaijala commented Jun 6, 2023

This ensures account status loaded with AJAX is updated properly. This also fixes an issue where non-lightboxed request redirects to record page with an anchor that prevents any tab from becoming active when initial tab is loaded with AJAX.

A session helper is used to pass the required flag in session to the refreshed page. Lightbox has been extended to support executing scripts flagged for it.

This ensure account status loaded with AJAX is updated. This also fixes an issue where non-lightboxed request redirects to record page with an anchor that prevents any tab from becoming active when initial tab is loaded with AJAX.
@EreMaijala EreMaijala changed the base branch from dev to release-9.0 June 6, 2023 12:27
@EreMaijala
Copy link
Contributor Author

A note about the implementation: it would be possible to return a refresh response for lightbox that would trigger a reload. That would have the benefit of refreshing the holdings information too, but would change the workflow from the current one, so I opted to do it in a way that doesn't cause visible changes apart from the information getting properly refreshed.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @EreMaijala! I've added a unit test for the new view helper and my hands-on testing confirms that this fixes the problem with statuses not updating correctly in the drop-down menu.

@demiankatz demiankatz merged commit f6ecaff into vufind-org:release-9.0 Jun 7, 2023
7 checks passed
@demiankatz demiankatz deleted the release-9.0-hold-place-update-status branch June 7, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants