Lines 67-73
sub fetch_bib {
Link Here
|
67 |
my $query = shift; |
67 |
my $query = shift; |
68 |
my $biblionumber = shift; |
68 |
my $biblionumber = shift; |
69 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
69 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
70 |
my $record = $biblio->metadata->record({ embed_items => scalar $query->param('items') }); |
70 |
my $record = $biblio->metadata_record({ embed_items => scalar $query->param('items') }); |
71 |
if (defined $record) { |
71 |
if (defined $record) { |
72 |
print $query->header(-type => 'text/xml',-charset => 'utf-8',); |
72 |
print $query->header(-type => 'text/xml',-charset => 'utf-8',); |
73 |
print $record->as_xml_record(); |
73 |
print $record->as_xml_record(); |
Lines 117-123
sub update_bib {
Link Here
|
117 |
|
117 |
|
118 |
C4::Biblio::ModBiblio( $record, $biblionumber, $frameworkcode ); |
118 |
C4::Biblio::ModBiblio( $record, $biblionumber, $frameworkcode ); |
119 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
119 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
120 |
my $new_record = $biblio->metadata->record({ embed_items => scalar $query->url_param('items') }); |
120 |
my $new_record = $biblio->metadata_record({ embed_items => scalar $query->url_param('items') }); |
121 |
|
121 |
|
122 |
$result->{'status'} = "ok"; |
122 |
$result->{'status'} = "ok"; |
123 |
$result->{'biblionumber'} = $biblionumber; |
123 |
$result->{'biblionumber'} = $biblionumber; |