Bug 7652: Add item barcode on top of its editing form
authorLyon3 Team <koha@univ-lyon3.fr>
Sat, 9 Jun 2012 10:06:49 +0000 (11:06 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 10 Jun 2012 09:49:31 +0000 (11:49 +0200)
Signed-off-by: Adrien Saurat <adrien.saurat@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
cataloguing/additem.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt

index f970890..91b4c99 100755 (executable)
@@ -720,6 +720,7 @@ $template->param(
     item_header_loop => \@header_value_loop,
     item             => \@loop_data,
     itemnumber       => $itemnumber,
+    barcode          => GetBarcodeFromItemnumber($itemnumber),
     itemtagfield     => $itemtagfield,
     itemtagsubfield  => $itemtagsubfield,
     op      => $nextop,
index 296f795..6692274 100644 (file)
@@ -231,7 +231,7 @@ $(document).ready(function() {
     [% IF ( opisadd ) %]
         <h2 id="additema">Add item</h2>
     [% ELSE %]
-        <h2 id="edititem">Edit item #[% itemnumber %]</h2>
+        <h2 id="edititem">Edit Item #[% itemnumber %][% IF ( barcode ) %] / Barcode [% barcode %][% END %]</h2>
     [% END %]
        <fieldset class="rows">
        <ol>