[Koha-cvs] koha/export marc.pl [rel_2_2]
Joshua Ferraro
jmf at kados.org
Sat Mar 4 05:25:08 CET 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <kados at savannah.gnu.org> 06/03/04 04:25:08
Modified files:
export : marc.pl
Log message:
force browser to download rather than render the MARC file
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/export/marc.pl.diff?only_with_tag=rel_2_2&tr1=1.4.2.5&tr2=1.4.2.6&r1=text&r2=text
Patches:
Index: koha/export/marc.pl
diff -u koha/export/marc.pl:1.4.2.5 koha/export/marc.pl:1.4.2.6
--- koha/export/marc.pl:1.4.2.5 Sun Feb 5 21:59:21 2006
+++ koha/export/marc.pl Sat Mar 4 04:25:08 2006
@@ -15,7 +15,8 @@
my $dbh=C4::Context->dbh;
if ($op eq "export") {
- print $query->header('Content-Type: text/marc');
+ print $query->header( -type => 'application/octet-stream',
+ -attachment=>'koha.mrc');
my $start_bib = $query->param("start_bib");
my $end_bib = $query->param("end_bib");
my $format = $query->param("format");
More information about the Koha-cvs
mailing list