Bug 10515: (follow-up) fix use of GetBranchCategories
authorGalen Charlton <gmc@esilibrary.com>
Wed, 17 Jul 2013 18:02:13 +0000 (18:02 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 17 Jul 2013 18:02:13 +0000 (18:02 +0000)
Adjusting to reflect the removal of the branchcode parameter
to GetBranchCategories; also filter on the 'searchdomain'
library group type, as appears to have been intended.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Auth.pm

index 3c0b804..b19113c 100644 (file)
@@ -390,7 +390,7 @@ sub get_template_and_user {
             AnonSuggestions           => "" . C4::Context->preference("AnonSuggestions"),
             AuthorisedValueImages     => C4::Context->preference("AuthorisedValueImages"),
             BranchesLoop              => GetBranchesLoop($opac_name),
-            BranchCategoriesLoop      => GetBranchCategories( undef, undef, 1, $opac_name ),
+            BranchCategoriesLoop      => GetBranchCategories( 'searchdomain', 1, $opac_name ),
             CalendarFirstDayOfWeek    => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1,
             LibraryName               => "" . C4::Context->preference("LibraryName"),
             LibraryNameTitle          => "" . $LibraryNameTitle,