Bug 7000

Summary: show home and holding branch on staff search results
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: SearchingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: P5 - low CC: aleisha, katrin.fischer, kelly
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nicole C. Engard 2011-10-10 19:07:34 UTC
It would be nice on the staff client to show the home and holding branch on the search results so that librarians know which items are actually theirs without having to click through.
Comment 1 Owen Leonard 2011-10-11 15:18:52 UTC
Display of the library name seems to be tied to the HomeOrHoldingBranch pref? In Search.pm:

my $hbranch     = C4::Context->preference('HomeOrHoldingBranch') eq 'homebranch' ? 'homebranch'    : 'holdingbranch';
my $otherbranch = C4::Context->preference('HomeOrHoldingBranch') eq 'homebranch' ? 'holdingbranch' : 'homebranch';

# set item's branch name, use HomeOrHoldingBranch syspref first, fall back to the other one

if ($item->{$hbranch}) {
   $item->{'branchname'} = $branches{$item->{$hbranch}};
}
elsif ($item->{$otherbranch}) {	# Last resort
  $item->{'branchname'} = $branches{$item->{$otherbranch}};
}

Why?
Comment 2 Aleisha Amohia 2020-02-13 21:19:08 UTC
It looks like this has been fixed in master and now uses the StaffSearchResultsDisplayBranch syspref. Can you confirm we can close this bug report?
Comment 3 Katrin Fischer 2020-03-15 17:34:00 UTC
I believe this is a duplicate to another bug from Kelly I saw - but now I just seem to be able to find it. Adding her to check.