]> git.koha-community.org Git - koha.git/commit
Bug 10081: add library name to IndependentBranches error message
authorOwen Leonard <oleonard@myacpl.org>
Tue, 13 Aug 2013 16:27:28 +0000 (12:27 -0400)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sun, 15 Sep 2013 00:14:32 +0000 (21:14 -0300)
commit25191a43a540b8fc84816d3f95b3e29f88424bd4
treee253c163542204cba2c58e1c891546812940c2ed
parent109cbf0892a319a641139e6b7a6ae0613fa79cc2
Bug 10081: add library name to IndependentBranches error message

With IndependentBranches turned on, if you try to check out an item
which belongs to another library you will get an error message which is
missing the library name. This patch corrects the problem by passing the
necessary variable to the template and outputting the library name using
the KohaBranchName TT plugin.

To test, turn on IndependentBranches and try to check out an item
belonging to another library (note that you must test with a staff user
who is not a superlibrarian). The error message you see should include
the name of the library to which the item belongs:

"This item belongs to Nelsonville and cannot be checked out from this
location."

Checkouts of items belonging to the library should be unaffected.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 50ff4f4a94598ce197c0ca5656d314195cf69d07)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 624af4b7f11a4ff8bccf3252e72880cec9c22b1b)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 624af4b7f11a4ff8bccf3252e72880cec9c22b1b)
C4/Circulation.pm
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt