Lines 99-111
unless ($biblio) {
Link Here
|
99 |
|
99 |
|
100 |
# biblionumber invalid -> report and exit |
100 |
# biblionumber invalid -> report and exit |
101 |
$template->param( |
101 |
$template->param( |
102 |
blocking_error => 'unknown_biblionumber', |
102 |
unknownbiblionumber => 1, |
103 |
biblionumber => $biblionumber |
103 |
biblionumber => $biblionumber |
104 |
); |
104 |
); |
105 |
output_html_with_http_headers $query, $cookie, $template->output; |
105 |
output_html_with_http_headers $query, $cookie, $template->output; |
106 |
exit; |
106 |
exit; |
107 |
} |
107 |
} |
108 |
|
108 |
|
|
|
109 |
if ( $query->param('set_record_source') eq '1' ) { |
110 |
$biblio->metadata->set( { record_source_id => $query->param('record_source_id') } )->store; |
111 |
my $indexer = Koha::SearchEngine::Indexer->new( { index => $Koha::SearchEngine::BIBLIOS_INDEX } ); |
112 |
$indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" ); |
113 |
} |
114 |
|
115 |
$template->param( record_sources => Koha::RecordSources->search() ); |
116 |
|
109 |
my $marc_record = eval { $biblio->metadata->record }; |
117 |
my $marc_record = eval { $biblio->metadata->record }; |
110 |
my $invalid_marc_record = $@ || !$marc_record; |
118 |
my $invalid_marc_record = $@ || !$marc_record; |
111 |
if ($invalid_marc_record) { |
119 |
if ($invalid_marc_record) { |