Feature #1303
GWT: X.X, Concordance form default values
Status: | New | Start date: | 04/08/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% |
|
Category: | Commands | Spent time: | - | |
Target version: | Portal 0.6.2 |
Description
The concordance form default values must depend on the Corpus configuration (import.xml):
- default reference
- default contexts size
Solution 1¶
The default reference can be set in the import.xml file at since Portal 0.5 :
<ui command="concordances"> <view> <pattribute ref="word"/> <pattribute ref="pos"/> <pattribute ref="func"/> <pattribute ref="lemma"/> </view> <sort/><!-- use all properties --> <ref> <sattribute ref="text:id"/> <sattribute ref="text:loc"/> <sattribute ref="text:type"/> <sattribute ref="text:date"/> <pattribute ref="word"/> <pattribute ref="pos"/> <pattribute ref="func"/> <pattribute ref="lemma"/> </ref> </ui>
The default concordance context sizes are set in the import.xml since Portal 0.6.2 :
<ui command="concordance"> <context_limits type="list">text</context_limits> <context_sizes left="7" right="8"/> </ui>
Validation test¶
- open the concordance tab with a corpus
- run the
<text> []
query - the pivot never contains words from the previous texts
- run the
[] </text>
query - the pivot never contains words from the previous texts
History
#1 Updated by Matthieu Decorde over 8 years ago
- Description updated (diff)
#2 Updated by Serge Heiden about 7 years ago
- Description updated (diff)
#3 Updated by Matthieu Decorde almost 7 years ago
- % Done changed from 0 to 80
#4 Updated by Matthieu Decorde almost 7 years ago
- Description updated (diff)
#5 Updated by Matthieu Decorde about 3 years ago
- % Done changed from 80 to 100