Testing reports trim function user/csharp/trim_reports_data
authorChris Sharp <csharp@georgialibraries.org>
Mon, 9 Jul 2018 17:01:09 +0000 (13:01 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 9 Jul 2018 17:01:09 +0000 (13:01 -0400)
Open-ILS/src/templates/staff/reporter/share/report_strings.tt2
Open-ILS/web/js/ui/default/staff/reporter/services/template.js

index a6d50cb..0272c82 100644 (file)
@@ -151,6 +151,7 @@ s.TRANSFORMS_COUNT_DISTINCT = '[% l( "Count Distinct") %]';
 s.TRANSFORMS_MIN = '[% l( "Min") %]';
 s.TRANSFORMS_MAX = '[% l( "Max") %]';
 s.TRANSFORMS_SUBSTRING = '[% l( "Substring") %]';
+s.TRANSFORMS_TRIM = '[% l( "Trim leading spaces") %]';
 s.TRANSFORMS_LOWER = '[% l( "Lower case") %]';
 s.TRANSFORMS_UPPER = '[% l( "Upper case") %]';
 s.TRANSFORMS_FIRST5 = '[% l( "First 5 characters (for US ZIP code)") %]';
index 1c3b4e0..304def3 100644 (file)
@@ -171,6 +171,11 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
                 label : egCore.strings.TRANSFORMS_SUBSTRING
             },
         
+            trim : {
+                datatype : [ OILS_RPT_DTYPE_STRING ],
+                label : egCore.strings.TRANSFORMS_TRIM
+            },
+        
             lower : {
                 datatype : [ OILS_RPT_DTYPE_STRING ],
                 label : egCore.strings.TRANSFORMS_LOWER