|
Lines 28-33
use C4::Context;
Link Here
|
| 28 |
use Koha::DateUtils qw( dt_from_string ); |
28 |
use Koha::DateUtils qw( dt_from_string ); |
| 29 |
use Koha::Biblios; |
29 |
use Koha::Biblios; |
| 30 |
use Koha::RecordSources; |
30 |
use Koha::RecordSources; |
|
|
31 |
use Koha::SearchEngine; |
| 32 |
use Koha::SearchEngine::Indexer; |
| 31 |
use URI::Escape qw( uri_escape_utf8 ); |
33 |
use URI::Escape qw( uri_escape_utf8 ); |
| 32 |
|
34 |
|
| 33 |
# ======================== |
35 |
# ======================== |
|
Lines 40-47
my $save = $input->param('save') // '';
Link Here
|
| 40 |
my $biblio = Koha::Biblios->find($biblionumber); |
42 |
my $biblio = Koha::Biblios->find($biblionumber); |
| 41 |
my $current_source = $biblio->metadata->record_source; |
43 |
my $current_source = $biblio->metadata->record_source; |
| 42 |
|
44 |
|
| 43 |
if ($save ne '') { |
45 |
if ($save) { |
| 44 |
$biblio->metadata->set({record_source_id => $record_source_id})->store; |
46 |
$biblio->metadata->set({record_source_id => $record_source_id})->store; |
|
|
47 |
my $indexer = Koha::SearchEngine::Indexer->new( { index => $Koha::SearchEngine::BIBLIOS_INDEX } ); |
| 48 |
$indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" ); |
| 45 |
print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber"); |
49 |
print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber"); |
| 46 |
} |
50 |
} |
| 47 |
|
51 |
|
| 48 |
- |
|
|