diff --git a/src/components/DataDisplay/DataDisplayKeywordInContext.vue b/src/components/DataDisplay/DataDisplayKeywordInContext.vue index 0fe2f3d..b4b349d 100644 --- a/src/components/DataDisplay/DataDisplayKeywordInContext.vue +++ b/src/components/DataDisplay/DataDisplayKeywordInContext.vue @@ -10,14 +10,14 @@ const queryStore = useQuery(); const { queries } = storeToRefs(queryStore); const headers = ref([ - // { title: "date", key: "date", type: "string" }, - // { title: "source", key: "source", type: "string" }, - // { title: "region", key: "region", type: "string" }, + { title: "date", key: "date", type: "string" }, + { title: "source", key: "source", type: "string" }, + { title: "region", key: "region", type: "string" }, { title: "left", key: "left", type: "string" }, { title: "word", key: "word", type: "string" }, { title: "right", key: "right", type: "string" }, { title: "docid", key: "docid", type: "string" }, - // { title: "topic", key: "topic", type: "string" }, + { title: "topic", key: "topic", type: "string" }, { title: "toknum", key: "toknum", type: "string" }, { title: "open", key: "open", type: "string" }, ]); @@ -47,7 +47,6 @@ async function createSubcorpus() { "Currently this does not yet send a request, so actually no subcorpus is created", ); // todo send results - // await useFetch() } } diff --git a/src/composables/useKeywordInContextSearch.ts b/src/composables/useKeywordInContextSearch.ts index 7356c3c..24eeba8 100644 --- a/src/composables/useKeywordInContextSearch.ts +++ b/src/composables/useKeywordInContextSearch.ts @@ -16,10 +16,7 @@ export function useKeywordInContextSearch() { const { data } = await authenticatedFetch(VIEWSATTRSX_URL, { params: { - // https://corpsum-proxy.acdh-dev.oeaw.ac.at/run.cgi/viewattrsx?q=aword%2C%5Blc%3D%22.*arbeit.*%22%5D%20within%20%3Cdoc%20region%3D%22asuedost%22%2F%3E;corpname=amc_3.2;usesubcorp=zdl2021_04;viewmode=kwic;attrs=word;ctxattrs=word;setattrs=word;allpos=kw;setrefs==doc.id;setrefs==doc.region;pagesize=10;newctxsize=5;async=0;format=json - //const viewattrs`${engineAPI}viewattrsx?q=${queryTermEncoded};corpname=${selectedCorpus};${subCorp}viewmode=kwic;attrs=word;ctxattrs=word;setattrs=word;allpos=kw;setrefs==doc.id;setrefs==doc.datum;setrefs==doc.region;setrefs==doc.ressort2;setrefs==doc.docsrc_name;pagesize=1000;newctxsize=30;async=0;format=json`; - // ;corpname=${selectedCorpus};${subCorp}viewmode=kwic;attrs=word;ctxattrs=word;setattrs=word;allpos=kw;setrefs==doc.id;setrefs==doc.datum;setrefs==doc.region;setrefs==doc.ressort2;setrefs==doc.docsrc_name;pagesize=1000;newctxsize=30;async=0;format=json`; - q: `${query.preparedQuery};${corporaForSearch.value};viewmode=kwic;attrs=word;ctxattrs=word;setattrs=word;allpos=kw;setrefs==doc.id;setrefs==doc.datum;setrefs==doc.region;setrefs==doc.ressort2;setrefs==doc.docsrc_name;pagesize=1000;newctxsize=30;async=0;format=json`, + q: `${query.preparedQuery};${corporaForSearch.value};viewmode=kwic;attrs=word;ctxattrs=word;setattrs=word;allpos=kw;refs==doc.id,=doc.datum,=doc.region,=doc.ressort2,=doc.docsrc_name;pagesize=1000;newctxsize=30;async=0;format=json`, }, }); const keywordInContext = data.value as KeywordInContextData;