X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=reports%2Fcatalogue_out.pl;h=8a22a18f7a3c788350de103c933e1cf3a15937a1;hb=068e5be6395088793aeab66d67c36c2b9da2c5d9;hp=ec6a6965f926f2f8d40a9cf4e386a7680770af2a;hpb=4747ea7462c04770484386538b1594c1760bc75b;p=koha_fer diff --git a/reports/catalogue_out.pl b/reports/catalogue_out.pl index ec6a6965f9..8a22a18f7a 100755 --- a/reports/catalogue_out.pl +++ b/reports/catalogue_out.pl @@ -13,9 +13,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; use warnings; @@ -45,7 +45,6 @@ my $column = $input->param("Criteria"); my @filters = $input->param("Filter"); my $output = $input->param("output"); my $basename = $input->param("basename") || 'catalogue_out'; -my $mime = $input->param("MIME"); my ($template, $borrowernumber, $cookie) = get_template_and_user({ template_name => "reports/catalogue_out.tmpl", query => $input, @@ -97,14 +96,14 @@ if ($do_it) { } print $sep.@$results[0]->{total}; } - exit(1); # in either case, exit after do_it + exit; # in either case, exit after do_it } # Displaying choices (i.e., not do_it) my @values; my %select; -my @mime = ( map { +{type =>$_} } (split /[;:]/,C4::Context->preference("MIME")) ); +my @mime = ( map { +{type =>$_} } (split /[;:]/, 'CSV') ); # FIXME translation my $itemtypes = GetItemTypes; my @itemtypeloop; foreach (sort {$itemtypes->{$a}->{description} cmp $itemtypes->{$b}->{description}} keys %$itemtypes) {