Skip to content

Commit

Permalink
test: add free autocomplete widget question to fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPyDavid committed Nov 15, 2023
1 parent 6a9172e commit b8a8b22
Show file tree
Hide file tree
Showing 2 changed files with 210 additions and 33 deletions.
23 changes: 22 additions & 1 deletion testing/xml/elements/attributes.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<rdmo xmlns:dc="http://purl.org/dc/elements/1.1/" created="2023-04-20T09:40:24.085182+02:00" version="1.9.2">
<rdmo xmlns:dc="http://purl.org/dc/elements/1.1/" created="2023-11-15T09:48:16.754633+01:00" version="2.0.1">
<attribute dc:uri="http://example.com/terms/domain/blocks">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>blocks</key>
Expand Down Expand Up @@ -175,6 +175,13 @@
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/individual/collection"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/individual/collection/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>freeautocomplete</key>
<path>individual/collection/freeautocomplete</path>
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/individual/collection"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/individual/collection/integer">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>integer</key>
Expand Down Expand Up @@ -266,6 +273,13 @@
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/individual/single"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/individual/single/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>freeautocomplete</key>
<path>individual/single/freeautocomplete</path>
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/individual/single"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/individual/single/integer">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>integer</key>
Expand Down Expand Up @@ -357,6 +371,13 @@
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/options/plugin"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/options/plugin/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>freeautocomplete</key>
<path>options/plugin/freeautocomplete</path>
<dc:comment/>
<parent dc:uri="http://example.com/terms/domain/options/plugin"/>
</attribute>
<attribute dc:uri="http://example.com/terms/domain/options/plugin/radio">
<uri_prefix>http://example.com/terms</uri_prefix>
<key>radio</key>
Expand Down
220 changes: 188 additions & 32 deletions testing/xml/elements/catalogs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<rdmo xmlns:dc="http://purl.org/dc/elements/1.1/" created="2023-04-20T09:38:39.297292+02:00" version="1.9.2">
<rdmo xmlns:dc="http://purl.org/dc/elements/1.1/" created="2023-11-15T09:47:11.082072+01:00" version="2.0.1">
<catalog dc:uri="http://example.com/terms/questions/catalog">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog</uri_path>
Expand All @@ -25,15 +25,16 @@
<title lang="en">Single questions</title>
<title lang="de">Einzelne Fragen</title>
<pages>
<page dc:uri="http://example.com/terms/questions/catalog/individual/text" order="11"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/textarea" order="12"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/bool" order="13"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/radio" order="14"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/select" order="15"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/autocomplete" order="16"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/range" order="17"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/file" order="18"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/datetime" order="19"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/text" order="0"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/textarea" order="1"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/bool" order="2"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/radio" order="3"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/select" order="4"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/autocomplete" order="5"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/freeautocomplete" order="6"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/range" order="7"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/file" order="8"/>
<page dc:uri="http://example.com/terms/questions/catalog/individual/datetime" order="9"/>
</pages>
</section>
<page dc:uri="http://example.com/terms/questions/catalog/individual/text">
Expand Down Expand Up @@ -309,7 +310,7 @@
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/individual/autocomplete/autocomplete</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/individual/single/autocomplete"/>
<attribute dc:uri="http://example.com/terms/domain/individual/single/freeautocomplete"/>
<is_collection>False</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
Expand All @@ -336,6 +337,57 @@
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/individual/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/individual/freeautocomplete</uri_path>
<dc:comment/>
<attribute/>
<is_collection>False</is_collection>
<title lang="en">Free autocomplete</title>
<help lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<title lang="de">Free autocomplete</title>
<help lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<questionsets/>
<questions>
<question dc:uri="http://example.com/terms/questions/catalog/individual/freeautocomplete/freeautocomplete" order="1"/>
</questions>
<conditions/>
</page>
<question dc:uri="http://example.com/terms/questions/catalog/individual/freeautocomplete/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/individual/freeautocomplete/freeautocomplete</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/individual/single/freeautocomplete"/>
<is_collection>False</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
<text lang="en">Free autocomplete?</text>
<default_text lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<help lang="de"/>
<text lang="de">Free autocomplete?</text>
<default_text lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<default_option dc:uri="http://example.com/terms/options/one_two_three/one"/>
<default_external_id/>
<widget_type>freeautocomplete</widget_type>
<value_type>text</value_type>
<maximum/>
<minimum/>
<step/>
<unit/>
<width/>
<optionsets>
<optionset dc:uri="http://example.com/terms/options/one_two_three"/>
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/individual/range">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/individual/range</uri_path>
Expand Down Expand Up @@ -490,16 +542,17 @@
<title lang="en">Collections</title>
<title lang="de">Sammlungen</title>
<pages>
<page dc:uri="http://example.com/terms/questions/catalog/collections/text" order="21"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/textarea" order="22"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/bool" order="23"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/radio" order="24"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/select" order="25"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/autocomplete" order="26"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/range" order="27"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/datetime" order="28"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/file" order="29"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/checkbox" order="30"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/text" order="0"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/textarea" order="1"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/bool" order="2"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/radio" order="3"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/select" order="4"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/autocomplete" order="5"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/freeautocomplete" order="6"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/range" order="7"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/datetime" order="8"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/file" order="9"/>
<page dc:uri="http://example.com/terms/questions/catalog/collections/checkbox" order="10"/>
</pages>
</section>
<page dc:uri="http://example.com/terms/questions/catalog/collections/text">
Expand Down Expand Up @@ -802,6 +855,57 @@
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/collections/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/collections/freeautocomplete</uri_path>
<dc:comment/>
<attribute/>
<is_collection>False</is_collection>
<title lang="en">Freeutocomplete</title>
<help lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<title lang="de">Freeutocomplete</title>
<help lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<questionsets/>
<questions>
<question dc:uri="http://example.com/terms/questions/catalog/collections/freeautocomplete/freeautocomplete" order="1"/>
</questions>
<conditions/>
</page>
<question dc:uri="http://example.com/terms/questions/catalog/collections/freeautocomplete/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/collections/freeautocomplete/freeautocomplete</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/individual/collection/freeautocomplete"/>
<is_collection>True</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
<text lang="en">Free autocomplete?</text>
<default_text lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<help lang="de"/>
<text lang="de">Free autocomplete?</text>
<default_text lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<default_option/>
<default_external_id/>
<widget_type>freeautocomplete</widget_type>
<value_type>text</value_type>
<maximum/>
<minimum/>
<step/>
<unit/>
<width/>
<optionsets>
<optionset dc:uri="http://example.com/terms/options/one_two_three"/>
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/collections/range">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/collections/range</uri_path>
Expand Down Expand Up @@ -1194,7 +1298,7 @@
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/set/individual-single/autocomplete</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/individual/single/autocomplete"/>
<attribute dc:uri="http://example.com/terms/domain/individual/single/freeautocomplete"/>
<is_collection>False</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
Expand Down Expand Up @@ -1490,7 +1594,7 @@
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/set/individual-collection/autocomplete</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/individual/collection/autocomplete"/>
<attribute dc:uri="http://example.com/terms/domain/individual/collection/freeautocomplete"/>
<is_collection>True</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
Expand Down Expand Up @@ -3079,7 +3183,7 @@
<default_option/>
<default_external_id/>
<widget_type>yesno</widget_type>
<value_type>text</value_type>
<value_type>boolean</value_type>
<maximum/>
<minimum/>
<step/>
Expand Down Expand Up @@ -3212,7 +3316,7 @@
<default_option/>
<default_external_id/>
<widget_type>yesno</widget_type>
<value_type>text</value_type>
<value_type>boolean</value_type>
<maximum/>
<minimum/>
<step/>
Expand Down Expand Up @@ -3262,7 +3366,7 @@
<default_option/>
<default_external_id/>
<widget_type>yesno</widget_type>
<value_type>text</value_type>
<value_type>boolean</value_type>
<maximum/>
<minimum/>
<step/>
Expand Down Expand Up @@ -3345,7 +3449,7 @@
<default_option/>
<default_external_id/>
<widget_type>yesno</widget_type>
<value_type>text</value_type>
<value_type>boolean</value_type>
<maximum/>
<minimum/>
<step/>
Expand All @@ -3362,9 +3466,10 @@
<title lang="de">Optionen</title>
<pages>
<page dc:uri="http://example.com/terms/questions/catalog/options/order" order="0"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/radio" order="2"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/select" order="3"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/autocomplete" order="4"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/radio" order="1"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/select" order="2"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/autocomplete" order="3"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/freeautocomplete" order="4"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/checkboxes" order="5"/>
<page dc:uri="http://example.com/terms/questions/catalog/options/combined" order="6"/>
</pages>
Expand Down Expand Up @@ -3394,7 +3499,7 @@
<uri_path>catalog/options/order/option</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/options/order"/>
<is_collection>False</is_collection>
<is_collection>True</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
<text lang="en">order?</text>
Expand Down Expand Up @@ -3574,6 +3679,57 @@
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/options/freeautocomplete">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/options/freeautocomplete</uri_path>
<dc:comment/>
<attribute/>
<is_collection>False</is_collection>
<title lang="en">Free autocomplete</title>
<help lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<title lang="de">Free autocomplete</title>
<help lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<questionsets/>
<questions>
<question dc:uri="http://example.com/terms/questions/catalog/options/freeautocomplete/select" order="1"/>
</questions>
<conditions/>
</page>
<question dc:uri="http://example.com/terms/questions/catalog/options/freeautocomplete/select">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/options/freeautocomplete/select</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/options/plugin/freeautocomplete"/>
<is_collection>False</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
<text lang="en">Free autocomplete?</text>
<default_text lang="en"/>
<verbose_name lang="en"/>
<verbose_name_plural lang="en"/>
<help lang="de"/>
<text lang="de">Free autocomplete?</text>
<default_text lang="de"/>
<verbose_name lang="de"/>
<verbose_name_plural lang="de"/>
<default_option/>
<default_external_id>simple_1</default_external_id>
<widget_type>freeautocomplete</widget_type>
<value_type>text</value_type>
<maximum/>
<minimum/>
<step/>
<unit/>
<width/>
<optionsets>
<optionset dc:uri="http://example.com/terms/options/plugin"/>
</optionsets>
<conditions/>
</question>
<page dc:uri="http://example.com/terms/questions/catalog/options/checkboxes">
<uri_prefix>http://example.com/terms</uri_prefix>
<uri_path>catalog/options/checkboxes</uri_path>
Expand All @@ -3599,7 +3755,7 @@
<uri_path>catalog/options/checkboxes/checkboxes</uri_path>
<dc:comment/>
<attribute dc:uri="http://example.com/terms/domain/options/plugin/checkboxes"/>
<is_collection>False</is_collection>
<is_collection>True</is_collection>
<is_optional>False</is_optional>
<help lang="en"/>
<text lang="en">checkboxes?</text>
Expand Down

0 comments on commit b8a8b22

Please sign in to comment.