# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
-use strict;
-use warnings;
+use Modern::Perl;
use C4::Auth;
use CGI qw ( -utf8 );
use C4::Context;
=cut
-my $input = new CGI;
+my $input = CGI->new;
my $templatename = "reports/serials_stats.tt";
my $do_it = $input->param("do_it");
my $bookseller = $input->param("bookseller");
= get_template_and_user({template_name => $templatename,
query => $input,
type => "intranet",
- authnotrequired => 0,
flagsrequired => {reports => '*'},
debug => 1,
});
my $sth = $dbh->prepare("SELECT aqbooksellerid, aqbooksellers.name
FROM subscription
LEFT JOIN aqbooksellers ON (subscription.aqbooksellerid=aqbooksellers.id )
- GROUP BY aqbooksellerid");
+ ORDER BY aqbooksellers.name ASC
+ ");
$sth->execute();
while(my $row = $sth->fetchrow_hashref){