From c6db277436bd505f381db4683c0641be9b5a683b Mon Sep 17 00:00:00 2001 From: Inga Kirschnick Date: Fri, 28 Apr 2023 13:24:30 +0200 Subject: [PATCH] Corpus Follower List Fix --- app/static/js/CorpusAnalysis/QueryBuilder.js | 1 - app/static/js/ResourceLists/CorpusFollowerList.js | 1 - app/templates/corpora/_corpus/action_buttons.html.j2 | 6 ++++-- app/templates/corpora/corpus.html.j2 | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/static/js/CorpusAnalysis/QueryBuilder.js b/app/static/js/CorpusAnalysis/QueryBuilder.js index c35e9e90..a1130c65 100644 --- a/app/static/js/CorpusAnalysis/QueryBuilder.js +++ b/app/static/js/CorpusAnalysis/QueryBuilder.js @@ -561,7 +561,6 @@ class ConcordanceQueryBuilder { if (tokenIsEmpty === false) { tokenQueryText = '[' + tokenQueryText + ']'; } - console.log(tokenQueryText); this.queryChipFactory('token', tokenQueryContent, tokenQueryText); this.hideEverything(); this.elements.positionalAttrArea.classList.add('hide'); diff --git a/app/static/js/ResourceLists/CorpusFollowerList.js b/app/static/js/ResourceLists/CorpusFollowerList.js index 1d0b4877..585c3633 100644 --- a/app/static/js/ResourceLists/CorpusFollowerList.js +++ b/app/static/js/ResourceLists/CorpusFollowerList.js @@ -113,7 +113,6 @@ class CorpusFollowerList extends ResourceList { } onChange(event) { - console.log(event.target.tagName); let listItemElement = event.target.closest('.list-item[data-id]'); if (listItemElement === null) {return;} let itemId = listItemElement.dataset.id; diff --git a/app/templates/corpora/_corpus/action_buttons.html.j2 b/app/templates/corpora/_corpus/action_buttons.html.j2 index 1620d177..30afbbaf 100644 --- a/app/templates/corpora/_corpus/action_buttons.html.j2 +++ b/app/templates/corpora/_corpus/action_buttons.html.j2 @@ -22,11 +22,13 @@ KBuild {% endif %} - {% if corpus.status.name in ['BUILT', 'STARTING_ANALYSIS_SESSION', 'RUNNING_ANALYSIS_SESSION', 'CANCELING_ANALYSIS_SESSION'] %}
+ {% if corpus.status.name in ['BUILT', 'STARTING_ANALYSIS_SESSION', 'RUNNING_ANALYSIS_SESSION', 'CANCELING_ANALYSIS_SESSION'] %} searchAnalyze + {% else %} + searchAnalyze + {% endif %}
- {% endif %} {% endif %} {% if current_user.is_following_corpus(corpus) %}
diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 02d4245d..7fce4da4 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -89,7 +89,7 @@
Corpus files -
+
{% if cfr.has_permission('MANAGE_FILES') %}
@@ -240,14 +240,14 @@ let corpusDisplay = new CorpusDisplay(document.querySelector('#corpus-display')); {% endif %} -let corpusFileList = new CorpusFileList(document.querySelector('#corpus-file-list')); +{# let corpusFileList = new CorpusFileList(document.querySelector('#corpus-file-list')); corpusFileList.add( [ {% for corpus_file in corpus.files %} {{ corpus_file.to_json_serializeable()|tojson }}, {% endfor %} ] -); +); #} {% if current_user.is_following_corpus(corpus) %} {% if cfr.has_permission('MANAGE_FILES') %}