Bug 16530: Add a new method to the Branches TT Plugin to avoid c/p
[koha_ffzg] / Koha / Template / Plugin / Branches.pm
index 3d17edc..edbad11 100644 (file)
@@ -75,4 +75,9 @@ sub all {
     return $libraries;
 }
 
+sub InIndependentBranchesMode {
+    my ( $self ) = @_;
+    return ( not C4::Context->preference("IndependentBranches") or C4::Context::IsSuperLibrarian );
+}
+
 1;