Bug 7000 - show home and holding branch on staff search results
Summary: show home and holding branch on staff search results
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 19:07 UTC by Nicole C. Engard
Modified: 2020-11-30 21:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.