@@ -, +, @@ --- Koha/Template/Plugin/Koha.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/Koha/Template/Plugin/Koha.pm +++ a/Koha/Template/Plugin/Koha.pm @@ -55,6 +55,17 @@ sub Preference { return C4::Context->preference( $pref ); } +=head3 CSVDelimiter + +The delimiter option 'tabs' is stored in the DB as 'tabulation' to avoid issues +storing special characters in the DB. This helper function translates the value +to the correct character when used in templates. + +You can, optionally, pass a value parameter to this routine in the case of delimiter +being fetched in the scripts and still needing to be translated + +=cut + sub CSVDelimiter { my ( $self, $val ) = @_; my $sep = $val || C4::Context->preference('CSVDelimiter') || ';'; --