Skip to content

Commit

Permalink
closees #12
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoertl committed Jan 10, 2024
1 parent f4930ad commit 6896676
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/components/DataDisplay/DataDisplayKeywordInContext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]);
Expand Down Expand Up @@ -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()
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/composables/useKeywordInContextSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6896676

Please sign in to comment.