Bugzilla – Attachment 38419 Details for
Bug 11603
Gather print notices: add csv and ods export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11603: Change the output filenames
PASSED-QA-Bug-11603-Change-the-output-filenames.patch (text/plain), 1.61 KB, created by
Katrin Fischer
on 2015-04-23 12:29:38 UTC
(
hide
)
Description:
[PASSED QA] Bug 11603: Change the output filenames
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-04-23 12:29:38 UTC
Size:
1.61 KB
patch
obsolete
>From 36396724f779edfbe54ae2aa5b3d7653c7051e68 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 23 Apr 2015 13:25:33 +0200 >Subject: [PATCH] [PASSED QA] Bug 11603: Change the output filenames > >The output filename is notices_all_<date>.[html|csv|ods] if no >letter_code parameter is given. >If 1 is given: notices_<letter_code>_<date>.[html|csv|ods] >If 1+ are given: >noties_<letter_code1>_..._<letter_codeN>_<date>.[html|csv|ods] > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > misc/cronjobs/gather_print_notices.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/misc/cronjobs/gather_print_notices.pl b/misc/cronjobs/gather_print_notices.pl >index cb2be9d..0bb185f 100755 >--- a/misc/cronjobs/gather_print_notices.pl >+++ b/misc/cronjobs/gather_print_notices.pl >@@ -141,10 +141,10 @@ sub print_notices { > } > > while ( my ( $branchcode, $branch_messages ) = each %$messages_by_branch ) { >- my $letter_code = @letter_codes == 1 ? $letter_codes[0] : 'hold'; >+ my $letter_codes = @letter_codes == 0 ? 'all' : join '_', @letter_codes; > my $filename = $split >- ? "notices_$letter_code-" . $today->output('iso') . "-$branchcode.$format" >- : "notices_$letter_code-" . $today->output('iso') . ".$format"; >+ ? "notices_$letter_codes-" . $today->output('iso') . "-$branchcode.$format" >+ : "notices_$letter_codes-" . $today->output('iso') . ".$format"; > my $filepath = File::Spec->catdir( $output_directory, $filename ); > if ( $format eq 'html' ) { > generate_html({ >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11603
:
25021
|
25022
|
25023
|
25024
|
25640
|
25642
|
30980
|
30981
|
30982
|
30983
|
37799
|
37812
|
37813
|
37814
|
37815
|
37816
|
37817
|
37829
|
37830
|
37831
|
37832
|
37833
|
37834
|
37837
|
38381
|
38385
|
38386
|
38387
|
38388
|
38389
|
38390
|
38391
|
38392
|
38403
|
38411
|
38412
|
38413
|
38414
|
38415
|
38416
|
38417
|
38418
|
38419
|
39033
|
39034
|
39035
|
39036
|
39037
|
39038
|
39039
|
39040
|
39041