diff --git a/web/app/models.py b/web/app/models.py index a05d0444..24fd7b3a 100644 --- a/web/app/models.py +++ b/web/app/models.py @@ -650,6 +650,7 @@ class QueryResult(db.Model): 'user_id': self.user_id, 'description': self.description, 'filename': self.filename, + 'query_metadata': self.query_metadata, 'title': self.title} def __repr__(self): diff --git a/web/app/static/js/nopaque.lists.js b/web/app/static/js/nopaque.lists.js index ac0b2178..eaf0f2e7 100644 --- a/web/app/static/js/nopaque.lists.js +++ b/web/app/static/js/nopaque.lists.js @@ -117,10 +117,11 @@ RessourceList.dataMapper = { "download-link": `${job_input.job_id}/inputs/${job_input.id}/download`}), // Mapping for imported result entities from corpus analysis. // Shown in imported results table - QueryResult: query_result => ({description: query_result.description, - "download-link": `/query_results/${query_result.id}/download`, + QueryResult: query_result => ({corpus_name: query_result.query_metadata.corpus_name, + description: query_result.description, id: query_result.id, link: `/query_results/${query_result.id}`, + query: query_result.query_metadata.query, title: query_result.title}), result: result => ({query: result.query, match_count: result.match_count, @@ -252,21 +253,22 @@ RessourceList.options = { {name: "download-link", attr: "href"}]}, QueryResult: {item: `
This is an overview of all your imported results.
-Query | -Match count | -Corpus name | -Corpus creation date | -Corpus analysis date | -Corpus type | -{# Actions #} | -
---|---|---|---|---|---|---|
- folderNothing here...
- No results yet imported. - |
-
{# Service #} |
- Title
+ Title and Description |
+
+ Corpus and + Query + |
{# Actions #} |
---|