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

See all locations enhancement #118

Conversation

Chloe070196
Copy link

@Chloe070196 Chloe070196 commented Aug 28, 2024

Patch enhancing the 'Where is it?' modal by adding edition information as well as book cover thumbnails, as request in ticket

Test plan

  • in Aspen Administration > Catalog/Grouped Works > Grouped Work Display > , toggle on the 'Show Covers for Editions' checkbox
  • it may be work also ensuring that the "Show Where is it?" option is set to either 'Show first 3 available copies & Where Is It link always' or 'Show Where Is It link only'
  • run a search
  • open the 'Where is it?' link
  • notice that the modal that opens includes thumbnails and edition information
  • in Aspen Administration > Catalog/Grouped Works > Grouped Work Display > , toggle off the 'Show Covers for Editions' checkbox
  • run a search
  • open the 'Where is it?' link
  • notice that the modal that opens includes edition information, but no thumbnails

If testing without the patch, then neither the edition information nor the thumbnails will show

catsoup11789 and others added 18 commits August 23, 2024 09:27
- When freezing a hold, fixed a bug where the date picker actions when selecting the thaw date were not using translated values.
Fixed a bug where when selecting radio button values in Facets (i.e. Search Within), it would display a different (previously selected) value as being selected.
…ounts

Use the cloudLibrary settings that have a scope that matches the home library of the account that is doing the checkout (either the main account or linked card).
The New Materials Request email to staff will only try to send if it has not already been sent.
[pull] 24.09.00 from Aspen-Discovery:24.09.00
If the user agent contains spammy content (such as "sleep(" or "SELECT") return a 404 error.  The check for spammy content is case insensitive.
cloudLibrary with alternate cards bug fixes
so that a patron can see the edition of the records when looking through
the 'Where is it' modal on the search results page, adds an 'edition'
property to the Grouping_Item class, and update getRawItemDataFromDB()
on GroupedWorkDriver instances so that edition is fetched from the
database and included in a scopedItem's data.

This ultimately adds the 'edition' property to the $summary variable in
the getCopyDetails method on the GroupedWork_AJAX class, allowing it to
be assigned to $interface, thus making it available to copyDetails.tpl.
adds a record's edition to the modal that opens upon the 'Where is it?'
button being clicked on the search page.

For records that do not have edition information attached to them,
displays 'unknown' instead
In the 'Where is it?' modal, also display the cover for each record
found. Only do so if Show Covers for Editions is enabled in Grouped Work
Display Setting.
@Chloe070196 Chloe070196 force-pushed the see_all_locations_enhancement branch 3 times, most recently from b42fc0a to 223262c Compare September 2, 2024 11:57
@AlexanderBlanchardAC
Copy link

Works nicely, will look even better on system that shows the different covers for different editions.
Double check the files included in the commit, I think some might not want to be in this commit.

@Chloe070196 Chloe070196 merged commit 227bcdf into PTFS-Europe:see_all_locations_enhancement Sep 2, 2024
2 of 4 checks passed
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