From cadd74b578b6472acffcaa081790a15d64e4b59a 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 --- 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 82865fafd7..f8373bf00b 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.30.2