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

Add Stackmap Link to Call Number Display in Catalog Tray #165

Open
5 tasks
kevinreiss opened this issue Nov 21, 2023 · 6 comments
Open
5 tasks

Add Stackmap Link to Call Number Display in Catalog Tray #165

kevinreiss opened this issue Nov 21, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request user experience

Comments

@kevinreiss
Copy link
Member

kevinreiss commented Nov 21, 2023

User story

As a user I would like to know how to find an item that is located in an open stack using the Library's stackmap service.

Acceptance criteria

  • Implement this with the "new" stackmap. Not active in production yet. Can be seen in catalog-staging or qa.
  • For items in open stack locations (i.e. a place a non-staff user can go) the "Where to find it" link is displayed.
  • Clicking the Where to Find It link brings you to the stackmap modal dialog displaying the item's location on a map.
  • I can successfully use this feature with Voice Over in Safari.
  • I have checked this feature using one of the following browser extensions and confirmed that it does not add any level A or level AA issues:
    • axe dev tools
    • Lighthouse
    • Wave

Implementation notes

We'll need to include the vendor's hosted javascript and css files in the application and mimic the html and css selectors the current links in the catalog are using in order for those to work without modication. Right now the "new" stackmap can seen using "Where to Find It" links in catalog-staging.

In order to show the link for the appropriate location you need to look at the holding location of the item and determine if it's eligible for mapping. There is logic in Orangelight.

@kevinreiss kevinreiss added enhancement New feature or request user experience labels Nov 21, 2023
@rladdusaw rladdusaw self-assigned this Feb 7, 2024
@christinach
Copy link
Member

christinach commented Feb 12, 2024

See icon location

example icon class

@sandbergja
Copy link
Member

@rladdusaw
Copy link
Contributor

The stackmap javascript file has a function called scrapeDom that locates specific parts of the dom and adds styles and elements to the dom. This method uses css classes that are unique to the catalog and will not work with other applications.

Some examples being scraped:

  • .result-content-records
  • .location-text
  • li.holding-status:not(.sm-checked)

To use this feature in other applications we would want to have this script modified to look for a css selector that is unique to the stackmap so we can insert it into our code wherever we want to use it.

@kevinreiss
Copy link
Member Author

Will follow-up with the vendor to see if we can make this adjustment.

@kevinreiss kevinreiss assigned kevinreiss and unassigned rladdusaw Mar 7, 2024
@sandbergja
Copy link
Member

@kevinreiss will be meeting with the vendor in a few weeks, to see if there's a more generic approach to using stackmaps integrations in multiple applications, as well as other topics.

@kevinreiss
Copy link
Member Author

Meeting with vendor 4/24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user experience
Projects
None yet
Development

No branches or pull requests

4 participants