Bugzilla – Attachment 133762 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 logged in branch as class to spinelabel-print.tt body
Bug-28512-add-logged-in-branch-as-class-to-spinela.patch (text/plain), 1.91 KB, created by
Katrin Fischer
on 2022-04-25 12:15:51 UTC
(
hide
)
Description:
Bug 28512: add logged in branch as class to spinelabel-print.tt body
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-04-25 12:15:51 UTC
Size:
1.91 KB
patch
obsolete
>From 32653964ec5b13f27d365c2827bebec1eb639012 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 3 Jun 2021 15:24:12 +0000 >Subject: [PATCH] Bug 28512: add logged in branch as class to > spinelabel-print.tt body > >To test: >-Apply patch and generate a quick spine label. >-Inscept the page and notice that the body should contain a new class which corresponds with that the of the logged in branch. > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >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 ae1838d6d2..cb935d504c 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> >@@ -14,13 +15,13 @@ > </head> > > [% IF ( BarcodeNotFound ) %] >- <body id="labels_spinelabel-print" class="tools labels"> >+ <body id="labels_spinelabel-print" class="tools labels [% Branches.GetLoggedInBranchcode | html %]"> > <div class="dialog message">The barcode [% Barcode | html %] was not found.</div> > <div id="print_button" class="noprint"> > <button class="btn btn-default close-window">Close</button> > </div> > [% ELSE %] >- <body id="labels_spinelabel-print" class="tools labels"> >+ <body id="labels_spinelabel-print" class="tools labels [% Branches.GetLoggedInBranchcode | html %]"> > <div id="spinelabel"> > [% content | $raw %] > </div> >-- >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