LP#1734737: Display originating template UI
authorMike Rylander <mrylander@gmail.com>
Mon, 27 Nov 2017 18:06:56 +0000 (13:06 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 30 Nov 2017 15:02:10 +0000 (10:02 -0500)
Until the (planned for 3.1) ability to clone XUL-created reports in the web
staff client is completed, it would be useful to at least display to the user
the origin UI in which a template was created. This will allow staff to, for
the immediate term, decide which UI they should use to deal with a particular
template, re cloning etc.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/opac/common/js/fm_table_conf.js

index 948fb65..8879efe 100644 (file)
@@ -125,6 +125,7 @@ var FM_TABLE_DISPLAY = {
                        'name',
                        'description',
             'docs',
+            'ui',
                        'create_time',
                        'owner',
                ],
@@ -143,6 +144,13 @@ var FM_TABLE_DISPLAY = {
                     return elem('a', args, 'External Documentation')
                 }
                 return text('');
+            },
+            ui : function (t) {
+                var d = JSON2js(t.data());
+                if (d.version >= 5) {
+                    return text('WebStaff');
+                }
+                return text('XUL');
             }
         },
                sortdata : [ 'name', 1 ]