GWT: X.X, Concordance form default values
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
(from redmine: issue id 1303, created on 2015/04/08 by Matthieu Decorde)