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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc (-1 / +3 lines)
Lines 139-145 Link Here
139
                <ul class="dropdown-menu">
139
                <ul class="dropdown-menu">
140
                    <li><a class="dropdown-item" id="csv" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=csv&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">[% PROCESS 'delimiter_text.inc' %]</a></li>
140
                    <li><a class="dropdown-item" id="csv" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=csv&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">[% PROCESS 'delimiter_text.inc' %]</a></li>
141
                    <li><a class="dropdown-item" id="tab" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=tab&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Tab separated text</a></li>
141
                    <li><a class="dropdown-item" id="tab" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=tab&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Tab separated text</a></li>
142
                    <li><a class="dropdown-item" id="ods" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=ods&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Open Document Spreadsheet</a></li>
142
                    [% IF Koha.Preference('ReportsExportFormatODS') %]
143
                        <li><a class="dropdown-item" id="ods" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=ods&amp;id=[% id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Open Document Spreadsheet</a></li>
144
                    [% END %]
143
                    [% IF processed_notice_title %]
145
                    [% IF processed_notice_title %]
144
                    <li><a class="dropdown-item" id="template" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=template&amp;id=[% id | html %]&amp;template=[% template_id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Rendered template ([% processed_notice_title | html %])</a></li>
146
                    <li><a class="dropdown-item" id="template" href="/cgi-bin/koha/reports/guided_reports.pl?op=export&amp;format=template&amp;id=[% id | html %]&amp;template=[% template_id | html %]&amp;reportname=[% name |uri %][% PROCESS params %]">Rendered template ([% processed_notice_title | html %])</a></li>
145
                    [% END %]
147
                    [% END %]
(-)a/reports/guided_reports.pl (-2 / +1 lines)
Lines 663-669 elsif ($op eq 'export'){ Link Here
663
                    }
663
                    }
664
                }
664
                }
665
            }
665
            }
666
            elsif ( $format eq 'ods' ) {
666
            elsif ( $format eq 'ods' && C4::Context->preference('ReportsExportFormatODS') ) {
667
                $type = 'application/vnd.oasis.opendocument.spreadsheet';
667
                $type = 'application/vnd.oasis.opendocument.spreadsheet';
668
                my $ods_fh = File::Temp->new( UNLINK => 0 );
668
                my $ods_fh = File::Temp->new( UNLINK => 0 );
669
                my $ods_filepath = $ods_fh->filename;
669
                my $ods_filepath = $ods_fh->filename;
670
- 

Return to bug 23685