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

(-)a/C4/Output.pm (-16 / +1 lines)
Lines 53-59 BEGIN { Link Here
53
        setlanguagecookie getlanguagecookie pagination_bar parametrized_url
53
        setlanguagecookie getlanguagecookie pagination_bar parametrized_url
54
    );
54
    );
55
    push @EXPORT, qw(
55
    push @EXPORT, qw(
56
        &output_html_with_http_headers &output_ajax_with_http_headers &output_with_http_headers FormatData
56
        &output_html_with_http_headers &output_ajax_with_http_headers &output_with_http_headers
57
    );
57
    );
58
58
59
}
59
}
Lines 67-86 C4::Output - Functions for managing output, is slowly being deprecated Link Here
67
=over 2
67
=over 2
68
=cut
68
=cut
69
69
70
=item FormatData
71
72
FormatData($data_hashref)
73
C<$data_hashref> is a ref to data to format
74
75
Format dates of data those dates are assumed to contain date in their noun
76
Could be used in order to centralize all the formatting for HTML output
77
=cut
78
79
sub FormatData{
80
		my $data_hashref=shift;
81
        $$data_hashref{$_} = format_date( $$data_hashref{$_} ) for grep{/date/} keys (%$data_hashref);
82
}
83
84
=item pagination_bar
70
=item pagination_bar
85
71
86
   pagination_bar($base_url, $nb_pages, $current_page, $startfrom_name)
72
   pagination_bar($base_url, $nb_pages, $current_page, $startfrom_name)
87
- 

Return to bug 12845