]> git.koha-community.org Git - koha.git/commit
Bug 11175: (QA follow-up) Account for difference in simple_search return
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 Oct 2021 08:49:34 +0000 (09:49 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Oct 2021 14:46:02 +0000 (16:46 +0200)
commit85e6e197fbe4b1d72a58f9c296159f8ce9326eb5
tree7a6d50a8192c886b77b676de1f7f165b246fd5d3
parent43dff988bd480c27e6e2d1aee33811ce06e93f0a
Bug 11175: (QA follow-up) Account for difference in simple_search return

Thanks to a comment from Andrew, I discovered that the return from
simple_search_compat actually differs depending on if you are using
ElasticSearch or Zebra. The 'results' arrayref contains MARC::Record
objects for ES and raw marc strings if you are using Zebra.  This is
actually already dealt with in the misnamed new_record_from_zebra
function inside C4::Search.. so this patch simply replaces our
MARC::Record instantiation code with a call to that function.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Nugged <nugged@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/detail.pl
opac/opac-detail.pl