From 13ca97d5ffb595c34ff4633f05d0943025887758 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). --- .../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 4aaeeed..821acb6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1916,9 +1916,9 @@ [% IF Koha.Preference('Mana') %]