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 3160-3167
sub ModBiblioMarc {
Link Here
|
3160 |
my $newhistory = HistoryUpdate($newrecord, $historylength, $history); |
3160 |
my $newhistory = HistoryUpdate($newrecord, $historylength, $history); |
3161 |
$newhistory = encode_json($newhistory); |
3161 |
$newhistory = encode_json($newhistory); |
3162 |
|
3162 |
|
3163 |
$sth = $dbh->prepare("UPDATE biblioitems SET marc=?,marcxml=?,history=? WHERE biblionumber=?"); |
3163 |
$sth = $dbh->prepare("UPDATE biblio_metadata SET metadata=?,history=? WHERE biblionumber=?"); |
3164 |
$sth->execute( $record->as_usmarc(), $record->as_xml_record($encoding), $newhistory, $biblionumber ); |
3164 |
$sth->execute( $record->as_xml_record($encoding), $newhistory, $biblionumber ); |
3165 |
$sth->finish; |
3165 |
$sth->finish; |
3166 |
|
3166 |
|
3167 |
ModZebra( $biblionumber, "specialUpdate", "biblioserver", $record ); |
3167 |
ModZebra( $biblionumber, "specialUpdate", "biblioserver", $record ); |