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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt (-1 / +5 lines)
Lines 102-108 $(document).ready(function(){ Link Here
102
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
102
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
103
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
103
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
104
            <label class="inline" for="MIME">Into an application </label>
104
            <label class="inline" for="MIME">Into an application </label>
105
            [% CGIextChoice %]
105
            <select name="MIME" id="MIME" size="1">
106
            [% FOREACH value IN CGIextChoice %]
107
                <option value="[% value %]">[% value %]</option>
108
            [% END %]
109
            </select>
106
            <select name="sep" id="sep" size="1">
110
            <select name="sep" id="sep" size="1">
107
            [% FOREACH value IN CGIsepChoice.values.sort() %]
111
            [% FOREACH value IN CGIsepChoice.values.sort() %]
108
              [% IF ( value == CGIsepChoice.default ) %]
112
              [% IF ( value == CGIsepChoice.default ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-1 / +5 lines)
Lines 261-267 Link Here
261
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
261
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
262
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
262
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
263
            <label class="inline" for="MIME">Into an application</label>
263
            <label class="inline" for="MIME">Into an application</label>
264
            [% CGIextChoice %]
264
            <select name="MIME" id="MIME" size="1">
265
            [% FOREACH value IN CGIextChoice %]
266
                <option value="[% value %]">[% value %]</option>
267
            [% END %]
268
            </select>
265
            <select name="sep" id="sep" size="1">
269
            <select name="sep" id="sep" size="1">
266
            [% FOREACH value IN CGIsepChoice.values.sort() %]
270
            [% FOREACH value IN CGIsepChoice.values.sort() %]
267
              [% IF ( value == CGIsepChoice.default ) %]
271
              [% IF ( value == CGIsepChoice.default ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt (-1 / +5 lines)
Lines 172-178 Link Here
172
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
172
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
173
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
173
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
174
            <label class="inline" for="MIME">Into an application </label>
174
            <label class="inline" for="MIME">Into an application </label>
175
            [% CGIextChoice %]
175
            <select name="MIME" id="MIME" size="1">
176
            [% FOREACH value IN CGIextChoice %]
177
                <option value="[% value %]">[% value %]</option>
178
            [% END %]
179
            </select>
176
            <select name="sep" id="sep" size="1">
180
            <select name="sep" id="sep" size="1">
177
            [% FOREACH value IN CGIsepChoice.values.sort() %]
181
            [% FOREACH value IN CGIsepChoice.values.sort() %]
178
              [% IF ( value == CGIsepChoice.default ) %]
182
              [% IF ( value == CGIsepChoice.default ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-1 / +5 lines)
Lines 262-268 Link Here
262
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
262
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
263
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
263
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
264
            <label class="inline" for="MIME">Into an application</label>
264
            <label class="inline" for="MIME">Into an application</label>
265
            [% CGIextChoice %]
265
            <select name="MIME" id="MIME" size="1">
266
            [% FOREACH value IN CGIextChoice %]
267
                <option value="[% value %]">[% value %]</option>
268
            [% END %]
269
            </select>
266
            <select name="sep" id="sep" size="1">
270
            <select name="sep" id="sep" size="1">
267
            [% FOREACH value IN CGIsepChoice.values.sort() %]
271
            [% FOREACH value IN CGIsepChoice.values.sort() %]
268
              [% IF ( value == CGIsepChoice.default ) %]
272
              [% IF ( value == CGIsepChoice.default ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-1 / +5 lines)
Lines 340-346 Link Here
340
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
340
            <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
341
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
341
            <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
342
            <label class="inline" for="MIME">Into an application</label>
342
            <label class="inline" for="MIME">Into an application</label>
343
            [% CGIextChoice %]
343
            <select name="MIME" id="MIME" size="1">
344
            [% FOREACH value IN CGIextChoice %]
345
                <option value="[% value %]">[% value %]</option>
346
            [% END %]
347
            </select>
344
            <select name="sep" id="sep" size="1">
348
            <select name="sep" id="sep" size="1">
345
            [% FOREACH value IN CGIsepChoice.values.sort() %]
349
            [% FOREACH value IN CGIsepChoice.values.sort() %]
346
              [% IF ( value == CGIsepChoice.default ) %]
350
              [% IF ( value == CGIsepChoice.default ) %]
(-)a/reports/borrowers_out.pl (-7 / +1 lines)
Lines 112-124 if ($do_it) { Link Here
112
    my %select;
112
    my %select;
113
    my $req;
113
    my $req;
114
    
114
    
115
    my $CGIextChoice=CGI::scrolling_list(
115
    my $CGIextChoice = ( 'CSV' ); # FIXME translation
116
                -name     => 'MIME',
117
                -id       => 'MIME',
118
                -values   => ['CSV'], # FIXME translation
119
                -size     => 1,
120
                -multiple => 0 );
121
    
122
	my $CGIsepChoice = GetDelimiterChoices;
116
	my $CGIsepChoice = GetDelimiterChoices;
123
    
117
    
124
    my ($codes,$labels) = GetborCatFromCatType(undef,undef);
118
    my ($codes,$labels) = GetborCatFromCatType(undef,undef);
(-)a/reports/borrowers_stats.pl (-6 / +1 lines)
Lines 136-147 if ($do_it) { Link Here
136
	$req->execute;
136
	$req->execute;
137
	$template->param( SORT2_LOOP => $req->fetchall_arrayref({}));
137
	$template->param( SORT2_LOOP => $req->fetchall_arrayref({}));
138
	
138
	
139
	my $CGIextChoice=CGI::scrolling_list(
139
    my $CGIextChoice = ( 'CSV' ); # FIXME translation
140
				-name => 'MIME',
141
				-id => 'MIME',
142
				-values   => ['CSV'], # FIXME translation
143
				-size     => 1,
144
				-multiple => 0 );
145
	my $CGIsepChoice=GetDelimiterChoices;
140
	my $CGIsepChoice=GetDelimiterChoices;
146
	$template->param(
141
	$template->param(
147
		CGIextChoice => $CGIextChoice,
142
		CGIextChoice => $CGIextChoice,
(-)a/reports/cat_issues_top.pl (-7 / +1 lines)
Lines 117-129 if ($do_it) { Link Here
117
    my %select;
117
    my %select;
118
    my $req;
118
    my $req;
119
    
119
    
120
    my $CGIextChoice=CGI::scrolling_list(
120
    my $CGIextChoice = ( 'CSV' ); # FIXME translation
121
                -name     => 'MIME',
122
                -id       => 'MIME',
123
                -values   => ['CSV'], # FIXME translation
124
                -size     => 1,
125
                -multiple => 0 );
126
    
127
    my $CGIsepChoice=GetDelimiterChoices;
121
    my $CGIsepChoice=GetDelimiterChoices;
128
122
129
    #doctype
123
    #doctype
(-)a/reports/catalogue_stats.pl (-5 / +3 lines)
Lines 130-140 if ($do_it) { Link Here
130
#		$count++ if (($value) and (! $haslccn));
130
#		$count++ if (($value) and (! $haslccn));
131
#		push @select, $value;
131
#		push @select, $value;
132
#	}
132
#	}
133
# 	my $CGIlccn=CGI::scrolling_list( -name     => 'Filter',
133
#   my $CGIlccn = {
134
# 				-id => 'Filter',
134
#       values   => \@select,
135
# 				-values   => \@select,
135
#   };
136
# 				-size     => 1,
137
# 				-multiple => 0 );
138
136
139
# No need to test for data here.  If you don't have itemcallnumbers, you probably know it.
137
# No need to test for data here.  If you don't have itemcallnumbers, you probably know it.
140
# FIXME: Hardcoding to 5 chars on itemcallnum. 
138
# FIXME: Hardcoding to 5 chars on itemcallnum. 
(-)a/reports/issues_stats.pl (-7 / +1 lines)
Lines 146-158 foreach (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) { Link Here
146
	push @ccodes, { code => $_, description => $ccodes->{$_} };
146
	push @ccodes, { code => $_, description => $ccodes->{$_} };
147
}
147
}
148
148
149
my $CGIextChoice=CGI::scrolling_list(
149
my $CGIextChoice = ( 'CSV' ); # FIXME translation
150
	-name     => 'MIME',
151
	-id       => 'MIME',
152
	-values   => ['CSV'], # FIXME translation
153
	-size     => 1,
154
	-multiple => 0 );
155
    
156
my $CGIsepChoice=GetDelimiterChoices;
150
my $CGIsepChoice=GetDelimiterChoices;
157
 
151
 
158
$template->param(
152
$template->param(
(-)a/reports/reserves_stats.pl (-10 / +1 lines)
Lines 155-169 foreach (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) { Link Here
155
}
155
}
156
156
157
# various
157
# various
158
my @mime = (C4::Context->preference("MIME"));
158
my $CGIextChoice = ( 'CSV' ); # FIXME translation
159
160
my $CGIextChoice=CGI::scrolling_list(
161
	-name     => 'MIME',
162
	-id       => 'MIME',
163
	-values   => \@mime,
164
	-size     => 1,
165
	-multiple => 0 );
166
    
167
my $CGIsepChoice=GetDelimiterChoices;
159
my $CGIsepChoice=GetDelimiterChoices;
168
 
160
 
169
$template->param(
161
$template->param(
170
- 

Return to bug 12707