From e25ddcf88bf526944c2b0cc51b8fe0f67c34ed3a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Nov 2014 10:19:01 +0100 Subject: [PATCH] Bug 13234: Remove the order by control Now we have the sort available in the table, the "order by" dropdown list can be removed. --- .../bootstrap/en/modules/opac-readingrecord.tt | 19 ++----------------- opac/opac-readingrecord.pl | 14 +------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 6a65000..f08ecff 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -32,24 +32,14 @@ You have never borrowed anything from this library. [% ELSE %]
-
-
- [% UNLESS ( limit ) %][% END %] - - -
-
[% IF limit %]

- Showing last 50 items. Show all items + Showing last 50 items. Show all items

[% ELSE %]

- Showing all items. Show last 50 items + Showing all items. Show last 50 items

[% END %] @@ -175,11 +165,6 @@ //param(%{$borr}); my $itemtypes = GetItemTypes(); -# get the record -my $order = $query->param('order') || ''; -if ( $order eq 'title' ) { - $template->param( orderbytitle => 1 ); -} -elsif ( $order eq 'author' ) { - $template->param( orderbyauthor => 1 ); -} -else { - $order = "date_due desc"; - $template->param( orderbydate => 1 ); -} - +my $order = "date_due desc"; my $limit = $query->param('limit'); $limit = ( $limit eq 'full' ) ? 0 : 50; -- 2.1.0