From 78e0754bfc17805d050074d116a3fa0e79546afd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 20 Jul 2011 14:18:34 -0400 Subject: [PATCH] Fix for Bug 6616 - Move common table pager markup to include Created new include for the tablesorter pager markup: [% INCLUDE 'table-pager.inc' perpage='20' %] 'perpage' variable defines the default items per page for the paged table. Unique changes in branch_transfer_limits.tt: - Moved tablesorter configuration out of a loop and changed it to work by class instead of id (less repeated markup). - Corrected an errant TMPL tag. Signed-off-by: Katrin Fischer Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../prog/en/includes/table-pager.inc | 17 ++++++++++ .../en/modules/admin/auth_tag_structure.tt | 21 ++---------- .../en/modules/admin/authorised_values.tt | 22 ++---------- .../modules/admin/branch_transfer_limits.tt | 34 +++++-------------- .../prog/en/modules/admin/branches.tt | 21 ++---------- .../prog/en/modules/admin/categorie.tt | 21 ++---------- .../prog/en/modules/admin/cities.tt | 21 ++---------- .../prog/en/modules/admin/itemtypes.tt | 21 ++---------- .../prog/en/modules/admin/marctagstructure.tt | 21 ++---------- .../prog/en/modules/members/readingrec.tt | 21 ++---------- .../modules/reports/guided_reports_start.tt | 20 ++--------- 11 files changed, 53 insertions(+), 187 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc new file mode 100644 index 0000000000..961c07bc76 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc @@ -0,0 +1,17 @@ +
+ + + +
\ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt index eb1d47eff6..af03d1c605 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt @@ -208,24 +208,9 @@ return false;
- -
 page(s) : - - - - - - , entries/page : - -
-
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index f2356347b5..7e717898dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -221,25 +221,9 @@ [% END %]

Authorized values for category [% category %]:

-[% IF ( loop ) %] -
 page(s) : - - - - - - , entries/page : - - -
[% END %] +[% IF ( loop ) %]
+[% INCLUDE 'table-pager.inc' perpage='50' %] +
[% END %] [% IF ( loop ) %]
Tag
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 2b007bf9f5..5e4e58f345 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -5,6 +5,7 @@ @@ -96,32 +101,11 @@

Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]

Check All | Uncheck All

-
-

 page(s) : - - - - - - , entries/page : - -

-
-
+ [% INCLUDE 'table-pager.inc' perpage='20' %] + +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 1107624980..df5e56c05d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -168,24 +168,9 @@ [% IF ( MESSAGE10 ) %]
Library cannot be deleted because there are items held by that library
[% END %] [% IF ( MESSAGE11 ) %]
Library cannot be deleted because there are patrons registered at that library
[% END %] [% IF ( branches ) %] - -
 page(s) : - - - - - - , entries/page : - - -
+
+[% INCLUDE 'table-pager.inc' perpage='10' %] +
Library
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt index b50012f3ac..62322fabd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt @@ -274,24 +274,9 @@ Confirm Deletion of Category [% categorycode |html %][% END %] You Searched for [% searchfield %] [% END %] [% IF ( loop ) %] - -
 page(s) : - - - - - - , entries/page : - - -
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
Name
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt index f286b7c9ec..c1fccde036 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt @@ -129,24 +129,9 @@ [% END %] [% IF ( loop ) %] - -
 page(s) : - - - - - - , entries/page : - - -
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
Code
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index 9174247084..13ece6e061 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -285,24 +285,9 @@ Item Types Administration [% IF ( else ) %]

Item Types Administration

-[% IF ( loop ) %] -
 page(s):  - - - - - - , entries/page: - - -
+[% IF ( loop ) %]
+[% INCLUDE 'table-pager.inc' perpage='10' %] +
City ID
[% UNLESS ( noItemTypeImages ) %][% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index 275f232b1d..c8898207b7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -157,24 +157,9 @@ $(document).ready(function() { [% END %]

- -
 page(s) : - - - - - - , entries/page : - - -
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
Image
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt index c61006b34a..1ab113080c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -32,24 +32,9 @@

Circulation History

- -
 page(s) : - - - - - - , entries/page : - - -
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
Tag
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 487f9a2284..3836a0251b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -124,23 +124,9 @@ canned reports and writing custom SQL reports.

[% IF ( saved1 ) %] [% IF ( savedreports ) %]

Saved Reports

- -
 page(s) : - - - - - - , entries/page: - - -
+
+[% INCLUDE 'table-pager.inc' perpage='20' %] +
Date
-- 2.39.5