[Koha-bugs] [Bug 30280] Koha does not currently support authority records with common subject headings from different thesaurus

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 12 18:02:09 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30280

--- Comment #18 from Frank Hansen <frank.hansen at ub.lu.se> ---
(In reply to David Nind from comment #16)
> Hi Frank.
> 
> I am getting an error message when resetting the mappings after the patch is
> applied (step 5 of the test plan) - this worked without error before the
> patch was applied:
> 
> DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
> execute failed: Data truncated for column 'marc_type' at row 1 at
> /kohadevbox/koha/Koha/Objects.pm line 114
>  at /usr/share/perl5/DBIx/Class/Exception.pm line 77
> 
>     in DBIx::Class::Exception::throw at
> /usr/share/perl5/DBIx/Class/Exception.pm line 77
> 
>        74:     my $self = { msg => $msg };
>        75:     bless $self => $class;
>        76: 
>        77:     die $self;
>        78: }
>        79: 
>        80: =head2 rethrow
> 
>    .....
> 
> David

Hi David,

I don't get this error. I don't using docker myself but a kohadevbox. I using
the latest debian 11 box to create the koha enviroment with ElasticSearch 6. I
did the following:

1. Creating the koha database instance by using the webinstaller.
2. Loaded demo records into the database (i using kshell when I work with the
records)
perl ../misc4dev/insert_data.pl
rebuild_elasticsearch.pl -d -v
3. Enabling Elasticsearch as search engine in intranet
4. Loading the sample records with bulkmarkimport.pl:
./bulkmarcimport.pl -v -a -file /var/tmp/authorities.mrc -insert -c=MARC21
./bulkmarcimport.pl -v -b -file /var/tmp/biblios.mrc -insert -c=MARC21
5. I verified if the sample records were loaded properly. I experienced that
the authority record was loaded and indexed ok. But the biblio record weren't
indexed for some reason. They seems to have been loaded into the database but
somehow Koha didn't indexed the record. This command worked for me before. I
had to reindex the biblio records again before I applied the patch:
/home/vagrant/kohaclone/misc/search_tools/rebuild_elasticsearch.pl -d -v
6. The sample biblio have topic terms but they are not linked to any authority
records.
7. Applying the patch.
8. Resetting the mappings which work for me without any any errors as described
above.
9. Rebuilding the authority index.
/home/vagrant/kohaclone/misc/search_tools/rebuild_elasticsearch.pl -a -d -v
10. Link bibliographic records to authority records
/home/vagrant/kohaclone/misc/link_bibs_to_authorities.pl -v -l
11. When I search the record, the topic_terms is linked.

Is there some differences between docker and kohadevbox when it comes to
mappings?

Regards,
Frank

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list