projects
/
koha_ffzg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 16530: Add a new method to the Branches TT Plugin to avoid c/p
[koha_ffzg]
/
Koha
/
Template
/
Plugin
/
Branches.pm
diff --git
a/Koha/Template/Plugin/Branches.pm
b/Koha/Template/Plugin/Branches.pm
index
3d17edc
..
edbad11
100644
(file)
--- a/
Koha/Template/Plugin/Branches.pm
+++ b/
Koha/Template/Plugin/Branches.pm
@@
-75,4
+75,9
@@
sub all {
return $libraries;
}
+sub InIndependentBranchesMode {
+ my ( $self ) = @_;
+ return ( not C4::Context->preference("IndependentBranches") or C4::Context::IsSuperLibrarian );
+}
+
1;