From 10034e539af3e085aa101a6cb77ed9d5562de95f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robin=20Mouni=C3=A9?= <robin.mounie@gmail.com>
Date: Wed, 15 Jun 2022 10:57:29 +0200
Subject: [PATCH] Version et ReadMe UPDATE

---
 README.md                                     | 54 ++++++++++++++++++-
 notemyprogress/gamification.php               |  2 +-
 .../templates/student_gamification.mustache   |  3 --
 notemyprogress/version.php                    |  4 +-
 4 files changed, 56 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 529efc4..2bc222d 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,55 @@
 # LASER - NoteMyProgress Plug-in
 
-LASER(https://www.irit.fr/lase) is a research project funded by the French National Research Agency (ANR) which main objective is to investigate how to better understand and support students’ self-regulated learning (SRL) strategies in BL.
+LASER(https://www.irit.fr/laser) is a research project funded by the French National Research Agency (ANR) which main objective is to investigate how to better understand and support students’ self-regulated learning (SRL) strategies in BL.
+
+The plug-in has been developed under this project and also thanks to the funding of the European Projects LALA (http://www.lala.org) and PROF-XXI (http://www.profxxi.org).
+
+The program program has been developed within the IRIT Laboratory (Institut de Recherche en Informatique de Toulouse - FRANCE) in collaboration with the Universidad de Cuenca (ECUADOR) and the Pontificia Universidad Católica de Chile. 
+
+## License ##
+
+------------------------------------------------------------
+SOFTWARE EVALUATION LICENSE
+IRIT computer science research laboratory, Toulouse, France.
+------------------------------------------------------------
+
+Definitions
+SOFTWARE:  The NoteMyProject (NMP) SOFTWARE, version 4.0, in SOURCE CODE form, conceived by Mar Pérez-Sanagustín <mar.perez-sanagustin@irit.fr>, Ronald Pérez-Álvarez <rperezalvarez@gmail.com>, Jorge Maldonado Mahauad <jorge.maldonado@ucuenca.edu.ec>, Esteban Villalobos <esteban.villalobos@irit.fr> and written by  Eric Bart <bart.eric@hotmail.com>, Alexis Duval <alexis.duval2002@gmail.com> , Robin Mounie <robin.mounie@gmail.com> at the IRIT computer science research laboratory.
+
+LICENSOR: L’UNIVERSITE TOULOUSE III - PAUL SABATIER, a public scientific, cultural and professional establishment, having SIRET No. 193 113 842 00010, APE code 8542 Z, having its registered office at 118, route de Narbonne, 31062 Toulouse Cedex 9, France, acting in its own name and on its own behalf, and on behalf of l'Institut de Recherche en Informatique de Toulouse (IRIT), UMR N°5055.
+
+1. INTENT/PURPOSE 
+This agreement determines the conditions in which the LICENSOR, who has the rights to the SOFTWARE, grants to the LICENSEE a license for research and evaluation purposes only, excluding any commercial use.
+
+2. LICENSEE 
+Any person or organization who receives the SOFTWARE with a copy of this license. 
+
+3. RIGHTS GRANTED
+The rights to use and copy the SOFTWARE, subject to the restrictions described in this agreement.
+The rights to modify and compile the SOFTWARE when it's provided in source code form, subject to the restrictions described in this agreement. 
+For the SOFTWARE provided in binary form only, LICENSEE undertakes to not decompile, disassemble, decrypt, extract the components or perform reverse engineering except to the extent expressly provided by law.
+
+5. SCOPE OF THE LICENSE 
+- NON-COMMERCIAL license for research and evaluation purposes ONLY. 
+- NO right to commercialize the SOFTWARE, or any derivative work, without separate agreement with the LICENSOR. 
+
+6. MODIFICATION OF THE SOFTWARE
+License permits LICENSEE to modify the SOFTWARE provided in source code form for research and evaluation purposes only. 
+
+7. REDISTRIBUTION
+- License permits LICENSEE to redistribute verbatim copies of the SOFTWARE, accompanied with a copy of this license. 
+- License DOES NOT permit LICENSEE to redistribute modified versions of the SOFTWARE provided in source code form. 
+- License DOES NOT permit LICENSEE to commercialize the SOFTWARE or any derivative work of the SOFTWARE. 
+
+8. FEE/ROYALTY 
+- LICENSEE pays no royalty for this license. 
+- LICENSEE and any third parties must enter a new agreement for any use beyond scope of license. Please contact the IRIT technology transfer office (email numerique@toulouse-tech-transfer.com) for further information. 
+
+9. NO WARRANTY 
+The SOFTWARE is provided "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the program is with the LICENSEE. 
+
+10. NO LIABILITY
+In no event unless required by applicable law or agreed to in writing will any copyright owner be liable to LICENSEE for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by LICENSEE or third parties or a failure of the program to operate with other programs), even if such holder has been advised of the possibility of such damages. 
+
+
+
diff --git a/notemyprogress/gamification.php b/notemyprogress/gamification.php
index 00afb3d..5b2bd79 100644
--- a/notemyprogress/gamification.php
+++ b/notemyprogress/gamification.php
@@ -119,7 +119,7 @@ $content = [
     'indicators' => $reports->get_general_indicators(),
     'profile_render' => $reports->render_has(),
     'timezone' => $reports->timezone,
-    'chart_data' => $configgamification->get_spread_chart($COURSE->id),
+    'chart_data' =>$configgamification->get_spread_chart($COURSE->id),
 ];
 
 $templatecontext = [
diff --git a/notemyprogress/templates/student_gamification.mustache b/notemyprogress/templates/student_gamification.mustache
index e588154..7beab5a 100644
--- a/notemyprogress/templates/student_gamification.mustache
+++ b/notemyprogress/templates/student_gamification.mustache
@@ -130,9 +130,6 @@
                                         <sup>xp</sup>
                                     </template>
                                 </v-data-table>
-
-
-
                             </v-col>
                         </v-row>
                         <v-row v-else>
diff --git a/notemyprogress/version.php b/notemyprogress/version.php
index 444f54e..83cbf09 100644
--- a/notemyprogress/version.php
+++ b/notemyprogress/version.php
@@ -25,7 +25,7 @@
 defined('MOODLE_INTERNAL') || die();
 
 $plugin->component = 'local_notemyprogress';
-$plugin->release = '3.0';
-$plugin->version = 2021072902;
+$plugin->release = '4.0';
+$plugin->version =  2022061500;
 $plugin->requires = 2015111601;
 $plugin->maturity = MATURITY_STABLE;
-- 
GitLab