From 4d4dc893a20004ca65facc09b2bddcd19aa4fe76 Mon Sep 17 00:00:00 2001 From: nicola Date: Tue, 19 Nov 2024 17:58:36 +0100 Subject: [PATCH] simple search fixed --- index_4.7.html | 8 ++++---- js/browseMgr.js | 8 ++++++-- js/script_4.7.js | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/index_4.7.html b/index_4.7.html index 1e1e542..e6de5ec 100644 --- a/index_4.7.html +++ b/index_4.7.html @@ -620,7 +620,7 @@
-
- --> +
diff --git a/js/browseMgr.js b/js/browseMgr.js index fdf9db4..fa33c59 100644 --- a/js/browseMgr.js +++ b/js/browseMgr.js @@ -1449,10 +1449,14 @@ $(document).ready(function() { esprlogica = [] jsonQuery = getJsonQuery() - if (jsonQuery['QueryAvanzata'] == 0) + if (jsonQuery['QueryAvanzata'] == 0){ // ricerca semplice unitaRicerca = 'forma' - else + jsonQuery['Clausola0']['queryText'] = $("#queryText")[0].value; // work around to fix simple query + jsonQuery['Clausola0']['Attiva'] = "1"; + } + else{ unitaRicerca = jsonQuery['unitaRicerca'] + } console.log("got json query, unita ricerca: " + unitaRicerca) if (jsonQuery['QueryAvanzata'] == 0 && jsonQuery['Clausola0']['queryText'] == '') { alert('Digitare una stringa da cercare') diff --git a/js/script_4.7.js b/js/script_4.7.js index 6b7ae24..c1451b2 100644 --- a/js/script_4.7.js +++ b/js/script_4.7.js @@ -316,7 +316,7 @@ $(document).ready(function() { // Evento: modifica di un campo clausole $("form #lemma_forma,#queryText,#opzioni_testo").on('change', function() { if ($(this)[0].id == "queryText"){ - var orgSelection = $('#lemma_forma option:selected')[0].value + var orgSelection = "forma" // $('#lemma_forma option:selected')[0].value var qText = $(this)[0].value; if (qText !== null && qText !== '') {qText = ' "' + qText + '"';} setLemmaForma(qText,orgSelection);