Bugzilla – Attachment 42392 Details for
Bug 12478
Elasticsearch support for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12478: Fix error on indexing a specific record
Bug-12478-Fix-error-on-indexing-a-specific-record.patch (text/plain), 1.60 KB, created by
Jonathan Druart
on 2015-09-04 12:37:03 UTC
(
hide
)
Description:
Bug 12478: Fix error on indexing a specific record
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-09-04 12:37:03 UTC
Size:
1.60 KB
patch
obsolete
>From 21a7672cf778d11a7de5e2b9adbc52ec941cb569 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 4 Sep 2015 13:00:48 +0100 >Subject: [PATCH] Bug 12478: Fix error on indexing a specific record > >% perl misc/search_tools/rebuild_elastic_search.pl -bn 42 >Can't locate object method "idnumber" via package "MARC::Record" at >misc/search_tools/rebuild_elastic_search.pl line 171. >--- > Koha/Biblio.pm | 2 +- > misc/search_tools/rebuild_elastic_search.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 480b716..6c975d6 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -93,7 +93,7 @@ It will return C<undef> if the biblio doesn't exist. > sub get_from_biblionumber { > my ($class, $bibnum, %options) = @_; > >- my $marc = get_marc_biblio($bibnum, %options); >+ my $marc = $class->get_marc_biblio($bibnum, %options); > return $class->new($marc, $bibnum); > } > >diff --git a/misc/search_tools/rebuild_elastic_search.pl b/misc/search_tools/rebuild_elastic_search.pl >index 9e15edb..804bb64 100755 >--- a/misc/search_tools/rebuild_elastic_search.pl >+++ b/misc/search_tools/rebuild_elastic_search.pl >@@ -125,7 +125,7 @@ if ($index_biblios) { > $next = sub { > my $r = shift @biblionumbers; > return () unless defined $r; >- return ($r, Koha::Biblio->get_marc_biblio($r, item_data => 1)); >+ return ($r, Koha::Biblio->get_from_biblionumber($r, item_data => 1 )); > }; > } else { > my $records = Koha::Biblio->get_all_biblios_iterator(); >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12478
:
29204
|
31128
|
31129
|
33136
|
33137
|
33138
|
33139
|
33140
|
33141
|
35654
|
40903
|
42030
|
42031
|
42032
|
42033
|
42062
|
42063
|
42064
|
42065
|
42066
|
42067
|
42068
|
42069
|
42392
|
42393
|
43127
|
43128
|
43129
|
43130
|
43131
|
43132
|
43133
|
43134
|
43140
|
43141
|
43142
|
43148
|
43345
|
43346
|
43347
|
43348
|
43349
|
43350
|
43351
|
43352
|
43373
|
47767
|
47768
|
50115
|
50159
|
50211
|
50212
|
50213
|
50214
|
50245
|
50246
|
50291
|
50292