3 $sesameBaseUrl = rtrim(env('CORPUSPAROLE_SESAME_BASE_URL'),'/').'/'; |
3 $sesameBaseUrl = rtrim(env('CORPUSPAROLE_SESAME_BASE_URL'),'/').'/'; |
4 $baseUrl = parse_url(env('APP_URL','http://localhost'), PHP_URL_PATH); |
4 $baseUrl = parse_url(env('APP_URL','http://localhost'), PHP_URL_PATH); |
5 $baseUrl = ($baseUrl && strlen($baseUrl)>0)?$baseUrl:"/"; |
5 $baseUrl = ($baseUrl && strlen($baseUrl)>0)?$baseUrl:"/"; |
6 |
6 |
7 return [ |
7 return [ |
|
8 'pagination_page_param' => 'page', |
|
9 |
|
10 'documents_per_page' => 15, |
|
11 |
|
12 'elasticsearch_index' => env('ELASTICSEARCH_INDEX'), |
|
13 |
8 'sesame_base_url' => $sesameBaseUrl, |
14 'sesame_base_url' => $sesameBaseUrl, |
9 'sesame_repository' => env('CORPUSPAROLE_SESAME_REPOSITORY'), |
15 'sesame_repository' => env('CORPUSPAROLE_SESAME_REPOSITORY'), |
10 'sesame_repository_raw' => env('CORPUSPAROLE_SESAME_REPOSITORY_RAW'), |
16 'sesame_repository_raw' => env('CORPUSPAROLE_SESAME_REPOSITORY_RAW'), |
11 'max_load_retry' => env('CORPUSPAROLE_MAX_LOAD_RETRY', 5), |
17 'max_load_retry' => env('CORPUSPAROLE_MAX_LOAD_RETRY', 5), |
12 'sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY'), |
18 'sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY'), |
110 |
119 |
111 'viaf_base_url' => 'http://viaf.org/viaf/', |
120 'viaf_base_url' => 'http://viaf.org/viaf/', |
112 'viaf_cache_expiration' => 60*24*30, |
121 'viaf_cache_expiration' => 60*24*30, |
113 'viaf_max_ids' => 500, |
122 'viaf_max_ids' => 500, |
114 |
123 |
|
124 'theme_default_limit' => 40, |
|
125 |
115 'lexvo_base_url' => 'http://lexvo.org/id/iso639-3/', |
126 'lexvo_base_url' => 'http://lexvo.org/id/iso639-3/', |
|
127 'lexvo_url_regexp' => '/http[s]?\:\/\/lexvo\.org\/id\/iso639\-3\/([[:alpha:]]{3})\/?/', |
116 'lexvo_cache_expiration' => 60*24*30, |
128 'lexvo_cache_expiration' => 60*24*30, |
117 'lexvo_max_ids' => 50, |
129 'lexvo_max_ids' => 50, |
118 'lexvo_sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_LEXVO_REPOSITORY'), |
130 'lexvo_sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_LEXVO_REPOSITORY'), |
119 |
131 |
120 'bnf_base_url' => 'http://data.bnf.fr/', |
132 'bnf_base_url' => 'http://data.bnf.fr/', |
121 'bnf_ark_base_url' => 'http://ark.bnf.fr/', |
133 'bnf_ark_base_url' => 'http://ark.bnf.fr/', |
|
134 'bnf_ark_url_regexp' => '/http[s]?\:\/\/(?:data|ark)\.bnf\.fr\/(ark\:\/12148\/[[:alnum:]]+)\/?/', |
122 'bnf_cache_expiration' => 60*24*30, |
135 'bnf_cache_expiration' => 60*24*30, |
123 'bnf_max_ids' => 5, |
136 'bnf_max_ids' => 5, |
124 'bnf_query_url' => 'http://data.bnf.fr/sparql', |
137 'bnf_query_url' => 'http://data.bnf.fr/sparql', |
125 'bnf_completion_url' => 'http://data.bnf.fr/search-letter/', |
138 'bnf_completion_url' => 'http://data.bnf.fr/search-letter/', |
|
139 |
|
140 'dbpedia_url_regexp' => '/^https?\:\/\/(([[:alpha:]]+\.)?dbpedia\.org)\/(resource|page)\/([^\/]+)\/?$/', |
126 |
141 |
127 'geonames_base_url' => 'http://sws.geonames.org/', |
142 'geonames_base_url' => 'http://sws.geonames.org/', |
128 'geonames_url_regexp' => '/http[s]?\:\/\/(?:sws|www)\.geonames\.org\/(\d+)\/?/', |
143 'geonames_url_regexp' => '/http[s]?\:\/\/(?:sws|www)\.geonames\.org\/(\d+)\/?/', |
129 'geonames_cache_expiration' => 60*24*30, |
144 'geonames_cache_expiration' => 60*24*30, |
130 'geonames_max_ids' => 500, |
145 'geonames_max_ids' => 500, |
131 'geonames_hierarchy_webservice_url' => 'http://api.geonames.org/hierarchyJSON', |
146 'geonames_hierarchy_webservice_url' => 'http://api.geonames.org/hierarchyJSON', |
132 'geonames_username' => env('GEONAMES_USERNAME'), |
147 'geonames_username' => env('GEONAMES_USERNAME'), |
|
148 'geonames_earth_geonamesid' => '6295630', |
133 |
149 |
134 'bo_client_environment' => [ |
150 'bo_client_environment' => [ |
135 "modulePrefix" => "bo-client", |
151 "modulePrefix" => "bo-client", |
136 "podModulePrefix" => "bo-client/pods", |
152 "podModulePrefix" => "bo-client/pods", |
137 "environment" => "production", |
153 "environment" => "production", |
179 |
195 |
180 'transcript_default_creator' => 'Corpus de la Parole', |
196 'transcript_default_creator' => 'Corpus de la Parole', |
181 'transcrit_decoder_mapping' => [ |
197 'transcrit_decoder_mapping' => [ |
182 "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_archive" => 'CorpusParole\Libraries\Transcript\LacitoTranscriptConverter', |
198 "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_archive" => 'CorpusParole\Libraries\Transcript\LacitoTranscriptConverter', |
183 "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber" => 'CorpusParole\Libraries\Transcript\TranscriberTranscriptConverter' |
199 "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber" => 'CorpusParole\Libraries\Transcript\TranscriberTranscriptConverter' |
|
200 ], |
|
201 |
|
202 "language_corpus_node_prefix" => 'corpus-', |
|
203 "language_corpus_node_global" => 'corpus-global', |
|
204 |
|
205 "languages_treemap" => [ |
|
206 'id' => 'corpus-global', |
|
207 'name' => 'Global', |
|
208 'children' => [ [ |
|
209 'id' => 'http://lexvo.org/id/iso639-3/fra', |
|
210 'name' => 'Français' |
|
211 ], [ |
|
212 'id' => 'http://lexvo.org/id/iso639-3/gsw', |
|
213 'name' => 'Alsacien' |
|
214 ], [ |
|
215 'id' => 'http://lexvo.org/id/iso639-3/bre', |
|
216 'name' => 'Breton' |
|
217 ], [ |
|
218 'id' => 'http://lexvo.org/id/iso639-3/oci', |
|
219 'name' => 'Occitan', |
|
220 ], [ |
|
221 'id' => 'http://lexvo.org/id/iso639-3/lad', |
|
222 'name' => 'Judéo-espagnol' |
|
223 ], [ |
|
224 'id' => 'http://lexvo.org/id/iso639-3/und', |
|
225 'name' => 'Indéterminée', |
|
226 ], [ |
|
227 'id' => 'corpus-regionals', |
|
228 'name' => 'Langues régionales', |
|
229 'children' => [ [ |
|
230 'id' => 'corpus-oil', |
|
231 'name' => 'Langues d\'oïl', |
|
232 'values' => [ 'http://lexvo.org/id/iso639-3/pcd' ] |
|
233 ], [ |
|
234 'id' => 'http://lexvo.org/id/iso639-3/frp', |
|
235 'name' => 'Francoprovençal' |
|
236 ], [ |
|
237 'id' => 'http://lexvo.org/id/iso639-3/cos', |
|
238 'name' => 'Corse' |
|
239 ], [ |
|
240 'id' => 'corpus-creoles', |
|
241 'name' => 'Les Créoles', |
|
242 'children' => [ [ |
|
243 'id' => 'http://lexvo.org/id/iso639-3/rcf', |
|
244 'name' => 'Créole de la Réunion' |
|
245 ], [ |
|
246 'id' => 'http://lexvo.org/id/iso639-3/gcf', |
|
247 'name' => 'Créole de la Guadeloupe' |
|
248 ] |
|
249 ] |
|
250 ] |
|
251 ] |
|
252 ], [ |
|
253 'id' => 'corpus-non-territorials', |
|
254 'name' => 'Langues non territoriales', |
|
255 'children' => [ [ |
|
256 'id' => 'http://lexvo.org/id/iso639-3/fsl', |
|
257 'name' => 'Langue des signes française (LSF)' |
|
258 ], [ |
|
259 'id' => 'http://lexvo.org/id/iso639-3/kab', |
|
260 'name' => 'Berbère' |
|
261 ], [ |
|
262 'id' => 'http://lexvo.org/id/iso639-3/ell', |
|
263 'name' => 'Grec moderne' |
|
264 ], [ |
|
265 'id' => 'http://lexvo.org/id/iso639-3/spa', |
|
266 'name' => 'Espagnol' |
|
267 ], [ |
|
268 'id' => 'http://lexvo.org/id/iso639-3/eng', |
|
269 'name' => 'Anglais' |
|
270 ], [ |
|
271 'id' => 'http://lexvo.org/id/iso639-3/ita', |
|
272 'name' => 'Italien' |
|
273 ], [ |
|
274 'id' => 'http://lexvo.org/id/iso639-3/deu', |
|
275 'name' => 'Allemand' |
|
276 ], [ |
|
277 'id' => 'http://lexvo.org/id/iso639-3/tur', |
|
278 'name' => 'Turque' |
|
279 ] |
|
280 ] |
|
281 ], [ |
|
282 'id' => 'corpus-guyane', |
|
283 'name' => 'Guyane', |
|
284 'children' => [ [ |
|
285 'id' => 'http://lexvo.org/id/iso639-3/gcf', |
|
286 'name' => 'Ndyuka-Trio Pidgin (njt)' |
|
287 ], [ |
|
288 'id' => 'http://lexvo.org/id/iso639-3/plu', |
|
289 'name' => 'Palikúr (plu)' |
|
290 ], [ |
|
291 'id' => 'http://lexvo.org/id/iso639-3/gcr', |
|
292 'name' => 'Guianese Creole French (gcr)' |
|
293 ], [ |
|
294 'id' => 'http://lexvo.org/id/iso639-3/gcr', |
|
295 'name' => 'Guianese Creole French (gcr)' |
|
296 ], [ |
|
297 'id' => 'http://lexvo.org/id/iso639-3/srn', |
|
298 'name' => 'Sranan Tongo (srn)' |
|
299 ], [ |
|
300 'id' => 'http://lexvo.org/id/iso639-3/car', |
|
301 'name' => 'kali\'na (car)' |
|
302 ] |
|
303 ] |
|
304 ], [ |
|
305 'id' => 'corpus-mayotte', |
|
306 'name' => 'Mayotte', |
|
307 'children' => [ [ |
|
308 'id' => 'http://lexvo.org/id/iso639-3/swb', |
|
309 'name' => 'Maore Comorian (swb)' |
|
310 ], [ |
|
311 'id' => 'http://lexvo.org/id/iso639-3/lsy', |
|
312 'name' => 'Mauritian Sign Language (lsy)' |
|
313 ] |
|
314 ] |
|
315 ], [ |
|
316 'id' => 'corpus-polynesia', |
|
317 'name' => 'Polynésie française', |
|
318 'children' => [ [ |
|
319 'id' => 'http://lexvo.org/id/iso639-3/uve', |
|
320 'name' => 'West Uvean (uve)' |
|
321 ] |
|
322 ] |
|
323 ], [ |
|
324 'id' => 'corpus-wallis-futuna', |
|
325 'name' => 'Wallis et Futuna', |
|
326 'children' => [ [ |
|
327 'id' => 'http://lexvo.org/id/iso639-3/fud', |
|
328 'name' => 'LanEast Futuna (fud)' |
|
329 ], [ |
|
330 'id' => 'http://lexvo.org/id/iso639-3/wls', |
|
331 'name' => 'Wallisian (wls)' |
|
332 ] |
|
333 ] |
|
334 ], [ |
|
335 'id' => 'corpus-new-caledonia', |
|
336 'name' => 'Nouvelle-Calédonie', |
|
337 'children' => [ [ |
|
338 'id' => 'http://lexvo.org/id/iso639-3/wls', |
|
339 'name' => 'Wallisian (wls)' |
|
340 ], [ |
|
341 'id' => 'http://lexvo.org/id/iso639-3/ane', |
|
342 'name' => 'Xârâcùù (ane)' |
|
343 ], [ |
|
344 'id' => 'http://lexvo.org/id/iso639-3/cam', |
|
345 'name' => 'Cemuhî (cam)' |
|
346 ], [ |
|
347 'id' => 'http://lexvo.org/id/iso639-3/axx', |
|
348 'name' => 'Xaragure (axx)' |
|
349 ], [ |
|
350 'id' => 'http://lexvo.org/id/iso639-3/iai', |
|
351 'name' => 'Iaai (iai)' |
|
352 ], [ |
|
353 'id' => 'http://lexvo.org/id/iso639-3/nee', |
|
354 'name' => 'Nêlêmwa-Nixumwak (nee)' |
|
355 ], [ |
|
356 'id' => 'http://lexvo.org/id/iso639-3/dhv', |
|
357 'name' => 'Dehu (dhv)' |
|
358 ], [ |
|
359 'id' => 'http://lexvo.org/id/iso639-3/nen', |
|
360 'name' => 'Nengone (nen)' |
|
361 ], [ |
|
362 'id' => 'http://lexvo.org/id/iso639-3/aji', |
|
363 'name' => 'Ajië (aji)' |
|
364 ], [ |
|
365 'id' => 'http://lexvo.org/id/iso639-3/kdk', |
|
366 'name' => 'Numee (kdk)' |
|
367 ], [ |
|
368 'id' => 'http://lexvo.org/id/iso639-3/nem', |
|
369 'name' => 'Nemi' |
|
370 ], [ |
|
371 'id' => 'http://lexvo.org/id/iso639-3/nua', |
|
372 'name' => 'Yuaga (nua)' |
|
373 ], [ |
|
374 'id' => 'http://lexvo.org/id/iso639-3/bwa', |
|
375 'name' => 'Bwatoo (bwa)' |
|
376 ] |
|
377 ] |
|
378 ] |
|
379 ] |
184 ] |
380 ] |
185 |
381 |
186 ]; |
382 ]; |