OPAC advanced search: selecting a shelving location group doesn't update the shelving locations

Bug #2060351 reported by Jane Sandberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

Bug Description

Steps to recreate:

1. Load the enhanced concerto data set
2. Go to the OPAC advanced search screen
3. Open the shelving location area
4. Use the "Search library" dropdown to select a few libraries and systems. Note that the shelving location checkboxes update to match the org unit that you have selected.
5. Select the "Juvenile Collection" from the "Search library" dropdown. Note that nothing happens.
6. Open your browser's dev tools console. Note that we got an error message: "TypeError: org_unit is undefined"

I will be fixing this bug, as well as removing Dojo from copyloc.js, on behalf of NOBLE.

Revision history for this message
Jane Sandberg (sandbergja) wrote (last edit ):

Here is a branch that allows the OPAC's shelving location selector to be limited to a shelving location group: user/sandbergja/lp2060351-opac-shelving-location-selector-groups

Here is a link: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sandbergja/lp2060351-opac-shelving-location-selector-groups

It also removes Dojo from copyloc.js and gets it under test.

To run the automated tests, run cd Open-ILS/web/opac/deps && npm run test

To test in a browser:

1. Apply the top two commits of this branch
2. Run make install
3. Load the enhanced concerto data set
4. Go to the OPAC advanced search screen
5. Open the shelving location area
6. Use the "Search library" dropdown to select a few libraries and systems. Note that the shelving location checkboxes update to match the org unit that you have selected.
7. Select the "Juvenile Collection" from the "Search library" dropdown. Note that the shelving location checkboxes update to match the locations included in the group.

This was commissioned by NOBLE, who will be testing it. I'll add the pullrequest tag after their testing and any follow-up work.

Changed in evergreen:
assignee: Jane Sandberg (sandbergja) → nobody
Revision history for this message
Blake GH (bmagic) wrote :

Jane,

Installing the patch removes "Shelving Location" from the available list of Green Filter Bars in the Advanced Search page.

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Interesting, thanks, Blake! Would you mind sharing which browser you saw this in, and if there were any errors in the browser console?

Revision history for this message
Kathy Lussier (klussier) wrote :

Hi Blake!

We've been testing the patch here - https://newcat-next.noblenet.org/eg/opac/advanced - and have not seen that issue.

Revision history for this message
Christine Morgan (cmorgan-z) wrote :

Testing on https://newcat-next.noblenet.org/eg/opac/advanced I am finding that the shelving location is not being retained if you refine the search.

To recreate:

1. In Advanced Search enter your search terms. (I used harry potter)
2. Select a Search Library. (I chose Beverly Children's)
3. Open the Shelving Location section and select one. (I chose Children's DVD)
4. Click Submit.
5. From the search results page note that the Locations filter displays with your chosen shelving location.
6. Click Refine My Original Search.
7. On the Advanced Search page open the Shelving Location section again. Note that the location you previously selected is no longer selected.

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thanks so much for your testing, Christine, and for identifying this issue! I can confirm the issue, and also it looks like it affects the Bootstrap OPAC generally (I also noticed it on demo.evergreencatalog.com), see bug 1910563. In addition, my branch had an additional bug that got in the way of the checkboxes showing on "Refine My Original Search": it did not know how to get checkbox information from URLs that separate params by semicolons, which is how the OPAC likes to separate them.

I pushed a new commit to the same branch (user/sandbergja/lp2060351-opac-shelving-location-selector-groups) that addresses both issues, and gets "Refine My Original Search" working again for me. So now, you'll need the top 3 commits of that branch for testing.

Revision history for this message
Michele Morgan (mmorgan) wrote :

Thanks Jane! This looks great.

I'm adding NOBLE's signoff:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp2060351-opac-shelving-location-selector-groups_signoff

user/mmorgan/lp2060351-opac-shelving-location-selector-groups_signoff

Changed in evergreen:
milestone: none → 3.next
status: New → Confirmed
importance: Undecided → Medium
tags: added: signedoff
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thanks, Michele, Christine, and the whole NOBLE crew. Adding the pullrequest tag to get more community eyes on this.

tags: added: pullrequest
Revision history for this message
Michele Morgan (mmorgan) wrote :

Removing the signedoff tag as this should get wider community testing.

tags: removed: signedoff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.