mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 10:42:43 +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 tokenQueryContent = ''; //for ButtonFactory(prettyQueryText) | ||||||
|     let tokenQueryText = ''; //for ButtonFactory(queryText) |     let tokenQueryText = ''; //for ButtonFactory(queryText) | ||||||
|     this.elements.cancelBool = false; |     this.elements.cancelBool = false; | ||||||
|     let tokenIsEmpty = true; |     let tokenIsEmpty = false; | ||||||
|  |  | ||||||
|     if (this.elements.ignoreCase.checked) { |     if (this.elements.ignoreCase.checked) { | ||||||
|       c = ' %c'; |       c = ' %c'; | ||||||
| @@ -497,8 +497,8 @@ class ConcordanceQueryBuilder { | |||||||
|     for (let element of this.elements.tokenQuery.childNodes) { |     for (let element of this.elements.tokenQuery.childNodes) { | ||||||
|       tokenQueryContent += ' ' + element.firstChild.data + ' '; |       tokenQueryContent += ' ' + element.firstChild.data + ' '; | ||||||
|       tokenQueryText += decodeURI(element.dataset.tokentext); |       tokenQueryText += decodeURI(element.dataset.tokentext); | ||||||
|       if (element.innerTe8888xt.indexOf('empty token') !== -1) { |       if (element.innerText.indexOf('empty token') !== -1) { | ||||||
|         emptyTokenCheck = false; |         tokenIsEmpty = true; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -561,6 +561,7 @@ class ConcordanceQueryBuilder { | |||||||
|       if (tokenIsEmpty === false) { |       if (tokenIsEmpty === false) { | ||||||
|         tokenQueryText = '[' + tokenQueryText + ']'; |         tokenQueryText = '[' + tokenQueryText + ']'; | ||||||
|         } |         } | ||||||
|  |       console.log(tokenQueryText); | ||||||
|       this.queryChipFactory('token', tokenQueryContent, tokenQueryText); |       this.queryChipFactory('token', tokenQueryContent, tokenQueryText); | ||||||
|       this.hideEverything(); |       this.hideEverything(); | ||||||
|       this.elements.positionalAttrArea.classList.add('hide'); |       this.elements.positionalAttrArea.classList.add('hide'); | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|           <div class="row"> |           <div class="row"> | ||||||
|             <div class="input-field col s12 m9"> |             <div class="input-field col s12 m9"> | ||||||
|               <i class="material-icons prefix">search</i> |               <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> |               <label for="concordance-extension-form-query">Query</label> | ||||||
|               <span class="error-color-text helper-text hide" id="concordance-extension-error"></span> |               <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> |               <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