]> git.koha-community.org Git - koha.git/commit
Bug 28384: Add 'no_items' option to TransformMarcToKoha
authorNick Clemens <nick@bywatersolutions.com>
Wed, 19 May 2021 10:19:33 +0000 (10:19 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:34 +0000 (15:47 +0200)
commit5da5a2bbc53613c511ba9e7e1a93d9f71e993160
tree0637c401210476d960a4ea8ea3c8f248045d8f2e
parenta6d0ba552ecef05de9a8893c0b2833ec1def3ad9
Bug 28384: Add 'no_items' option to TransformMarcToKoha

This patch adds a new option 'no_items' and uses it in the C4::Search::searchResults
routine. We don't use the item info fetched here, so skipping those lines saves us time.

Additionally, I fix an incorrect FIXME comment, and pass the ISBN returned by the routine above
into GetNormalizedISBN to save another lookup

TO test:
1 - Enable AmazonCoverImages system preference
2 - Search staff client with a term that returns books with covers
3 - Apply patch
4 - prove -v t/db_dependent/Biblio/TransformMarcToKoha.t
5 - Confirm searching works
6 - Confirm Amazon images display (normalized_isbn is used for these)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Amended, replacing a tab character.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Biblio.pm
C4/Search.pm
t/db_dependent/Biblio/TransformMarcToKoha.t