3 # Copyright 2007 Liblime Ltd
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18 # Suite 330, Boston, MA 02111-1307 USA
23 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
26 # use Smart::Comments;
30 # set the version for version checking
41 C4::Reports - Module for generating reports
45 This module contains functions common to reports.
47 =head1 EXPORTED FUNCTIONS
49 =head2 GetDelimiterChoices
53 my $delims = GetDelimiterChoices;
57 This will return a list of all the available delimiters.
61 sub GetDelimiterChoices {
62 my $dbh = C4::Context->dbh;
64 my $sth = $dbh->prepare("
66 FROM systempreferences
67 WHERE variable = 'delimiter'
72 my ($choices, $default) = $sth->fetchrow;
73 my @dels = split /\|/, $choices;
75 return CGI::scrolling_list(
90 Jesse Weaver <jesse.weaver@liblime.com>