Bugzilla – Attachment 167579 Details for
Bug 37054
Allow for custom library colors in the staff interface header search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37054: Add branch color to branches.tt
Bug-37054-Add-branch-color-to-branchestt.patch (text/plain), 2.44 KB, created by
Lucas Gass (lukeg)
on 2024-06-07 17:05:45 UTC
(
hide
)
Description:
Bug 37054: Add branch color to branches.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-06-07 17:05:45 UTC
Size:
2.44 KB
patch
obsolete
>From 2501e8fc4b617960e2adce5e431293f5c671c633 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 7 Jun 2024 17:00:20 +0000 >Subject: [PATCH] Bug 37054: Add branch color to branches.tt > >--- > Koha/Library.pm | 3 ++- > admin/branches.pl | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 8 ++++++++ > 3 files changed, 11 insertions(+), 1 deletion(-) > >diff --git a/Koha/Library.pm b/Koha/Library.pm >index e9a53fd939..ca32483db9 100644 >--- a/Koha/Library.pm >+++ b/Koha/Library.pm >@@ -369,7 +369,8 @@ sub to_api_mapping { > branchnotes => 'notes', > marcorgcode => 'marc_org_code', > opacusercss => undef, >- opacuserjs => undef >+ opacuserjs => undef, >+ branchcolor => undef > }; > } > >diff --git a/admin/branches.pl b/admin/branches.pl >index b6d705cd18..32f58d5536 100755 >--- a/admin/branches.pl >+++ b/admin/branches.pl >@@ -84,6 +84,7 @@ if ( $op eq 'add_form' ) { > public > opacuserjs > opacusercss >+ branchcolor > ); > my $is_a_modif = $input->param('is_a_modif'); > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 37afcd259b..8fa11654df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -365,6 +365,10 @@ > <a class="collapse-textarea" id="collapse_opacusercss" data-target="opacusercss" data-syntax="css" style="display:none" href="#">Collapse</br></a> > </div> > </li> >+ <li> >+ <label for="marcorgcode">Branch color</label> >+ <input type="color" name="branchcolor" id="branchcolor" size="16" maxlength="16" value="[% library.branchcolor | html %]" /> >+ </li> > </ol> > </fieldset> > <fieldset class="action"> >@@ -588,6 +592,10 @@ > <span>No opening hours have been set.</span> > [% END %] > </li> >+ <li> >+ <span class="label">Branch color</span> >+ [% library.branchcolor | html %] >+ </li> > </ol> > </div> <!-- /.rows --> > </div> <!-- /.col-sm-6 --> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37054
:
167577
|
167578
|
167579
|
167590
|
167595
|
167596
|
167597
|
167598
|
167609
|
167612
|
167613
|
167614
|
167615
|
167616
|
167618
|
167625
|
171221
|
171222
|
171223
|
171224
|
171225
|
171226