Bug 5977

Summary: opac advanced search Library always set to my library
Product: Koha Reporter: Chris Cormack <chris>
Component: OPACAssignee: Paul Poulain <paul.poulain>
Status: CLOSED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: PATCH-Sent (DO NOT USE) CC: jcamins, matthias.meusburger
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 5584    
Attachments: Proposed Patch

Description Chris Cormack 2011-03-28 20:35:49 UTC
Without any consideration of the System preference SearchMyLibraryFirst,
When patron is logged in, the library set is set to the patron's library.
This is not the expected behaviour and is implied by GetBranchesLoop
and the fact that users library is selected by default.

Overwriting this behaviour in opac-search.pl when user not logged in
or SearchMyLibraryFirst not set i.e. mybranch not set
Comment 1 Chris Cormack 2011-03-28 20:40:57 UTC
Created attachment 3478 [details] [review]
Proposed Patch
Comment 2 Jared Camins-Esakov 2011-03-29 12:56:48 UTC
This may be fixed by patch for bug 5852. Regardless, I don't think that manually unsetting the selection is the way to do it. Better to correct GetBranchesLoop.
Comment 3 Matthias Meusburger 2011-04-06 08:22:07 UTC
For me, this issue has been fixed by patch for bug 5852 (for bug 5390 , in fact). 

Although it works well with the proposed patch applied, it also works well without it.

As patch for bug 5390 has already been applied to master, I mark this bug as duplicate for 5390, and thus, resolved.

*** This bug has been marked as a duplicate of bug 5390 ***
Comment 4 MJ Ray (software.coop) 2011-04-06 13:52:04 UTC
This bug is mentioned in:
Bug 5977 : MT3617 : opac search advanced	Library set to my library http://lists.koha-community.org/pipermail/koha-patches/2011-March/014293.html