From dd2bdddeca7e06771dabb30205d608a2fca20e44 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Fri, 15 Nov 2024 14:28:32 -0800 Subject: [PATCH] Bug 38462: Remove unused code for pagination in OPAC authority search The remote branch for bug 13618 started out when OPAC authority search did its own pagination in a template block, then bug 2735 replaced that with pagination_bar, the template var passed from the script, then at some point before bug 13618 landed the second time, a rebase error put the template block back in. And since it's not at all obvious it is dead code unless you look for where "pagination" rather than "pagination_bar" is used, we've kept updating it, and bug 36032 thought the way it used >> instead of > for next ought to be fixed while one that was actually used was fixed. Time to get rid of it, before we 'fix' it again. Test plan: 1. Without the patch, in the OPAC go to Authority Search and do a search that will return pages of results, like the letter a 2. Note that the button for the next page uses ">" rather than the "Next >>" in the block this patch removes 3. Apply patch, click the browser Back button, refresh page 4. Verify that when you search for something that returns more than one page of results, the page navigation hasn't changed from what it was before the patch, telling you that what the patch removes was unused Sponsored-by: Chetco Community Public Library --- .../opac-authoritiessearchresultlist.tt | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt index b6d470f681..20639d6a3a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt @@ -8,37 +8,6 @@ [% PROCESS 'opac-authorities.inc' %] [% PROCESS 'authorities-search-results.inc' %] [% PROCESS 'i18n.inc' %] -[% BLOCK pagination %] - -[% END %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% t("Results") | html %] › -- 2.44.0