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

(-)a/Koha/Library.pm (-23 / +22 lines)
Lines 348-376 on the API. Link Here
348
348
349
sub to_api_mapping {
349
sub to_api_mapping {
350
    return {
350
    return {
351
        branchcode             => 'library_id',
351
        branchcode       => 'library_id',
352
        branchname             => 'name',
352
        branchname       => 'name',
353
        branchaddress1         => 'address1',
353
        branchaddress1   => 'address1',
354
        branchaddress2         => 'address2',
354
        branchaddress2   => 'address2',
355
        branchaddress3         => 'address3',
355
        branchaddress3   => 'address3',
356
        branchzip              => 'postal_code',
356
        branchzip        => 'postal_code',
357
        branchcity             => 'city',
357
        branchcity       => 'city',
358
        branchstate            => 'state',
358
        branchstate      => 'state',
359
        branchcountry          => 'country',
359
        branchcountry    => 'country',
360
        branchphone            => 'phone',
360
        branchphone      => 'phone',
361
        branchfax              => 'fax',
361
        branchfax        => 'fax',
362
        branchemail            => 'email',
362
        branchemail      => 'email',
363
        branchillemail         => 'ill_email',
363
        branchillemail   => 'ill_email',
364
        branchreplyto          => 'reply_to_email',
364
        branchreplyto    => 'reply_to_email',
365
        branchreturnpath       => 'return_path_email',
365
        branchreturnpath => 'return_path_email',
366
        branchurl              => 'url',
366
        branchurl        => 'url',
367
        issuing                => undef,
367
        issuing          => undef,
368
        branchip               => 'ip',
368
        branchip         => 'ip',
369
        branchnotes            => 'notes',
369
        branchnotes      => 'notes',
370
        marcorgcode            => 'marc_org_code',
370
        marcorgcode      => 'marc_org_code',
371
        opacusercss            => undef,
371
        opacusercss      => undef,
372
        opacuserjs             => undef,
372
        opacuserjs       => undef,
373
        ui_staff_customization => undef
374
    };
373
    };
375
}
374
}
376
375
(-)a/Koha/Template/Plugin/Branches.pm (-2 / +9 lines)
Lines 27-33 use C4::Koha; Link Here
27
use C4::Context;
27
use C4::Context;
28
use Koha::Cache::Memory::Lite;
28
use Koha::Cache::Memory::Lite;
29
use Koha::Libraries;
29
use Koha::Libraries;
30
use JSON qw( decode_json );
30
use JSON      qw( decode_json );
31
use Try::Tiny qw( catch try );
31
32
32
sub GetName {
33
sub GetName {
33
    my ( $self, $branchcode ) = @_;
34
    my ( $self, $branchcode ) = @_;
Lines 202-208 sub GetBranchCustomization { Link Here
202
203
203
    my $library             = Koha::Libraries->find($branchcode);
204
    my $library             = Koha::Libraries->find($branchcode);
204
    my $customizations_json = $library ? $library->ui_staff_customization : q{};
205
    my $customizations_json = $library ? $library->ui_staff_customization : q{};
205
    my $customizations      = decode_json($customizations_json);
206
207
    my $customizations;
208
    try {
209
        $customizations = decode_json($customizations_json);
210
    } catch {
211
        return q{};
212
    };
206
213
207
    return q{} unless defined $key;
214
    return q{} unless defined $key;
208
215
(-)a/api/v1/swagger/definitions/library.yaml (-1 / +1 lines)
Lines 101-107 properties: Link Here
101
    type:
101
    type:
102
      - string
102
      - string
103
      - "null"
103
      - "null"
104
    description: the primary color used by the library
104
    description: a JSON object containing branch specific staff interface  UI customization
105
  marc_org_code:
105
  marc_org_code:
106
    type:
106
    type:
107
      - string
107
      - string
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc (+4 lines)
Lines 41-45 Link Here
41
        :root {
41
        :root {
42
            --library-color: [% ui_staff_color_background | html %]
42
            --library-color: [% ui_staff_color_background | html %]
43
        }
43
        }
44
    [% ELSE %]
45
        :root {
46
            --library-color: #408540;
47
        }
44
    [% END %]
48
    [% END %]
45
</style>
49
</style>
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss (-2 / +1 lines)
Lines 1222-1228 table { Link Here
1222
    .nav-link {
1222
    .nav-link {
1223
        background-color: #F0F3F3;
1223
        background-color: #F0F3F3;
1224
        border: 1px solid $nav-tabs-border-color;
1224
        border: 1px solid $nav-tabs-border-color;
1225
        color: var( --library-color );
1225
        color: var( --bs-link-color );
1226
        font-weight: normal;
1226
        font-weight: normal;
1227
        margin-right: .4em;
1227
        margin-right: .4em;
1228
1228
1229
- 

Return to bug 37054