View | Details | Raw Unified | Return to bug 11009
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt (-2 / +2 lines)
Lines 32-38 You have never borrowed anything from this library. Link Here
32
<div id="opac-user-readingrec" class="statictabs">
32
<div id="opac-user-readingrec" class="statictabs">
33
33
34
<div class="resultscontrol resort"> <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
34
<div class="resultscontrol resort"> <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
35
[% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
35
[% IF ( limit == 'full' ) %]<input type="hidden" name="limit" value="full" />[% END %]
36
<select name="order" id="order">
36
<select name="order" id="order">
37
37
38
[% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
38
[% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
Lines 44-50 You have never borrowed anything from this library. Link Here
44
<ul>
44
<ul>
45
45
46
[% IF ( showfulllink ) %]
46
[% IF ( showfulllink ) %]
47
[% IF ( limit ) %]
47
[% UNLESS ( limit == 'full' ) %]
48
<li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a></li><li class="active"><a href="#readingrec">Showing last 50 items</a></li>
48
<li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a></li><li class="active"><a href="#readingrec">Showing last 50 items</a></li>
49
[% ELSE %]
49
[% ELSE %]
50
<li class="active"><a href="/cgi-bin/koha/opac-readingrecord.pl#readingrec">Showing all items</a></li><li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items only</a></li>
50
<li class="active"><a href="/cgi-bin/koha/opac-readingrecord.pl#readingrec">Showing all items</a></li><li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items only</a></li>
(-)a/opac/opac-readingrecord.pl (-3 / +2 lines)
Lines 66-74 else { Link Here
66
66
67
67
68
my $limit = $query->param('limit');
68
my $limit = $query->param('limit');
69
$limit = ( $limit eq 'full' ) ? 0 : 50;
69
my $limitsql = ( $limit eq 'full' ) ? 500 : 50; # hardcoded limit to avoid server heavy load
70
70
71
my $issues = GetAllIssues( $borrowernumber, $order, $limit );
71
my $issues = GetAllIssues( $borrowernumber, $order, $limitsql );
72
72
73
my $itype_attribute =
73
my $itype_attribute =
74
  ( C4::Context->preference('item-level_itypes') ) ? 'itype' : 'itemtype';
74
  ( C4::Context->preference('item-level_itypes') ) ? 'itype' : 'itemtype';
75
- 

Return to bug 11009