[Koha-bugs] [Bug 6600] Library name linking wrong if current location is different

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 19 15:20:56 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6600

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> 2011-07-19 13:20:56 UTC ---
Created attachment 4668
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4668
Proposed fix

GetItemsInfo in Items.pm includes this join:

LEFT JOIN branches ON items.homebranch = branches.branchcode

This means that the branch URL (from the branches table) comes out as the URL
for items.homebranch, thus the URL in the holdings output is the item's home
branch even though the display might be showing a different current location.

This patch changes the join to use items.holdingbranch. The join was originally
added to fix Bug 3702, and based on the description of that feature I'm
assuming this change is not harmful to other usages. However, it does make the
assumption that the item's current (holding) branch is the branch we want to
see information about.

-- 
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