mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-30 18:22:45 +00:00 
			
		
		
		
	Query Builder fix and placeholder change
This commit is contained in:
		| @@ -485,7 +485,7 @@ class ConcordanceQueryBuilder { | ||||
|     let tokenQueryContent = ''; //for ButtonFactory(prettyQueryText) | ||||
|     let tokenQueryText = ''; //for ButtonFactory(queryText) | ||||
|     this.elements.cancelBool = false; | ||||
|     let tokenIsEmpty = true; | ||||
|     let tokenIsEmpty = false; | ||||
|  | ||||
|     if (this.elements.ignoreCase.checked) { | ||||
|       c = ' %c'; | ||||
| @@ -497,8 +497,8 @@ class ConcordanceQueryBuilder { | ||||
|     for (let element of this.elements.tokenQuery.childNodes) { | ||||
|       tokenQueryContent += ' ' + element.firstChild.data + ' '; | ||||
|       tokenQueryText += decodeURI(element.dataset.tokentext); | ||||
|       if (element.innerTe8888xt.indexOf('empty token') !== -1) { | ||||
|         emptyTokenCheck = false; | ||||
|       if (element.innerText.indexOf('empty token') !== -1) { | ||||
|         tokenIsEmpty = true; | ||||
|       } | ||||
|     } | ||||
|  | ||||
| @@ -561,6 +561,7 @@ class ConcordanceQueryBuilder { | ||||
|       if (tokenIsEmpty === false) { | ||||
|         tokenQueryText = '[' + tokenQueryText + ']'; | ||||
|         } | ||||
|       console.log(tokenQueryText); | ||||
|       this.queryChipFactory('token', tokenQueryContent, tokenQueryText); | ||||
|       this.hideEverything(); | ||||
|       this.elements.positionalAttrArea.classList.add('hide'); | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
|           <div class="row"> | ||||
|             <div class="input-field col s12 m9"> | ||||
|               <i class="material-icons prefix">search</i> | ||||
|               <input class="validate corpus-analysis-action" id="concordance-extension-form-query" name="query" type="text" required pattern=".*\S+.*" placeholder="<ent_type="PERSON"> []* </ent_type> []* [simple_pos="VERB"] :: match.text_publishing_year="1991";"></input> | ||||
|               <input class="validate corpus-analysis-action" id="concordance-extension-form-query" name="query" type="text" required pattern=".*\S+.*" placeholder="Type in your query or use the Query Builder on the right"</input> | ||||
|               <label for="concordance-extension-form-query">Query</label> | ||||
|               <span class="error-color-text helper-text hide" id="concordance-extension-error"></span> | ||||
|               <a class="modal-trigger" href="#cql-tutorial-modal" style="margin-left: 40px;"><i class="material-icons" style="font-size: inherit;">help</i> Corpus Query Language tutorial</a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user