diff --git a/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml b/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml
index 7abcde7e664bfb39733c04fd73e0a6a3204f25eb..8fccaeccaee870ec16247ff971323bedbca08d64 100644 (file)
<filterdef>
<definition>
<category>opsi</category>
- <template>opsiLicense-filter.tpl</template>
<initial>true</initial>
+ <default>default</default>
+ <scope>one</scope>
+ <attribute>dn</attribute>
+ <attribute>objectClass</attribute>
+ <attribute>cn</attribute>
+ <attribute>description</attribute>
+ <attribute>productId</attribute>
</definition>
<search>
+ <tag>default</tag>
+ <label>Default filter</label>
<query>
<backend>OpsiLicense</backend>
- <filter>$NAME</filter>
- <attribute>dn</attribute>
- <attribute>objectClass</attribute>
- <attribute>cn</attribute>
- <attribute>description</attribute>
+ <filter>cn=$</filter>
</query>
<scope>auto</scope>
+ <autocomplete>
+ <attribute>cn</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
</search>
- <element>
- <type>textfield</type>
- <tag>NAME</tag>
- <size>20</size>
- <maxlength>60</maxlength>
- <default></default>
- <unset></unset>
- <set>/$/i</set>
- <alphabet>false</alphabet>
- <autocomplete>
+ <search>
+ <tag>byProduct</tag>
+ <label>By product</label>
+ <query>
<backend>OpsiLicense</backend>
- <filter>/$NAME/i</filter>
+ <filter>productId=$</filter>
+ </query>
+ <scope>auto</scope>
+ <autocomplete>
<attribute>cn</attribute>
<frequency>0.5</frequency>
<characters>3</characters>
</autocomplete>
- </element>
-
+ </search>
</filterdef>