View | Details | Raw Unified | Return to bug 13813
Collapse All | Expand All

(-)a/cataloguing/value_builder/barcode_manual.pl (-3 / +2 lines)
Lines 23-29 no warnings 'redefine'; # otherwise loading up multiple plugins fills the log wi Link Here
23
23
24
use C4::Context;
24
use C4::Context;
25
require C4::Barcodes::ValueBuilder;
25
require C4::Barcodes::ValueBuilder;
26
require C4::Dates;
26
use Koha::DateUtils;
27
27
28
my $DEBUG = 0;
28
my $DEBUG = 0;
29
29
Lines 61-67 sub plugin_javascript { Link Here
61
    $args{dbh} = $dbh;
61
    $args{dbh} = $dbh;
62
62
63
# find today's date
63
# find today's date
64
    ($args{year}, $args{mon}, $args{day}) = split('-', C4::Dates->today('iso'));
64
    ($args{year}, $args{mon}, $args{day}) = split('-', output_pref({ dt => DateTime->now(), dateformat => 'iso', dateonly => 1 }));
65
    ($args{tag},$args{subfield})       =  GetMarcFromKohaField("items.barcode", '');
65
    ($args{tag},$args{subfield})       =  GetMarcFromKohaField("items.barcode", '');
66
    ($args{loctag},$args{locsubfield}) =  GetMarcFromKohaField("items.homebranch", '');
66
    ($args{loctag},$args{locsubfield}) =  GetMarcFromKohaField("items.homebranch", '');
67
67
68
- 

Return to bug 13813