Bug 35547: Show public "staff only" lists in addbybiblionumber.pl
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 12 Dec 2023 15:27:07 +0000 (10:27 -0500)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 4 Jan 2024 21:05:54 +0000 (21:05 +0000)
commitfdf3e77e01f3777cd302f6149ca6829e7b2e0260
tree26d100fe47329aff0f87cad8cb0e85525bd70798
parent5efb2416c3e16caafaffa8ae08b2bf62ce52d383
Bug 35547: Show public "staff only" lists in addbybiblionumber.pl

When adding an item to a list from catalogue/detail.pl, we can see the
latest 10  public lists. If all those lists are set as "staff only" for
"Allow changes to contents from" they will not show up in the
addbybiblionumber.pl popup. This is because the query in the popup does
not look for "staff only" lists while the "Add to list" button does.

Test plan:
1) Create 11 "staff only" lists as staff member A
2) Log in as staff member B
3) Find a record, click the "Add to list" button, note you can see lists
   2 through 11 here
4) In the pulldown, choose the "More lists" option
5) Note those lists are not visible in the "Choose list" pulldown under
   "Select an existing list"
6) Apply this patch
7) Restart all the things!
8) Click the "More lists" option again
9) Those lists should now be in the pulldown!

Signed-off-by: sabrina <kiehl@mpis.mpg.de>
Signed-off-by: Mikko Liimatainen <mikko.liimatainen@turku.fi>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5961e5c2a3c9c46461fe563b85b0d94bd0df195c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 39b75d3da03ceae6bd11d2e0f09c1fcff015eef6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
virtualshelves/addbybiblionumber.pl