From: Mike Rylander Date: Mon, 27 Nov 2017 18:06:56 +0000 (-0500) Subject: LP#1734737: Display originating template UI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a0a92e094115ab569a5a5afb469b104f7e2bd865;p=Evergreen.git LP#1734737: Display originating template UI 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 Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/opac/common/js/fm_table_conf.js b/Open-ILS/web/opac/common/js/fm_table_conf.js index 948fb651e9..8879efe4be 100644 --- a/Open-ILS/web/opac/common/js/fm_table_conf.js +++ b/Open-ILS/web/opac/common/js/fm_table_conf.js @@ -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 ]