From af0cbb53ed044fd24cd2ed44abf9a18cc20b2b5f Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 19 Feb 2024 13:12:25 +0000 Subject: [PATCH] Bug 36130: Fetch all batches for the table Test plan, ktd: - Add 'FreeForm' backend and enable ILLModule, run: bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) - Install a metadata enrichment plugin, e.g.: https://github.com/PTFS-Europe/koha-plugin-api-pubmed/releases - Add 21 batches, run the following command in kshell: for x in {1..21}; do echo "INSERT INTO illbatches (name, backend, library_id, status_code, patron_id) VALUES ('$x', 'FreeForm', 'CPL', 'NEW', 52);"; done | koha-mysql kohadev - Visit ILL batches page: /cgi-bin/koha/ill/ill-requests.pl?method=batch_list - Notice only 20 batches show. - Apply patch. Notice 20 batches show but now there is a page 2 link. - Test page 2 works as expected, delete a batch, notice only 1 page with 20 batches shows again. Signed-off-by: David Nind Signed-off-by: Edith Speller Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer (cherry picked from commit 3718d995d58d8f6a91b3f34a351885cb244b75d3) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js index fe535ff16e..b5fd366dc4 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js @@ -27,7 +27,7 @@ table = initTable(); // Do the initial data population - window.doBatchApiRequest('', { + window.doBatchApiRequest( '?_per_page=-1', { headers: { 'x-koha-embed': '+strings,requests+count,patron' } -- 2.39.5