server/src/config/corpusparole.php
changeset 339 766af1228b05
parent 329 0a2c2ad49d75
child 370 d7c5b43d309a
--- a/server/src/config/corpusparole.php	Sun Oct 16 22:23:31 2016 +0530
+++ b/server/src/config/corpusparole.php	Sun Oct 16 23:19:57 2016 +0530
@@ -5,6 +5,12 @@
 $baseUrl = ($baseUrl && strlen($baseUrl)>0)?$baseUrl:"/";
 
 return [
+    'pagination_page_param' => 'page',
+
+    'documents_per_page' => 15,
+
+    'elasticsearch_index' => env('ELASTICSEARCH_INDEX'),
+
     'sesame_base_url' => $sesameBaseUrl,
     'sesame_repository' => env('CORPUSPAROLE_SESAME_REPOSITORY'),
     'sesame_repository_raw' => env('CORPUSPAROLE_SESAME_REPOSITORY_RAW'),
@@ -24,6 +30,7 @@
     'corpus_id_scheme' => env('HANDLE_PREFIX').'/',
     'corpus_id_prefix' => env('HANDLE_PREFIX').'/crdo-',
 
+    'corpus_doc_id_base_uri_prefix' => 'https://hdl.handle.net/',
     'corpus_doc_id_base_uri' => 'https://hdl.handle.net/'.env('HANDLE_PREFIX').'/',
     'corpus_doc_default_cc_rights' => 'http://creativecommons.org/licenses/by/4.0/',
 
@@ -54,6 +61,8 @@
         "http://ark.bnf.fr/ark:/12148/cb11949715t" => "réunions"
     ],
 
+    'olac_base_url' => 'http://www.language-archives.org/OLAC',
+
     'olac_discourse_type' => [
         'uri' => 'http://www.language-archives.org/OLAC/1.1/discourse-type',
         'values' => [
@@ -112,24 +121,31 @@
     'viaf_cache_expiration' => 60*24*30,
     'viaf_max_ids' => 500,
 
+    'theme_default_limit' => 40,
+
     'lexvo_base_url' => 'http://lexvo.org/id/iso639-3/',
+    'lexvo_url_regexp' => '/http[s]?\:\/\/lexvo\.org\/id\/iso639\-3\/([[:alpha:]]{3})\/?/',
     'lexvo_cache_expiration' => 60*24*30,
     'lexvo_max_ids' => 50,
     'lexvo_sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_LEXVO_REPOSITORY'),
 
     'bnf_base_url' => 'http://data.bnf.fr/',
     'bnf_ark_base_url' => 'http://ark.bnf.fr/',
+    'bnf_ark_url_regexp' => '/http[s]?\:\/\/(?:data|ark)\.bnf\.fr\/(ark\:\/12148\/[[:alnum:]]+)\/?/',
     'bnf_cache_expiration' => 60*24*30,
     'bnf_max_ids' => 5,
     'bnf_query_url' => 'http://data.bnf.fr/sparql',
     'bnf_completion_url' => 'http://data.bnf.fr/search-letter/',
 
+    'dbpedia_url_regexp' => '/^https?\:\/\/(([[:alpha:]]+\.)?dbpedia\.org)\/(resource|page)\/([^\/]+)\/?$/',
+
     'geonames_base_url' => 'http://sws.geonames.org/',
     'geonames_url_regexp' => '/http[s]?\:\/\/(?:sws|www)\.geonames\.org\/(\d+)\/?/',
     'geonames_cache_expiration' => 60*24*30,
     'geonames_max_ids' => 500,
     'geonames_hierarchy_webservice_url' => 'http://api.geonames.org/hierarchyJSON',
     'geonames_username' => env('GEONAMES_USERNAME'),
+    'geonames_earth_geonamesid' => '6295630',
 
     'bo_client_environment' => [
         "modulePrefix" => "bo-client",
@@ -181,6 +197,186 @@
     'transcrit_decoder_mapping' => [
         "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_archive" => 'CorpusParole\Libraries\Transcript\LacitoTranscriptConverter',
         "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber" => 'CorpusParole\Libraries\Transcript\TranscriberTranscriptConverter'
+    ],
+
+    "language_corpus_node_prefix" => 'corpus-',
+    "language_corpus_node_global" => 'corpus-global',
+
+    "languages_treemap" => [
+        'id' => 'corpus-global',
+        'name' => 'Global',
+        'children' => [ [
+            'id' => 'http://lexvo.org/id/iso639-3/fra',
+            'name' => 'Français'
+          ], [
+            'id' => 'http://lexvo.org/id/iso639-3/gsw',
+            'name' => 'Alsacien'
+          ], [
+            'id' => 'http://lexvo.org/id/iso639-3/bre',
+            'name' => 'Breton'
+          ], [
+            'id' => 'http://lexvo.org/id/iso639-3/oci',
+            'name' => 'Occitan',
+          ], [
+            'id' => 'http://lexvo.org/id/iso639-3/lad',
+            'name' => 'Judéo-espagnol'
+          ], [
+            'id' => 'http://lexvo.org/id/iso639-3/und',
+            'name' => 'Indéterminée',
+          ], [
+            'id' => 'corpus-regionals',
+            'name' => 'Langues régionales',
+            'children' => [ [
+                    'id' => 'corpus-oil',
+                    'name' => 'Langues d\'oïl',
+                    'values' => [ 'http://lexvo.org/id/iso639-3/pcd' ]
+                  ], [
+                    'id' => 'http://lexvo.org/id/iso639-3/frp',
+                    'name' => 'Francoprovençal'
+                  ], [
+                    'id' => 'http://lexvo.org/id/iso639-3/cos',
+                    'name' => 'Corse'
+                  ], [
+                    'id' => 'corpus-creoles',
+                    'name' => 'Les Créoles',
+                    'children' => [ [
+                        'id' => 'http://lexvo.org/id/iso639-3/rcf',
+                        'name' => 'Créole de la Réunion'
+                      ], [
+                        'id' => 'http://lexvo.org/id/iso639-3/gcf',
+                        'name' => 'Créole de la Guadeloupe'
+                      ]
+                    ]
+                ]
+            ]
+          ], [
+            'id' => 'corpus-non-territorials',
+            'name' => 'Langues non territoriales',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/fsl',
+                'name' => 'Langue des signes française (LSF)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/kab',
+                'name' => 'Berbère'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/ell',
+                'name' => 'Grec moderne'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/spa',
+                'name' => 'Espagnol'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/eng',
+                'name' => 'Anglais'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/ita',
+                'name' => 'Italien'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/deu',
+                'name' => 'Allemand'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/tur',
+                'name' => 'Turque'
+              ]
+            ]
+          ], [
+            'id' => 'corpus-guyane',
+            'name' => 'Guyane',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/gcf',
+                'name' => 'Ndyuka-Trio Pidgin (njt)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/plu',
+                'name' => 'Palikúr (plu)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/gcr',
+                'name' => 'Guianese Creole French (gcr)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/gcr',
+                'name' => 'Guianese Creole French (gcr)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/srn',
+                'name' => 'Sranan Tongo (srn)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/car',
+                'name' => 'kali\'na (car)'
+              ]
+            ]
+          ], [
+            'id' => 'corpus-mayotte',
+            'name' => 'Mayotte',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/swb',
+                'name' => 'Maore Comorian (swb)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/lsy',
+                'name' => 'Mauritian Sign Language (lsy)'
+              ]
+            ]
+          ], [
+            'id' => 'corpus-polynesia',
+            'name' => 'Polynésie française',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/uve',
+                'name' => 'West Uvean (uve)'
+              ]
+            ]
+          ], [
+            'id' => 'corpus-wallis-futuna',
+            'name' => 'Wallis et Futuna',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/fud',
+                'name' => 'LanEast Futuna (fud)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/wls',
+                'name' => 'Wallisian (wls)'
+              ]
+            ]
+          ], [
+            'id' => 'corpus-new-caledonia',
+            'name' => 'Nouvelle-Calédonie',
+            'children' => [ [
+                'id' => 'http://lexvo.org/id/iso639-3/wls',
+                'name' => 'Wallisian (wls)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/ane',
+                'name' => 'Xârâcùù (ane)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/cam',
+                'name' => 'Cemuhî (cam)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/axx',
+                'name' => 'Xaragure (axx)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/iai',
+                'name' => 'Iaai (iai)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/nee',
+                'name' => 'Nêlêmwa-Nixumwak (nee)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/dhv',
+                'name' => 'Dehu (dhv)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/nen',
+                'name' => 'Nengone (nen)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/aji',
+                'name' => 'Ajië (aji)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/kdk',
+                'name' => 'Numee (kdk)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/nem',
+                'name' => 'Nemi'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/nua',
+                'name' => 'Yuaga (nua)'
+              ], [
+                'id' => 'http://lexvo.org/id/iso639-3/bwa',
+                'name' => 'Bwatoo (bwa)'
+              ]
+            ]
+          ]
+        ]
     ]
 
 ];