From 0396181144f00ab49291e8cfa1483f7db0a03ecf Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Thu, 22 Jun 2017 07:49:42 +0000 Subject: [PATCH] Bug 18618: Add a pagination for suggestions *** Suggestions are now sent from Mana as follows - Koha requests the first 20 suggestions - It processes them and estimates how much it will need to get all suggestions - It requests Mana the number of suggestions needed - It repeats the 3 first steps until (1) Mana doesn't have suggestions anymore (2) It got 10 suggestions to display *** Koha interface is a bit more verbose while searching (just a bit). Signed-off-by: Brendan A Gallagher --- .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- misc/cronjobs/mana_send_pairs.pl | 18 +-- opac/svc/mana/getSuggestion | 139 +++++++++++++-------- 3 files changed, 98 insertions(+), 61 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 4c51b5c..a663ca3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1938,9 +1938,9 @@ [% IF Koha.Preference('Mana') %]