From f2a3996e170c7ad7f185dfa109e9fa7f19dbfa51 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 12 May 2021 13:16:00 +0000 Subject: [PATCH] Bug 28327: (QA follow-up) Add POD Signed-off-by: Nick Clemens --- Koha/Template/Plugin/Koha.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Koha/Template/Plugin/Koha.pm b/Koha/Template/Plugin/Koha.pm index 2d34af0cc2..caa47d33bb 100644 --- a/Koha/Template/Plugin/Koha.pm +++ b/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') || ','; -- 2.20.1