Bug 7000 - show home and holding branch on staff search results
Summary: show home and holding branch on staff search results
Status: NEW
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: 2011-10-11 15:18 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
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?