Lines 2955-2966
sub _koha_add_biblio {
Link Here
|
2955 |
seriestitle = ?, |
2955 |
seriestitle = ?, |
2956 |
copyrightdate = ?, |
2956 |
copyrightdate = ?, |
2957 |
datecreated=NOW(), |
2957 |
datecreated=NOW(), |
2958 |
abstract = ? |
2958 |
abstract = ?, |
|
|
2959 |
branchcode = ? |
2959 |
"; |
2960 |
"; |
2960 |
my $sth = $dbh->prepare($query); |
2961 |
my $sth = $dbh->prepare($query); |
2961 |
$sth->execute( |
2962 |
$sth->execute( |
2962 |
$frameworkcode, $biblio->{'author'}, $biblio->{'title'}, $biblio->{'unititle'}, $biblio->{'notes'}, |
2963 |
$frameworkcode, $biblio->{'author'}, |
2963 |
$biblio->{'serial'}, $biblio->{'seriestitle'}, $biblio->{'copyrightdate'}, $biblio->{'abstract'} |
2964 |
$biblio->{'title'}, $biblio->{'unititle'}, |
|
|
2965 |
$biblio->{'notes'}, $biblio->{'serial'}, |
2966 |
$biblio->{'seriestitle'}, $biblio->{'copyrightdate'}, |
2967 |
$biblio->{'abstract'}, $biblio->{'branchcode'}, |
2964 |
); |
2968 |
); |
2965 |
|
2969 |
|
2966 |
my $biblionumber = $dbh->{'mysql_insertid'}; |
2970 |
my $biblionumber = $dbh->{'mysql_insertid'}; |
Lines 2997-3011
sub _koha_modify_biblio {
Link Here
|
2997 |
serial = ?, |
3001 |
serial = ?, |
2998 |
seriestitle = ?, |
3002 |
seriestitle = ?, |
2999 |
copyrightdate = ?, |
3003 |
copyrightdate = ?, |
3000 |
abstract = ? |
3004 |
abstract = ?, |
|
|
3005 |
branchcode = ? |
3001 |
WHERE biblionumber = ? |
3006 |
WHERE biblionumber = ? |
3002 |
" |
3007 |
" |
3003 |
; |
3008 |
; |
3004 |
my $sth = $dbh->prepare($query); |
3009 |
my $sth = $dbh->prepare($query); |
3005 |
|
3010 |
|
3006 |
$sth->execute( |
3011 |
$sth->execute( |
3007 |
$frameworkcode, $biblio->{'author'}, $biblio->{'title'}, $biblio->{'unititle'}, $biblio->{'notes'}, |
3012 |
$frameworkcode, $biblio->{'author'}, |
3008 |
$biblio->{'serial'}, $biblio->{'seriestitle'}, $biblio->{'copyrightdate'}, $biblio->{'abstract'}, $biblio->{'biblionumber'} |
3013 |
$biblio->{'title'}, $biblio->{'unititle'}, |
|
|
3014 |
$biblio->{'notes'}, $biblio->{'serial'}, |
3015 |
$biblio->{'seriestitle'}, $biblio->{'copyrightdate'}, |
3016 |
$biblio->{'abstract'}, $biblio->{'branchcode'}, |
3017 |
$biblio->{'biblionumber'} |
3009 |
) if $biblio->{'biblionumber'}; |
3018 |
) if $biblio->{'biblionumber'}; |
3010 |
|
3019 |
|
3011 |
if ( $dbh->errstr || !$biblio->{'biblionumber'} ) { |
3020 |
if ( $dbh->errstr || !$biblio->{'biblionumber'} ) { |