Bug 40248 - With IndependentBranches and SearchMyLibraryFirst logged in user is unable to search other libraries' resources
Summary: With IndependentBranches and SearchMyLibraryFirst logged in user is unable to...
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Janusz Kaczmarek
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-26 11:47 UTC by Janusz Kaczmarek
Modified: 2025-06-26 20:46 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40248: With IndependentBranches and SearchMyLibraryFirst logged in user is unable to search other libraries' resources (2.45 KB, patch)
2025-06-26 12:08 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 40248: With IndependentBranches and SearchMyLibraryFirst logged in user is unable to search other libraries' resources (2.50 KB, patch)
2025-06-26 20:46 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Janusz Kaczmarek 2025-06-26 11:47:09 UTC
Recently (between 23.11 and 24.11) the following problem has emerged: 
with IndependentBranches = 'Yes' and SearchMyLibraryFirst = 'Limit' 
a logged in user is unable to search other libraries' resources, 
even if OpacAddMastheadLibraryPulldown is set to 'Add'.

To reproduce:
1. Set system preferences: 
   SearchMyLibraryFirst to Limit
   IndependentBranches to Yes
   OpacAddMastheadLibraryPulldown to Add
2. Open OPAC page. You should see the libraries pull down on 
   the right (next to the magnifying glass icon).
3. Perform a search for a common word (e.g. Peter), 
   note the number of results.
4. Log in to OPAC as a normal user (not superlibrarian).
5. Repeat the search. You should get less results (only from your
   library). You will not be able to broaden the search 
   and get results from all libraries (until you log out).
   You will also not see the libraries pull down.
Comment 1 Janusz Kaczmarek 2025-06-26 12:08:16 UTC
Created attachment 183530 [details] [review]
Bug 40248: With IndependentBranches and SearchMyLibraryFirst logged in user is unable to search other libraries' resources

Recently (between 23.11 and 24.11) the following problem has emerged:
with IndependentBranches = 'Yes' and SearchMyLibraryFirst = 'Limit'
a logged in user is unable to search other libraries' resources,
even if OpacAddMastheadLibraryPulldown is set to 'Add'.

Test plan:
1. Set system preferences:
   SearchMyLibraryFirst to Limit
   IndependentBranches to Yes
   OpacAddMastheadLibraryPulldown to Add
2. Open OPAC page. You should see the libraries pull down on
   the right (next to the magnifying glass icon).
3. Perform a search for a common word (e.g. Peter),
   note the number of results.
4. Log in to OPAC as a normal user (not superlibrarian).
5. Repeat the search. You should get less results (only from your
   library). You will not be able to broaden the search
   and get results from all libraries (until you log out).
   You will also not see the libraries pull down.
6. Apply the patch ; restart_all.
7. Repeat p. 2-5. Now you should be able to see the libraries pull
   down, select All libraries and broaden the search for all libraries'
   resources.
Comment 2 Roman Dolny 2025-06-26 20:46:43 UTC
Created attachment 183559 [details] [review]
Bug 40248: With IndependentBranches and SearchMyLibraryFirst logged in user is unable to search other libraries' resources

Recently (between 23.11 and 24.11) the following problem has emerged:
with IndependentBranches = 'Yes' and SearchMyLibraryFirst = 'Limit'
a logged in user is unable to search other libraries' resources,
even if OpacAddMastheadLibraryPulldown is set to 'Add'.

Test plan:
1. Set system preferences:
   SearchMyLibraryFirst to Limit
   IndependentBranches to Yes
   OpacAddMastheadLibraryPulldown to Add
2. Open OPAC page. You should see the libraries pull down on
   the right (next to the magnifying glass icon).
3. Perform a search for a common word (e.g. Peter),
   note the number of results.
4. Log in to OPAC as a normal user (not superlibrarian).
5. Repeat the search. You should get less results (only from your
   library). You will not be able to broaden the search
   and get results from all libraries (until you log out).
   You will also not see the libraries pull down.
6. Apply the patch ; restart_all.
7. Repeat p. 2-5. Now you should be able to see the libraries pull
   down, select All libraries and broaden the search for all libraries'
   resources.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>