1 |
fee09cdd
|
l.morris
|
<?php
|
2 |
|
|
|
3 |
5522e328
|
l.morris
|
/**
|
4 |
|
|
* Set up the map containing the file name to view name mapping with default values
|
5 |
|
|
* @return multitype:stdClass
|
6 |
|
|
*/
|
7 |
fee09cdd
|
l.morris
|
function dwca_export_strongarm(){
|
8 |
|
|
|
9 |
|
|
$export = array();
|
10 |
|
|
|
11 |
|
|
$strongarm = new stdClass;
|
12 |
|
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
13 |
|
|
$strongarm->api_version = 1;
|
14 |
|
|
$strongarm->name = 'dwca_export_archive_descriptor_file_map';
|
15 |
|
|
$strongarm->value = array(
|
16 |
|
|
'classification' => array(
|
17 |
|
|
'view_name'=> 'dwca_export_classification',
|
18 |
|
|
'display_id' => 'views_data_export_1',
|
19 |
|
|
'out_file_url' => NULL
|
20 |
|
|
),
|
21 |
f6086da6
|
l.morris
|
'specimen' => array(
|
22 |
5522e328
|
l.morris
|
'view_name'=> 'dwca_export_specimen',
|
23 |
fee09cdd
|
l.morris
|
'display_id' => 'views_data_export_1',
|
24 |
|
|
'out_file_url' => NULL
|
25 |
5522e328
|
l.morris
|
),
|
26 |
|
|
'reference' => array(
|
27 |
|
|
'view_name'=> 'dwca_export_reference',
|
28 |
|
|
'display_id' => 'views_data_export_1',
|
29 |
|
|
'out_file_url' => NULL
|
30 |
|
|
),
|
31 |
|
|
'image' => array(
|
32 |
|
|
'view_name'=> 'dwca_export_image',
|
33 |
|
|
'display_id' => 'views_data_export_1',
|
34 |
|
|
'out_file_url' => NULL
|
35 |
96ddb3af
|
l.morris
|
)
|
36 |
|
|
,
|
37 |
8e5c42d1
|
l.morris
|
'distribution' => array(
|
38 |
|
|
'view_name'=> 'dwca_export_distribution',
|
39 |
|
|
'display_id' => 'views_data_export_1',
|
40 |
|
|
'out_file_url' => NULL
|
41 |
|
|
)
|
42 |
|
|
,
|
43 |
96ddb3af
|
l.morris
|
'description' => array(
|
44 |
|
|
'general' => array(
|
45 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_genera',
|
46 |
96ddb3af
|
l.morris
|
'display_id' => 'views_data_export_1',
|
47 |
|
|
'out_file_url' => NULL
|
48 |
|
|
),
|
49 |
|
|
'morphology' => array(
|
50 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_morpho',
|
51 |
96ddb3af
|
l.morris
|
'display_id' => 'views_data_export_1',
|
52 |
|
|
'out_file_url' => NULL
|
53 |
8e5c42d1
|
l.morris
|
),
|
54 |
|
|
'behaviour' => array(
|
55 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_behavi',
|
56 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
57 |
|
|
'out_file_url' => NULL
|
58 |
|
|
),
|
59 |
|
|
'biology' => array(
|
60 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_biolog',
|
61 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
62 |
|
|
'out_file_url' => NULL
|
63 |
|
|
),
|
64 |
|
|
'conservation_status' => array(
|
65 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_conser',
|
66 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
67 |
|
|
'out_file_url' => NULL
|
68 |
|
|
),
|
69 |
|
|
'legislation' => array(
|
70 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_legisl',
|
71 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
72 |
|
|
'out_file_url' => NULL
|
73 |
|
|
),
|
74 |
|
|
'management' => array(
|
75 |
|
|
'view_name'=> 'dwca_export_description_manage',
|
76 |
|
|
'display_id' => 'views_data_export_1',
|
77 |
|
|
'out_file_url' => NULL
|
78 |
|
|
),
|
79 |
|
|
'procedures' => array(
|
80 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_proced',
|
81 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
82 |
|
|
'out_file_url' => NULL
|
83 |
|
|
),
|
84 |
|
|
'threats' => array(
|
85 |
|
|
'view_name'=> 'dwca_export_description_threat',
|
86 |
|
|
'display_id' => 'views_data_export_1',
|
87 |
|
|
'out_file_url' => NULL
|
88 |
|
|
),
|
89 |
|
|
'associations' => array(
|
90 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_associ',
|
91 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
92 |
|
|
'out_file_url' => NULL
|
93 |
|
|
),
|
94 |
|
|
'cyclicity' => array(
|
95 |
|
|
'view_name'=> 'dwca_export_description_cyclic',
|
96 |
|
|
'display_id' => 'views_data_export_1',
|
97 |
|
|
'out_file_url' => NULL
|
98 |
|
|
),
|
99 |
|
|
'diagnostic_description' => array(
|
100 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_diagno',
|
101 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
102 |
|
|
'out_file_url' => NULL
|
103 |
|
|
),
|
104 |
|
|
'diseases' => array(
|
105 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_diseas',
|
106 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
107 |
|
|
'out_file_url' => NULL
|
108 |
|
|
),
|
109 |
|
|
'dispersal' => array(
|
110 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_disper',
|
111 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
112 |
|
|
'out_file_url' => NULL
|
113 |
|
|
),
|
114 |
87f7aef4
|
l.morris
|
'distribut' => array(
|
115 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_distri',
|
116 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
117 |
|
|
'out_file_url' => NULL
|
118 |
|
|
),
|
119 |
|
|
'ecology' => array(
|
120 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_ecolog',
|
121 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
122 |
|
|
'out_file_url' => NULL
|
123 |
|
|
),
|
124 |
|
|
'evolution' => array(
|
125 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_evolut',
|
126 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
127 |
|
|
'out_file_url' => NULL
|
128 |
|
|
),
|
129 |
|
|
'genetics' => array(
|
130 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_geneti',
|
131 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
132 |
|
|
'out_file_url' => NULL
|
133 |
|
|
),
|
134 |
|
|
'growth' => array(
|
135 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_growth',
|
136 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
137 |
|
|
'out_file_url' => NULL
|
138 |
|
|
),
|
139 |
|
|
'habitat' => array(
|
140 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_habita',
|
141 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
142 |
|
|
'out_file_url' => NULL
|
143 |
|
|
),
|
144 |
|
|
'life_cycle' => array(
|
145 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_life_c',
|
146 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
147 |
|
|
'out_file_url' => NULL
|
148 |
|
|
),
|
149 |
|
|
'life_expectancy' => array(
|
150 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_life_e',
|
151 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
152 |
|
|
'out_file_url' => NULL
|
153 |
|
|
),
|
154 |
|
|
'look_alikes' => array(
|
155 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_look_a',
|
156 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
157 |
|
|
'out_file_url' => NULL
|
158 |
|
|
),
|
159 |
|
|
'migration' => array(
|
160 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_migrat',
|
161 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
162 |
|
|
'out_file_url' => NULL
|
163 |
|
|
),
|
164 |
|
|
'molecular_biology' => array(
|
165 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_molecu',
|
166 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
167 |
|
|
'out_file_url' => NULL
|
168 |
|
|
),
|
169 |
|
|
'physiology' => array(
|
170 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_physio',
|
171 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
172 |
|
|
'out_file_url' => NULL
|
173 |
|
|
),
|
174 |
|
|
'population_biology' => array(
|
175 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_popula',
|
176 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
177 |
|
|
'out_file_url' => NULL
|
178 |
|
|
),
|
179 |
|
|
'reproduction' => array(
|
180 |
|
|
'view_name'=> 'dwca_export_description_reprod',
|
181 |
|
|
'display_id' => 'views_data_export_1',
|
182 |
|
|
'out_file_url' => NULL
|
183 |
|
|
),
|
184 |
|
|
'risk_statement' => array(
|
185 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_risk_s',
|
186 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
187 |
|
|
'out_file_url' => NULL
|
188 |
|
|
),
|
189 |
|
|
'size' => array(
|
190 |
|
|
'view_name'=> 'dwca_export_description_size',
|
191 |
|
|
'display_id' => 'views_data_export_1',
|
192 |
|
|
'out_file_url' => NULL
|
193 |
|
|
),
|
194 |
|
|
'taxon_biology' => array(
|
195 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_taxon_',
|
196 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
197 |
|
|
'out_file_url' => NULL
|
198 |
|
|
),
|
199 |
|
|
'trophic_strategy' => array(
|
200 |
53643c8a
|
l.morris
|
'view_name'=> 'dwca_export_description_trophi',
|
201 |
8e5c42d1
|
l.morris
|
'display_id' => 'views_data_export_1',
|
202 |
|
|
'out_file_url' => NULL
|
203 |
|
|
),
|
204 |
|
|
'uses' => array(
|
205 |
|
|
'view_name'=> 'dwca_export_description_uses',
|
206 |
|
|
'display_id' => 'views_data_export_1',
|
207 |
|
|
'out_file_url' => NULL
|
208 |
96ddb3af
|
l.morris
|
)
|
209 |
|
|
|
210 |
|
|
)
|
211 |
fee09cdd
|
l.morris
|
);
|
212 |
|
|
$export['dwca_export_archive_descriptor_file_map'] = $strongarm;
|
213 |
|
|
|
214 |
|
|
//throw new Exception(t('Error creating the archive'));
|
215 |
|
|
|
216 |
|
|
return $export;
|
217 |
|
|
}
|