Bugzilla – Attachment 168840 Details for
Bug 37192
Can't print label from the item editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37192: Adjust template for additem.tt
Bug-37192-Adjust-template-for-additemtt.patch (text/plain), 2.67 KB, created by
Lucas Gass (lukeg)
on 2024-07-11 16:14:45 UTC
(
hide
)
Description:
Bug 37192: Adjust template for additem.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-07-11 16:14:45 UTC
Size:
2.67 KB
patch
obsolete
>From e1de2f17287732f11b0bbb37401d6c79a722cfe3 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 11 Jul 2024 16:12:29 +0000 >Subject: [PATCH] Bug 37192: Adjust template for additem.tt > >Test plan: >1. Search the catalog for something that will return results, like Perl >2. On any bib that has at least one item, click Edit items >3. In the Actions menu to the left of any item, choose Print label >4. That opened a popup with a 500 error rather than a label batch editor >5. Apply patch, restart_all >6. Repeat step 3, but this time you'll get a label batch editor with your > item in it. >--- > .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index 9cc3367330..c9e5bf1da7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -35,6 +35,7 @@ > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'str/cataloging_additem.inc' %] > [% Asset.js("js/cataloging_additem.js") | $raw %] >+[% Asset.js("js/form-submit.js") | $raw %] > <script> > var has_item_groups = "[% item_groups.size | html %]"; > </script> >@@ -134,7 +135,9 @@ > <li><a href="additem.pl?op=edititem&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]&searchid=[% searchid | uri %]#edititem">Edit</a></li> > [% END %] > <li><a href="additem.pl?op=dupeitem&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]&searchid=[% searchid | uri %]#additema">Duplicate</a></li> >- <li class="print_label"><a href="/cgi-bin/koha/labels/label-edit-batch.pl?op=add&number_type=itemnumber&number_list=[% item.itemnumber | uri %]" target="_blank" >Print label</a></li> >+ <li class="print_label"> >+ <a class="submit-form-link" target="_blank" href="#" data-op="cud-add" data-number_list="[% item.itemnumber | html %]" data-number_type="itemnumber" data-method="post" data-action="/cgi-bin/koha/labels/label-edit-batch.pl" data-new_tab="true">Print label</a> >+ </li> > [% UNLESS item.nomod %] > <li> > <form id="[% item.itemnumber | html %]-delete-item-form" action="/cgi-bin/koha/cataloguing/additem.pl" method="post"> >-- >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 37192
:
168117
|
168151
|
168839
|
168840
|
168851
|
168852
|
169089
|
169090