From 78bffaa72426fab5aa7f1dae7a44beff25ac87c7 Mon Sep 17 00:00:00 2001
From: Benjamin Renard <benjamin.renard@akka.eu>
Date: Wed, 1 Mar 2023 07:46:20 +0000
Subject: [PATCH] Add VESPA acknowledgement

---
 help/vespaHelp           |  7 +++++++
 js/app/views/EpnTapUI.js | 19 ++++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 help/vespaHelp

diff --git a/help/vespaHelp b/help/vespaHelp
new file mode 100644
index 0000000..adf67b8
--- /dev/null
+++ b/help/vespaHelp
@@ -0,0 +1,7 @@
+<h2>VESPA</h2><br/>
+
+VESPA (Virtual European Solar and Planetary Access, <a href="http://www.europlanet-vespa.eu/">http://www.europlanet-vespa.eu/</a>) aims at building a Virtual Observatory for Planetary Science, connecting all sorts of data in the field, allowing for rapid data search and providing modern tools to retrieve, cross-correlate, and display data and results of scientific analyses.
+<br/>
+<br/>
+VESPA is an activity initially developed by the Europlanet 2020 Research Infrastructure project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 654208, and extended for the Europlanet 2024 Research Infrastructure project funded by the European Union's Horizon 2020 research and innovation programme under grant agreement No 871149.
+<br/>
diff --git a/js/app/views/EpnTapUI.js b/js/app/views/EpnTapUI.js
index 8196858..e7e8487 100644
--- a/js/app/views/EpnTapUI.js
+++ b/js/app/views/EpnTapUI.js
@@ -416,7 +416,24 @@ Ext.define('amdaUI.EpnTapUI', {
   init: function (config) {
     const myConf = {
       id: 'epntapTab',
-      title: 'EPN-TAP',
+      tabConfig: {
+        title: 'EPN-TAP&nbsp;<img amda_clicktip="vespaHelp" src="js/resources/images/16x16/info_mini.png"',
+        listeners: {
+          click: {
+            element: 'el',
+            fn: function (e, t) {
+              var me = t,
+                text = me.getAttribute('amda_clicktip');
+              if (text) {
+                e.preventDefault();
+                AmdaAction.getInfo({ name: text }, function (res, e) {
+                  if (res.success) myDesktopApp.infoMsg(res.result);
+                });
+              }
+            }
+          }
+        }
+      },
       items: [{
         xtype: 'container',
         layout: {type: 'vbox', pack: 'start', align: 'stretch'},
--
libgit2 0.21.2