If the SearchMyLibraryFirst syspref is set, the OPAC uses the logged in users branchcode to limit searches to their library. If it's an anonymous session that doesn't happen. This tries to guess the client library by checking for the client ip address in each libraries branchip setting.
Created attachment 122573 [details] [review] Proposed patch
Is this ready for testing? If so please set the status to "Needs Signoff."
Hi Micheal, The dependency for this bug, Bug 28657, no longer applies cleanly to master. Therefore I am going to set this one to blocked until 28657 is rebased.
Bug 28657 has been rebased. Test plan: 1. Turn on SearchMyLibraryFirst system preference. 2. Make sure your computers ip address is covered by a branch's branchip. 3. Go to opac. 4. Observe that the branch isn't set. 5. Apply patch. Restart things if necessary 6. Reload opac. 7. Observe that the branch is set.
Hi Michael, The dependency bug, Bug 28657, still does not apply cleanly to master. Auto-merging C4/Auth.pm error: Failed to merge in the changes. Patch failed at 0001 Bug 28657: expand branches.branchip to allow for multiple ip ranges. [33mhint: Use 'git am --show-current-patch=diff' to see the failed patch[m When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-28657-expand-branchesbranchip-to-allow-for-mul-gxoeH0.patch Cannot apply cleanly patches from bug 28657. Everything will be left dirty. I'm going to mark this bug as blocked again.
Bug 28657 has been rebased.
Created attachment 149432 [details] [review] Bug 28658 - With SearchMyLibraryFirst guess the opac clients library If the SearchMyLibraryFirst syspref is set, the OPAC uses the logged in users branchcode to limit searches to their library. If it's an anonymous session that doesn't happen. This tries to guess the client library by checking for the client ip address in each libraries branchip setting. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Setting to Blocked. Dependency is in FQA
Setting back to Signed Off. Dependency is back to Needs signoff.
This is currently BLOCKED - we need a sign-off on the dependency first.