View | Details | Raw Unified | Return to bug 37054
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Branches.pm (-11 / +5 lines)
Lines 45-50 sub GetName { Link Here
45
    return $branchname;
45
    return $branchname;
46
}
46
}
47
47
48
sub GetLoggedInBranch {
49
    my ($self) = @_;
50
    return Koha::Libraries->find( $self->GetLoggedInBranchcode );
51
}
52
48
sub GetLoggedInBranchcode {
53
sub GetLoggedInBranchcode {
49
    my ($self) = @_;
54
    my ($self) = @_;
50
55
Lines 191-205 sub GetBranchSpecificCSS { Link Here
191
    return $opacusercss;
196
    return $opacusercss;
192
}
197
}
193
198
194
sub get_library_color {
195
    my ( $self, $branchcode ) = @_;
196
197
    return q{} unless defined $branchcode;
198
199
    my $library     = Koha::Libraries->find($branchcode);
200
    my $library_color = $library ? $library->library_color : q{};
201
202
    return $library_color;
203
}
204
205
1;
199
1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-2 / +1 lines)
Lines 51-57 var Koha = {}; Link Here
51
[% IF ( login ) %]
51
[% IF ( login ) %]
52
    [% Asset.css("css/login.css") | $raw %]
52
    [% Asset.css("css/login.css") | $raw %]
53
[% END %]
53
[% END %]
54
[% SET library_color = Branches.get_library_color( Branches.GetLoggedInBranchcode() ) %]
54
[% SET library_color = Branches.GetLoggedInBranch.library_color %]
55
[% IF library_color %]
55
[% IF library_color %]
56
    <style>
56
    <style>
57
        #header_search,
57
        #header_search,
58
- 

Return to bug 37054