]> git.koha-community.org Git - koha.git/commit
Bug 11175: Limit the amount of component parts returned
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Fri, 13 Nov 2020 17:52:18 +0000 (19:52 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Oct 2021 14:46:02 +0000 (16:46 +0200)
commitd21e919ba6d398baa727ca2b6a746dac370b2f96
tree471bccb2e159398edd12c1a6bb4a3165724c1ae5
parent5f83be33671c56c55d57a21a3b04c9a7ba8d171e
Bug 11175: Limit the amount of component parts returned

There was already before this a limit of 100 results when using
Elasticsearch but then the list of component parts was truncated
silently. This change now limits the amount to hard coded limit of 300
which is still fast to render. Also when the 300 component part record
limit is reached there is a link in the list now to list all the
records via the cataloging search.

To test:
   1) Create 300+ component part records and see if the link to list
      all the component part records shows up
   2) Make sure prove t/Koha/Util/Search.t passes

Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Nugged <nugged@gmail.com>
Bug 11175: (QA follow-up) Replace en dash with hyphen in perldoc

This fixes the QA tool failure.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
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>
C4/XSLT.pm
Koha/Biblio.pm
Koha/Util/Search.pm [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
t/Koha/Util/Search.t [new file with mode: 0755]