@@ -, +, @@ - Test the appearance and functionality of the "Rows per page" button in various situations: - A report that returns more than 10 results - A report that returns fewer than 10 results - A report that returns no results - Test that the batch operations button menu appears correctly when there are biblionumbers, itemnumbers, or cardnumbers in the results. - When there are no results, or fewer than 10 results with no batch operations possible the toolbar shouldn't appear at all. --- .../modules/reports/guided_reports_start.tt | 164 ++++++++++-------- 1 file changed, 96 insertions(+), 68 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1002,81 +1002,103 @@ [%- END %] [%- END -%] [% END %] - [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] -

-

- - +
+ [% END # /IF ( unlimited_total > limit ) %] + + [% END # /IF batch operations || ( unlimited_total > limit ) %] - [% FOREACH p IN sql_params %] - - [% END %] - [% FOREACH n IN param_names %] - - [% END %] +
+ [% pagination_bar | $raw %] +
- - - + [% END # UNLESS ( errors ) %] + [% END # IF ( execute ) %] -
[% pagination_bar | $raw %]
[% UNLESS ( errors ) %] @@ -2023,6 +2045,12 @@ var reportid = $(this).data("reportid"); previewSql( reportid ); }); + $(".limitselect").on("click", function(){ + var limit = $(this).data("limit"); + $("#limit").val( limit ); + $("#limitselect").submit(); + }); + }); function tabsInit( ui, rtable ){ --