From bdd6346c90e066a6e8beb0a56aeae346aafee389 Mon Sep 17 00:00:00 2001 From: slef Date: Tue, 15 Jul 2003 23:09:18 +0000 Subject: [PATCH] change show columns to use biblioitems bnotes too --- C4/Biblio.pm | 4 ++++ admin/marc_subfields_structure.pl | 1 + 2 files changed, 5 insertions(+) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 18b8595476..82af73b0bb 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1,6 +1,9 @@ package C4::Biblio; # $Id$ # $Log$ +# Revision 1.57 2003/07/15 23:09:18 slef +# change show columns to use biblioitems bnotes too +# # Revision 1.56 2003/07/15 11:34:52 slef # fixes from paul email # @@ -1098,6 +1101,7 @@ sub MARCmarc2koha { $sth2=$dbh->prepare("SHOW COLUMNS from biblioitems"); $sth2->execute; while (($field)=$sth2->fetchrow) { + if ($field eq 'notes') { $field = 'bnotes'; } $result=&MARCmarc2kohaOneField($sth,"biblioitems",$field,$record,$result); } $sth2=$dbh->prepare("SHOW COLUMNS from items"); diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index a8039d7280..566d76fd94 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -96,6 +96,7 @@ if ($op eq 'add_form') { my $sth2=$dbh->prepare("SHOW COLUMNS from biblioitems"); $sth2->execute; while ((my $field) = $sth2->fetchrow_array) { + if ($field eq 'notes') { $field = 'bnotes'; } push @kohafields, "biblioitems.".$field; } my $sth2=$dbh->prepare("SHOW COLUMNS from items"); -- 2.39.5