Feature #1303
Mis à jour par Serge Heiden il y a environ 9 ans
The concordance form default values must depend depends on the Corpus import configuration (import.xml): :
- 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>
- 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>