From 3e26abc9cd4fbfbc6e827e2d0656f92c1f00334d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 12 Feb 2011 20:55:09 -0500 Subject: [PATCH] Follow-up fix for Bug 5760 - Add the jquery table sorter to reading record - Removing option to show 50 items/show all from script and template - Adding parser to exclude articles in title sort (en only, see Bug 5766) - Setting default sort to 'date due descending' as it was previously Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- .../prog/en/css/staff-global.css | 2 +- .../prog/en/modules/members/readingrec.tmpl | 40 +++++++------------ members/readingrec.pl | 16 ++------ 3 files changed, 19 insertions(+), 39 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 7586185c5b..66b092c2e7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -304,7 +304,7 @@ tr.onissue td { background-color: #FFFFCC; } -tr.highlight.onissue td { +tr.odd.onissue td { background-color: #FFFFE1; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl index 682eaa9bd0..6d6506381f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl @@ -4,8 +4,16 @@ @@ -23,9 +31,7 @@

Reading Record

" />
-

Showing All Items | - &limit=50">Show Last 50 Items Only Showing Last 50 Items | - &limit=full">Show All Items

+
 page(s) : /prog/img/first.png" class="first"/> @@ -46,39 +52,23 @@ - - - + + + - + - - - - - + diff --git a/members/readingrec.pl b/members/readingrec.pl index bd6ca82309..f7631db806 100755 --- a/members/readingrec.pl +++ b/members/readingrec.pl @@ -50,21 +50,11 @@ if ($input->param('borrowernumber')) { $data = GetMember(borrowernumber => $borrowernumber); } -my $order=$input->param('order') || 'date_due desc'; -my $limit=$input->param('limit'); - -if ($limit){ - if ($limit eq 'full'){ - $limit=0; - } -} -else { - $limit=50; -} +my $order = 'date_due desc'; +my $limit = 0; my ( $issues ) = GetAllIssues($borrowernumber,$order,$limit); -my ($template, $loggedinuser, $cookie) -= get_template_and_user({template_name => "members/readingrec.tmpl", +my ($template, $loggedinuser, $cookie)= get_template_and_user({template_name => "members/readingrec.tmpl", query => $input, type => "intranet", authnotrequired => 0, -- 2.39.5
- &order=issuestimestamp&limit=">Date - - &order=title&limit=">Title - - &order=author&limit=">Author - DateTitleAuthor Call No. Barcode Number of Renewals Checked out on Checked out from Date Due - &order=returndate%20DESC&limit=">Return Date - Return Date
- "> - - - ">