Bugzilla – Attachment 139801 Details for
Bug 28512
Quick spine label creator: Add CSS class with logged in library's branchcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28512: Add branchcode as class to spinelabel element
Bug-28512-Add-branchcode-as-class-to-spinelabel-el.patch (text/plain), 1.39 KB, created by
Lucas Gass (lukeg)
on 2022-08-25 17:18:03 UTC
(
hide
)
Description:
Bug 28512: Add branchcode as class to spinelabel element
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-08-25 17:18:03 UTC
Size:
1.39 KB
patch
obsolete
>From aeaab855b1e3e1e8f08fd17d0992fce34be52830 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 25 Aug 2022 17:15:29 +0000 >Subject: [PATCH] Bug 28512: Add branchcode as class to spinelabel element > >To test: >-Apply patch and generate a quick spine label. >-Inscept the page and notice that the #spinelabel element should contain a new class which corresponds with that the of the logged in branch. >--- > .../intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >index eac2ff3fbe..6a48276f57 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >@@ -1,5 +1,6 @@ > [% USE raw %] > [% USE Asset %] >+[% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Spine labels › Tools › Koha</title> >@@ -21,7 +22,7 @@ > </div> > [% ELSE %] > <body id="labels_spinelabel-print" class="tools labels"> >- <div id="spinelabel"> >+ <div id="spinelabel" class="[% Branches.GetLoggedInBranchcode | html %]"> > [% content | $raw %] > </div> > <div id="print_button" class="noprint"> >-- >2.30.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 28512
:
121607
|
133514
|
133762
|
139801
|
140503
|
141009