$dbh was declared twice
prototypes used in a subroutine that was not declared before use
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
my %cookies = parse CGI::Cookie($cookie);
my $sessionID = $cookies{'CGISESSID'}->value;
-my $dbh = C4::Context->dbh;
#--- ----------------------------------------------------------------------------
# Where subfield is not repeated
# And where we are sure that field should correspond
# And $tag>10
-sub UpdateMarcWith($$){
+sub UpdateMarcWith {
my ($marcfrom,$marcto)=@_;
#warn "FROM :",$marcfrom->as_formatted;
my ( $itemtag, $itemtagsubfield) = &GetMarcFromKohaField("items.itemnumber", "");