Browse Source

change name parameters

Alessia 2 years ago
parent
commit
d04b9a986d
3 changed files with 4 additions and 4 deletions
  1. 2 2
      flask_be/engine/handle_request.py
  2. 1 1
      site2/index.html
  3. 1 1
      site2/js/ricerca.js

+ 2 - 2
flask_be/engine/handle_request.py

@@ -36,9 +36,9 @@ def handleGetContext(queryList, listResults, cooccorrenze, dataConfig):
 def tempDecode(stringa):
     if stringa=='forma':
         return 0
-    elif stringa=='lemma':
+    elif stringa=='soloLemmatizzate':
         return 1
-    elif stringa=='formaLemma' or stringa=='lemmaForma':
+    elif stringa=='lemma':
         return 2
     else:
         return None

+ 1 - 1
site2/index.html

@@ -93,7 +93,7 @@
                      <div id="inner_lemmatizzato" class="form-check" style="display:none;">
                         <input class="showLem form-check-input lemmatizzata" value="lemmatizzata" type="checkbox" name="lemmatizzata" disabled="true">
                         <label class="form-check-label" for="showLem">
-                        Cerca anche non lemmatizzati
+                        Cerca solo lemmatizzate
                         </label>
                      </div>
                   </div>

+ 1 - 1
site2/js/ricerca.js

@@ -344,7 +344,7 @@ function createNewCC(occ) {
 
   var label_ricerca_lemmatizzata = document.createElement("label");
   label_ricerca_lemmatizzata.className = "form-check-label";
-  label_ricerca_lemmatizzata.innerHTML = "Cerca anche non lemmatizzati";
+  label_ricerca_lemmatizzata.innerHTML = "Cerca solo lemmatizzate";
 
   var col_form4 = document.createElement("div");
   col_form4.className = "col-1";