forked from spraakbanken/korp-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: use spContext from common.js (#10)
closes #10
- Loading branch information
Showing
4 changed files
with
30 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,47 @@ | ||
settings.corpora = {}; | ||
settings.corporafolders = {}; | ||
|
||
// settings.corporafolders.sweac = { | ||
// title: "Akademiska texter", | ||
// contents: ["sweachum", "sweacsam"], | ||
// description: "A description" | ||
// }; | ||
|
||
settings.corporafolders.crk = { | ||
title: `nêhiyawêwin (Plains Cree) texts`, | ||
// corpora included in this folder | ||
contents: [`wolfart_ahenakew`], | ||
// description for this folder | ||
// description: `A description,` | ||
// appears in the corpus selection dropdown for this folder | ||
title: `nêhiyawêwin (Plains Cree) texts`, | ||
}; | ||
|
||
/* | ||
* PRESELECTED CORPORA | ||
* Folders will be expanded to all corpora. Optionally prefix folders with __ , which will be ignored. | ||
* Folders will be expanded to all corpora. | ||
* Optionally prefix folders with __ , which will be ignored. | ||
*/ | ||
settings.preselectedCorpora = [`wolfart_ahenakew`]; | ||
|
||
// settings.corpora["magmakolumner"] = { | ||
// id: "magmakolumner", | ||
// title: "Magma kolumner 2009–2012", | ||
// description: "Material ur kolumner publicerade av <a target=\"_blank\" href=\"http://www.magma.fi\">Tankesmedjan Magma</a>", | ||
// within: spWithin, | ||
// context: spContext, | ||
// attributes: modernAttrs, | ||
// structAttributes: { | ||
// text_author: {label: "author"}, | ||
// text_title: {label: "title"}, | ||
// text_date: {label: "date"} | ||
// } | ||
// }; | ||
|
||
settings.corpora.wolfart_ahenakew = { | ||
|
||
id: `wolfart_ahenakew`, | ||
title: `Ahenakew-Wolfart Texts`, | ||
title: `Ahenakew-Wolfart Texts`, // displayed in info box under "Corpus" | ||
description: `Plains Cree texts compiled and edited by H. C. Wolfart and Freda Ahenakew`, | ||
// limited_access : true, // This will be invoked once we get basic search functionality working | ||
within: settings.defaultWithin, // According to Korp Frontend specs | ||
context: settings.spContext, // According to Korp Frontend specs | ||
within: spWithin, // from common.js; sp = sentence/paragraph | ||
context: spContext, // from common.js; sp = sentence/paragraph | ||
|
||
// attributes are displayed in the info box under "Word attributes" | ||
attributes: { | ||
msd: attrs.msd, | ||
dep: attrs.dep, | ||
gloss: attrs.gloss, // This may need to be specified some/elsewhere, as it is ALTLab-specific | ||
lemma: attrs.baseform, | ||
dep: attrs.dep, | ||
msd: attrs.msd, | ||
}, | ||
|
||
// structural attributes are displayed in the info box under "Text attributes" | ||
structAttributes: { | ||
text_author: { label: `author` }, | ||
text_title: { label: `title` }, | ||
text_title1: { label: `text_title1` }, | ||
text_title2: { label: `text_title2` }, | ||
text_lang: { label: `lang` }, | ||
text_title: { label: `title` }, | ||
text_title1: { label: `text_title1` }, // not sure why we have multiple titles [DWH] | ||
text_title2: { label: `text_title2` }, // not sure why we have multiple titles [DWH] | ||
}, | ||
|
||
}; | ||
|
||
settings.corpusListing = new CorpusListing(settings.corpora); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters