Feature #1303

Updated by Matthieu Decorde over 4 years ago

The concordance form default values must depends on the Corpus import configuration :
- default reference
- default contexts size

h4. Solution 1

The default reference can be set in the import.xml file at since *Portal 0.5* :

<pre>
<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>
</pre>

The default concordance context sizes are set in the import.xml since *Portal 0.6.2* :
<pre>
<ui command="concordance">
<context_limits type="list">text</context_limits>
<context_sizes left="7" right="8"/>
</ui>
</pre>
- ...

Back