Lines 297-303
sub ModBiblio {
Link Here
|
297 |
# update biblionumber and biblioitemnumber in MARC |
297 |
# update biblionumber and biblioitemnumber in MARC |
298 |
# FIXME - this is assuming a 1 to 1 relationship between |
298 |
# FIXME - this is assuming a 1 to 1 relationship between |
299 |
# biblios and biblioitems |
299 |
# biblios and biblioitems |
300 |
my $sth = $dbh->prepare("select biblioitemnumber,history from biblioitems where biblionumber=?"); |
300 |
my $sth = $dbh->prepare("select biblioitems.biblioitemnumber, biblio_metadata.history from biblioitems, biblio_metadata where biblioitems.biblionumber=?"); |
301 |
$sth->execute($biblionumber); |
301 |
$sth->execute($biblionumber); |
302 |
my ($biblioitemnumber, $history) = $sth->fetchrow; |
302 |
my ($biblioitemnumber, $history) = $sth->fetchrow; |
303 |
$sth->finish(); |
303 |
$sth->finish(); |
Lines 3358-3365
sub ModBiblioMarc {
Link Here
|
3358 |
my $newhistory = HistoryUpdate($newrecord, $historylength, $history); |
3358 |
my $newhistory = HistoryUpdate($newrecord, $historylength, $history); |
3359 |
$newhistory = encode_json($newhistory); |
3359 |
$newhistory = encode_json($newhistory); |
3360 |
|
3360 |
|
3361 |
$sth = $dbh->prepare("UPDATE biblioitems SET marc=?,marcxml=?,history=? WHERE biblionumber=?"); |
3361 |
$sth = $dbh->prepare("UPDATE biblio_metadata SET metadata=?,history=? WHERE biblionumber=?"); |
3362 |
$sth->execute( $record->as_usmarc(), $record->as_xml_record($encoding), $newhistory, $biblionumber ); |
3362 |
$sth->execute( $record->as_xml_record($encoding), $newhistory, $biblionumber ); |
3363 |
$sth->finish; |
3363 |
$sth->finish; |
3364 |
|
3364 |
|
3365 |
ModZebra( $biblionumber, "specialUpdate", "biblioserver", $record ); |
3365 |
ModZebra( $biblionumber, "specialUpdate", "biblioserver", $record ); |