55use Common \Form \Element as CommonElement ;
66use Laminas \Form \Element ;
77use Laminas \Form \Fieldset ;
8- use Omeka \Form \Element \PropertySelect ;
98
109class BatchEditFieldset extends Fieldset
1110{
@@ -14,8 +13,9 @@ public function init(): void
1413 $ this
1514 ->setName ('geometry ' )
1615 ->setOptions ([
17- 'label ' => 'Geometry and geography ' , // @translate
18- ])
16+ 'element_group ' => 'geometry ' ,
17+ 'label ' => 'Geometry and geography ' , // @translate
18+ ])
1919 ->setAttributes ([
2020 'id ' => 'geometry ' ,
2121 'class ' => 'field-container ' ,
@@ -27,6 +27,7 @@ public function init(): void
2727 'name ' => 'convert_literal_to_coordinates ' ,
2828 'type ' => Element \Checkbox::class,
2929 'options ' => [
30+ 'element_group ' => 'geometry ' ,
3031 'label ' => 'Convert literal values to coordinates ' , // @translate
3132 ],
3233 'attributes ' => [
@@ -39,6 +40,7 @@ public function init(): void
3940 'name ' => 'convert_literal_order ' ,
4041 'type ' => CommonElement \OptionalRadio::class,
4142 'options ' => [
43+ 'element_group ' => 'geometry ' ,
4244 'label ' => 'Order of literal value ' , // @translate
4345 'value_options ' => [
4446 'latitude_longitude ' => 'Latitude then longitude (most frequent) ' , // @translate
@@ -56,6 +58,7 @@ public function init(): void
5658 'name ' => 'convert_literal_strict ' ,
5759 'type ' => Element \Checkbox::class,
5860 'options ' => [
61+ 'element_group ' => 'geometry ' ,
5962 'label ' => 'Check format strictly ("," as separator) ' , // @translate
6063 ],
6164 'attributes ' => [
@@ -67,9 +70,10 @@ public function init(): void
6770 ])
6871 ->add ([
6972 'name ' => 'manage_coordinates_features ' ,
70- 'type ' => Element \Select ::class,
73+ 'type ' => CommonElement \OptionalSelect ::class,
7174 'options ' => [
72- 'label ' => 'Manage geographic coordinates ' , // @translate
75+ 'element_group ' => 'geometry ' ,
76+ 'label ' => 'Manage geographic coordinates for module Mapping ' , // @translate
7377 'value_options ' => [
7478 'sync ' => 'Synchronize coordinates and mapping markers ' , // @translate
7579 'coordinates_to_features ' => 'Copy coordinates to mapping markers ' , // @translate
@@ -86,8 +90,9 @@ public function init(): void
8690 ])
8791 ->add ([
8892 'name ' => 'from_properties ' ,
89- 'type ' => PropertySelect ::class,
93+ 'type ' => CommonElement \OptionalPropertySelect ::class,
9094 'options ' => [
95+ 'element_group ' => 'geometry ' ,
9196 'label ' => 'Source properties to create markers or to convert from literal ' , // @translate
9297 'term_as_value ' => true ,
9398 'prepend_value_options ' => [
@@ -108,8 +113,9 @@ public function init(): void
108113 ])
109114 ->add ([
110115 'name ' => 'to_property ' ,
111- 'type ' => PropertySelect ::class,
116+ 'type ' => CommonElement \OptionalPropertySelect ::class,
112117 'options ' => [
118+ 'element_group ' => 'geometry ' ,
113119 'label ' => 'Property where to copy markers ' , // @translate
114120 'term_as_value ' => true ,
115121 'empty_option ' => '' ,
0 commit comments