[Koha-bugs] [Bug 12478] Elasticsearch support for Koha
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 25 13:24:52 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478
--- Comment #188 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Peter Zhao from comment #187)
> Es can not "edit record" or "edit items" in UNIMARC structure. (But it
> works well in USMARC.)
>
> It can show results, but when I click "Edit record", it shows "Add MARC
> record "--blank MARC.
> http://127.0.1.1:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=
>
>
>
> If I click "Edit items" , it shows
>
> http://127.0.1.1:8080/cgi-bin/koha/cataloguing/additem.pl?biblionumber=
>
> Software error:
>
> Can't call method "fields" on an undefined value at
> /home/koha/kohaclone/cataloguing/additem.pl line 703.
>
> For help, please send mail to the webmaster (webmaster at koha), giving this
> error message and the time and date of the error.
>
> I think it can not get the " biblionumber= ".
I suspect that it comes from the fact that biblionumber is not indexed in a
specific field (see comment 148).
Moreover I don't think the following comment is correct
http://git.catalyst.net.nz/gw?p=koha.git;a=blob;f=Koha/ElasticSearch/Indexer.pm;h=06dcb1d3e0b57633652d4cb70ed46ac59f0f802e;hb=refs/heads/elastic_search#l176
167 sub _sanitise_records {
168 my ($self, $biblionums, $records) = @_;
169
170 confess "Unequal number of values in \$biblionums and \$records." if
(@$biblionums != @$records);
171
172 my $c = @$biblionums;
173 for (my $i=0; $i<$c; $i++) {
174 my $bibnum = $biblionums->[$i];
175 my $rec = $records->[$i];
176 # I've seen things you people wouldn't believe. Attack ships on
fire
177 # off the shoulder of Orion. I watched C-beams glitter in the dark
near
178 # the Tannhauser gate. MARC records where 999$c doesn't match the
179 # biblionumber column. All those moments will be lost in time...
like
180 # tears in rain...
181 $rec->delete_fields($rec->field('999'));
182 $rec->append_fields(MARC::Field->new('999','','','c' => $bibnum,
'd' => $bibnum));
183 }
184 }
The biblionumber is stored in 001, isn't it?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list