From f7291a0700e4a3a238d7cd4d93dcb637c81f32e6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Oct 2024 10:46:58 +0000 Subject: [PATCH] Bug 38221: Add Bootstrap styling to pagination in authority plugin search results This patch updates the markup of pagination links in the authority search popup so that they have Bootstrap styling consistent with other pages (e.g. catalog search results). The pagination markup has also been moved to a BLOCK so that it can be reused instead of duplicated on the page. To test, apply the patch and go to Cataloging -> New record (using the basic MARC editor). - Switch to tab 1 and click the tag editor link next to tag 100 subfield a. - Perform a search in the popup window which will return multiple pages of results (an empty search will work with default testing data). - Confirm that the pagination links are styled like catalog search results. - Confirm that the search links work correctly and that the correct number is highlighted as you page through results. Sponsored-by: Athens County Public Libraries --- .../prog/en/includes/auth-finder-search.inc | 2 +- .../authorities/searchresultlist-auth.tt | 87 +++++++++---------- 2 files changed, 43 insertions(+), 46 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc index 39ce49d278..f9ff82c907 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc @@ -5,7 +5,7 @@
Clear field
Create new authority
-
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index 2b1e9ce345..f96f30f856 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -22,42 +22,56 @@ - -
- -

Authority search results

- [% INCLUDE 'auth-finder-search.inc' %] - [% IF ( total ) %]
- [% IF ( displayprev ) %] - - << - +[% BLOCK result_page_numbers %] +
+ +
+[% END %] + + +
+ +

Authority search results

+ [% INCLUDE 'auth-finder-search.inc' %] + [% IF ( result ) %] +

Results [% from | html %] to [% to | html %] of [% total | html %]

+ [% PROCESS 'result_page_numbers' %] + [% ELSE %]

No results found

- [% END %] -
- [% IF ( result ) %]
+ [% END %] + + [% IF ( result ) %] +
@@ -106,27 +120,10 @@ [% END %]
Summary
-
-
- [% IF ( displayprev ) %] - - << - - [% END %] - [% FOREACH number IN numbers %] - [% IF ( number.highlight ) %] - [% number.number | html %] - [% ELSE %] - - [% number.number | html %] - [% END %] - [% END %] - [% IF ( displaynext ) %] - - >> - [% END %] -
[% END %] + [% PROCESS 'result_page_numbers' %] + [% END %] +
[% INCLUDE 'authority-detail-modal.inc' %] -- 2.39.5