[Koha-bugs] [Bug 7000] show home and holding branch on staff search results
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 17:18:52 CEST 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7000
Owen Leonard <oleonard at myacpl.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Templates |Searching
AssignedTo|oleonard at myacpl.org |gmcharlt at gmail.com
--- Comment #1 from Owen Leonard <oleonard at myacpl.org> 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?
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list