Bugzilla – Attachment 130906 Details for
Bug 29824
Allow for quick spine labels to be editable for printing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29824: Allow editing of quick spine labels
Bug-29824-Allow-editing-of-quick-spine-labels.patch (text/plain), 2.01 KB, created by
Katrin Fischer
on 2022-02-19 19:16:34 UTC
(
hide
)
Description:
Bug 29824: Allow editing of quick spine labels
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-02-19 19:16:34 UTC
Size:
2.01 KB
patch
obsolete
>From 221b26b62eaf5d33dc436731a437958a3df5eb09 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 7 Jan 2022 22:31:35 +0000 >Subject: [PATCH] Bug 29824: Allow editing of quick spine labels > >To test: >1. Apply patch >2. Go to the quick spine label tool and enter a barcode of an item with a itemcallnumber >3. Notice the 'Edit this label' button at the bottom of the page, click it >4. Edit the itemcallnumber in some way: add some line breaks, remove some, insert some new characters, remove some characters. >5. You can now print the label with your edits. > >Note: This changes nothing in the database, if you relaod the same item/itemcallnumer it will have returned to its original form > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/labels/spinelabel-print.tt | 7 +++++++ > 1 file changed, 7 insertions(+) > >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 43ee65ea64..ae1838d6d2 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 >@@ -26,6 +26,7 @@ > </div> > <div id="print_button" class="noprint"> > <button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button> >+ <button class="btn btn-default edit-label"><i class="fa fa-lock"></i> Edit this label</button> > </div> > [% END %] > >@@ -46,6 +47,12 @@ > e.preventDefault(); > window.close(); > }); >+ $('.edit-label').click( function() { >+ $('#spinelabel').attr('contenteditable', function(index, attr){ >+ return attr == 'true' ? null : 'true'; >+ }); >+ $('.edit-label .fa').toggleClass('fa-lock').toggleClass('fa-unlock'); >+ }); > }); > </script> > >-- >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 29824
:
129205
|
130905
| 130906