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