View | Details | Raw Unified | Return to bug 7986
Collapse All | Expand All

(-)a/circ/circulation.pl (-2 / +2 lines)
Lines 732-739 $template->param( Link Here
732
	AllowRenewalLimitOverride => C4::Context->preference("AllowRenewalLimitOverride"),
732
	AllowRenewalLimitOverride => C4::Context->preference("AllowRenewalLimitOverride"),
733
    dateformat                => C4::Context->preference("dateformat"),
733
    dateformat                => C4::Context->preference("dateformat"),
734
    DHTMLcalendar_dateformat  => C4::Dates->DHTMLcalendar(),
734
    DHTMLcalendar_dateformat  => C4::Dates->DHTMLcalendar(),
735
    dont_export_fields        => C4::Context->preference("DontExportFields"),
735
    dont_export_fields        => C4::Context->preference("ExportRemoveFields"),
736
    csv_profile_for_export    => C4::Context->preference("CsvProfileForExport"),
736
    csv_profile_for_export    => C4::Context->preference("ExportWithCsvProfile"),
737
    canned_bor_notes_loop     => $canned_notes,
737
    canned_bor_notes_loop     => $canned_notes,
738
);
738
);
739
739
(-)a/installer/data/mysql/updatedatabase.pl (-4 / +4 lines)
Lines 5687-5704 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5687
$DBversion = "3.09.00.XXX";
5687
$DBversion = "3.09.00.XXX";
5688
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5688
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5689
    $dbh->do(qq{
5689
    $dbh->do(qq{
5690
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('DontExportFields','','List of fields for non export in circulation.pl (separated by a space)','','');
5690
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ExportRemoveFields','','List of fields for non export in circulation.pl (separated by a space)','','');
5691
    });
5691
    });
5692
    print "Upgrade to $DBversion done (Add system preference DontExportFields)\n";
5692
    print "Upgrade to $DBversion done (Add system preference ExportRemoveFields)\n";
5693
    SetVersion($DBversion);
5693
    SetVersion($DBversion);
5694
}
5694
}
5695
5695
5696
$DBversion = "3.09.00.XXX";
5696
$DBversion = "3.09.00.XXX";
5697
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5697
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5698
    $dbh->do(qq{
5698
    $dbh->do(qq{
5699
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('CsvProfileForExport','','Set a profile name for CSV export','','');
5699
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ExportWithCsvProfile','','Set a profile name for CSV export','','');
5700
    });
5700
    });
5701
    print "Upgrade to $DBversion done (Adds New System preference CsvProfileForExport)\n";
5701
    print "Upgrade to $DBversion done (Adds New System preference ExportWithCsvProfile)\n";
5702
    SetVersion($DBversion)
5702
    SetVersion($DBversion)
5703
}
5703
}
5704
5704
(-)a/tools/export.pl (-3 / +2 lines)
Lines 394-400 if ( $op eq "export" ) { Link Here
394
        my @itemnumbers   = $query->param("itemnumbers");
394
        my @itemnumbers   = $query->param("itemnumbers");
395
        my $output =
395
        my $output =
396
          marc2csv( \@biblionumbers,
396
          marc2csv( \@biblionumbers,
397
            GetCsvProfileId( C4::Context->preference('CsvProfileForExport') ),
397
            GetCsvProfileId( C4::Context->preference('ExportWithCsvProfile') ),
398
            \@itemnumbers, );
398
            \@itemnumbers, );
399
        print $query->header(
399
        print $query->header(
400
            -type                        => 'application/octet-stream',
400
            -type                        => 'application/octet-stream',
Lines 468-474 else { Link Here
468
        itemtypeloop             => \@itemtypesloop,
468
        itemtypeloop             => \@itemtypesloop,
469
        DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
469
        DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
470
        authtypeloop             => \@authtypesloop,
470
        authtypeloop             => \@authtypesloop,
471
        dont_export_fields       => C4::Context->preference("DontExportFields"),
471
        dont_export_fields       => C4::Context->preference("ExportRemoveFields"),
472
    );
472
    );
473
473
474
    output_html_with_http_headers $query, $cookie, $template->output;
474
    output_html_with_http_headers $query, $cookie, $template->output;
475
- 

Return to bug 7986