server/src/config/corpusparole.php
author ymh <ymh.work@gmail.com>
Thu, 06 Oct 2016 16:45:37 +0200
changeset 323 47f0611cc57d
parent 322 084aae09edf4
child 324 92fc9d077f95
permissions -rw-r--r--
correct theme controller
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     3
$sesameBaseUrl = rtrim(env('CORPUSPAROLE_SESAME_BASE_URL'),'/').'/';
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
     4
$baseUrl = parse_url(env('APP_URL','http://localhost'), PHP_URL_PATH);
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
     5
$baseUrl = ($baseUrl && strlen($baseUrl)>0)?$baseUrl:"/";
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     6
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
return [
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     8
    'sesame_base_url' => $sesameBaseUrl,
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     9
    'sesame_repository' => env('CORPUSPAROLE_SESAME_REPOSITORY'),
19
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    10
    'sesame_repository_raw' => env('CORPUSPAROLE_SESAME_REPOSITORY_RAW'),
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    11
    'max_load_retry' => env('CORPUSPAROLE_MAX_LOAD_RETRY', 5),
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    12
    'sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY'),
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    13
    'sesame_update_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY').'/statements',
19
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    14
    'sesame_query_url_raw' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY_RAW'),
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    15
    'sesame_update_url_raw' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_REPOSITORY_RAW').'/statements',
275
a4d8618c2f1b add transcript_url property on document list results
ymh <ymh.work@gmail.com>
parents: 163
diff changeset
    16
    'corpus_ontology_url' => env('CORPUSPAROLE_ONTOLOGY_URL', 'http://corpusdelaparole.culture.fr/ontology/'),
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    'cocoon_rdf_base_uri' => env('CORPUSPAROLE_COCOON_RDF_BASE_URI'),
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    'cocoon_oaipmh_url' => env('CORPUSPAROLE_COCOON_OAIPMH_URL'),
18
f2a40bbc27f6 add rdf mapper + merger + basic database model
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    20
    'cocoon_doc_id_base_uri' => 'http://purl.org/poi/crdo.vjf.cnrs.fr/',
113
faff38055a07 change shownAt url to point to humanum
ymh <ymh.work@gmail.com>
parents: 112
diff changeset
    21
    'cocoon_doc_pub_base_uri' => 'http://corpusdelaparole.huma-num.fr/corpus-app#/detail/',
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    'cocoon_doc_id_base' => 'oai:crdo.vjf.cnrs.fr:',
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
154
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
    24
    'corpus_id_scheme' => env('HANDLE_PREFIX').'/',
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
    25
    'corpus_id_prefix' => env('HANDLE_PREFIX').'/crdo-',
122
b37fde30dd4a correct problem of identifier
ymh <ymh.work@gmail.com>
parents: 113
diff changeset
    26
154
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
    27
    'corpus_doc_id_base_uri' => 'https://hdl.handle.net/'.env('HANDLE_PREFIX').'/',
110
8e5fcebb9018 default licence is CC BY 4.0
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
    28
    'corpus_doc_default_cc_rights' => 'http://creativecommons.org/licenses/by/4.0/',
18
f2a40bbc27f6 add rdf mapper + merger + basic database model
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    29
f2a40bbc27f6 add rdf mapper + merger + basic database model
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    30
    'edm_provider' => 'Corpus de la Parole',
f2a40bbc27f6 add rdf mapper + merger + basic database model
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    31
f2a40bbc27f6 add rdf mapper + merger + basic database model
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    32
    'easyrdf_http_client_timeout' => env('EASYRDF_HTTP_CLIENT_TIMEOUT', 1000),
19
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    33
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    34
    'corpus_discourse_type' => [
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    35
        "http://ark.bnf.fr/ark:/12148/cb12083158d" => "argumentation",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    36
        "http://ark.bnf.fr/ark:/12148/cb119783362" => "bavardage",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    37
        "http://ark.bnf.fr/ark:/12148/cb13319048g" => "chansons",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    38
        "http://ark.bnf.fr/ark:/12148/cb11931724n" => "congrès et conférences",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    39
        "http://ark.bnf.fr/ark:/12148/cb11936159v" => "contes",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    40
        "http://ark.bnf.fr/ark:/12148/cb119317924" => "conversation",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    41
        "http://ark.bnf.fr/ark:/12148/cb12481481z" => "dialogue",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    42
        "http://ark.bnf.fr/ark:/12148/cb11948542x" => "discours",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    43
        "http://ark.bnf.fr/ark:/12148/cb119341539" => "discussion",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    44
        "http://ark.bnf.fr/ark:/12148/cb120502737" => "enquêtes linguistiques",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    45
        "http://ark.bnf.fr/ark:/12148/cb11932135w" => "entretiens",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    46
        "http://ark.bnf.fr/ark:/12148/cb11953414d" => "fables",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    47
        "http://ark.bnf.fr/ark:/12148/cb11955657q" => "lecture à haute voix",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    48
        "http://ark.bnf.fr/ark:/12148/cb11957378b" => "musique instrumentale",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    49
        "http://ark.bnf.fr/ark:/12148/cb11937212q" => "narration",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    50
        "http://ark.bnf.fr/ark:/12148/cb11946100d" => "paradigme (épistémologie)",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    51
        "http://ark.bnf.fr/ark:/12148/cb119829234" => "questionnaires",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    52
        "http://ark.bnf.fr/ark:/12148/cb119834877" => "récitation",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    53
        "http://ark.bnf.fr/ark:/12148/cb11976851v" => "récits personnels",
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    54
        "http://ark.bnf.fr/ark:/12148/cb11949715t" => "réunions"
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    55
    ],
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 158
diff changeset
    56
323
47f0611cc57d correct theme controller
ymh <ymh.work@gmail.com>
parents: 322
diff changeset
    57
    'olac_base_url' => 'http://www.language-archives.org/OLAC',
47f0611cc57d correct theme controller
ymh <ymh.work@gmail.com>
parents: 322
diff changeset
    58
19
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    59
    'olac_discourse_type' => [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    60
        'uri' => 'http://www.language-archives.org/OLAC/1.1/discourse-type',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    61
        'values' => [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    62
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    63
                'code' => 'dialogue',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    64
                'name' => 'Dialogue',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    65
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    66
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    67
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    68
                'code' => 'drama',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    69
                'name' => 'Drama',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    70
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    71
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    72
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    73
                'code' => 'formulaic',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    74
                'name' => 'Formulaic Discourse',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    75
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    76
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    77
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    78
                'code' => 'ludic',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    79
                'name' => 'Ludic Discourse',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    80
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    81
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    82
                'code' => 'oratory',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    83
                'name' => 'Oratory',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    84
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    85
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    86
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    87
                'code' => 'narrative',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    88
                'name' => 'Narrative Discourse',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    89
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    90
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    91
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    92
                'code' => 'procedural',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    93
                'name' => 'Procedural Discourse',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    94
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    95
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    96
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    97
                'code' => 'report',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    98
                'name' => 'Report',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    99
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   100
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   101
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   102
                'code' => 'singing',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   103
                'name' => 'Singing',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   104
            ],
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   105
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   106
            [
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   107
                'code' => 'unintelligible_speech',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   108
                'name' => 'Unintelligible Speech',
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   109
            ]
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   110
        ]
23
037687868bc4 add viaf resolver service & api
ymh <ymh.work@gmail.com>
parents: 19
diff changeset
   111
    ],
19
eadaf0b8f02e Bo conception step. back to ember page
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
   112
23
037687868bc4 add viaf resolver service & api
ymh <ymh.work@gmail.com>
parents: 19
diff changeset
   113
    'viaf_base_url' => 'http://viaf.org/viaf/',
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   114
    'viaf_cache_expiration' => 60*24*30,
133
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   115
    'viaf_max_ids' => 500,
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   116
322
084aae09edf4 correction on importRDF documents + evolution theme controller
ymh <ymh.work@gmail.com>
parents: 321
diff changeset
   117
    'theme_default_limit' => 40,
084aae09edf4 correction on importRDF documents + evolution theme controller
ymh <ymh.work@gmail.com>
parents: 321
diff changeset
   118
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   119
    'lexvo_base_url' => 'http://lexvo.org/id/iso639-3/',
323
47f0611cc57d correct theme controller
ymh <ymh.work@gmail.com>
parents: 322
diff changeset
   120
    'lexvo_url_regexp' => '/http[s]?\:\/\/lexvo\.org\/id\/iso639\-3\/([[:alpha:]]{3})\/?/',
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   121
    'lexvo_cache_expiration' => 60*24*30,
158
366509ae2f37 Add controller for themes count + upgrade ember for app-client
ymh <ymh.work@gmail.com>
parents: 154
diff changeset
   122
    'lexvo_max_ids' => 50,
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   123
    'lexvo_sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_LEXVO_REPOSITORY'),
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   124
133
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   125
    'bnf_base_url' => 'http://data.bnf.fr/',
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   126
    'bnf_ark_base_url' => 'http://ark.bnf.fr/',
321
aefaad270b9b reimplement ThemeController using ES requests to be able to sort by label
ymh <ymh.work@gmail.com>
parents: 320
diff changeset
   127
    'bnf_ark_url_regexp' => '/http[s]?\:\/\/(?:data|ark)\.bnf\.fr\/(ark\:\/12148\/[[:alnum:]]+)\/?/',
133
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   128
    'bnf_cache_expiration' => 60*24*30,
158
366509ae2f37 Add controller for themes count + upgrade ember for app-client
ymh <ymh.work@gmail.com>
parents: 154
diff changeset
   129
    'bnf_max_ids' => 5,
133
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   130
    'bnf_query_url' => 'http://data.bnf.fr/sparql',
139
8d688175513a add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents: 133
diff changeset
   131
    'bnf_completion_url' => 'http://data.bnf.fr/search-letter/',
133
821253d361d1 add bnf resolver
ymh <ymh.work@gmail.com>
parents: 122
diff changeset
   132
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 275
diff changeset
   133
    'geonames_base_url' => 'http://sws.geonames.org/',
308
e032d686d88e add hierarchy info in document indexation + geostats api controllers + add some keys to geonames resolver
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
   134
    'geonames_url_regexp' => '/http[s]?\:\/\/(?:sws|www)\.geonames\.org\/(\d+)\/?/',
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 275
diff changeset
   135
    'geonames_cache_expiration' => 60*24*30,
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 275
diff changeset
   136
    'geonames_max_ids' => 500,
308
e032d686d88e add hierarchy info in document indexation + geostats api controllers + add some keys to geonames resolver
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
   137
    'geonames_hierarchy_webservice_url' => 'http://api.geonames.org/hierarchyJSON',
e032d686d88e add hierarchy info in document indexation + geostats api controllers + add some keys to geonames resolver
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
   138
    'geonames_username' => env('GEONAMES_USERNAME'),
320
0fce13da58af filter geostat by area + tests
ymh <ymh.work@gmail.com>
parents: 308
diff changeset
   139
    'geonames_earth_geonamesid' => '6295630',
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 275
diff changeset
   140
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   141
    'bo_client_environment' => [
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   142
        "modulePrefix" => "bo-client",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   143
        "podModulePrefix" => "bo-client/pods",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   144
        "environment" => "production",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   145
        "baseURL" => $baseUrl,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   146
        "locationType" => "hash",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   147
        "i18n" => ["defaultLocale" => "fr"],
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   148
        "EmberENV" => ["FEATURES"=>(object)[]], # to force json serialisation as object
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   149
        "APP" => [
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   150
            "bo-doc-viaf-autocomplete" => [
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   151
                "viafQueryUrl" => "http://viaf.org/viaf/AutoSuggest?query=",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   152
                "viafBaseUrl" => "http://viaf.org/viaf/"
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   153
            ],
140
f851ec12812f upgrade bo client
ymh <ymh.work@gmail.com>
parents: 139
diff changeset
   154
            'bo-doc-bnf-autocomplete' => [
f851ec12812f upgrade bo client
ymh <ymh.work@gmail.com>
parents: 139
diff changeset
   155
                "bnfQueryUrl" => "${baseUrl}proxy/bnf/?term=",
f851ec12812f upgrade bo client
ymh <ymh.work@gmail.com>
parents: 139
diff changeset
   156
                "bnfBaseUrl" => "http://data.bnf.fr/",
f851ec12812f upgrade bo client
ymh <ymh.work@gmail.com>
parents: 139
diff changeset
   157
                "bnfSparqlUrl" => "${baseUrl}proxy/bnf-sparql"
f851ec12812f upgrade bo client
ymh <ymh.work@gmail.com>
parents: 139
diff changeset
   158
            ],
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   159
            "LOG_RESOLVER" => true,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   160
            "LOG_ACTIVE_GENERATION" => true,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   161
            "LOG_TRANSITIONS" => true,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   162
            "LOG_TRANSITIONS_INTERNAL" => true,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   163
            "LOG_VIEW_LOOKUPS" => true,
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   164
            "name" => "bo-client",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   165
            "version" => "0.0.0 "
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   166
        ],
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   167
        "contentSecurityPolicy" => [
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   168
            "default-src" => "'none'",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   169
            "script-src" => "'self'",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   170
            "font-src" => "'self'",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   171
            "connect-src" => "'self' *",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   172
            "img-src" => "'self'",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   173
            "style-src" => "'self' *",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   174
            "media-src" => "'self'"
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   175
        ],
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   176
        "contentSecurityPolicyHeader" => "Content-Security-Policy-Report-Only",
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 23
diff changeset
   177
        "exportApplicationGlobal" => true
153
338bcc78d431 add HandleClient implementation + configuration + tests
ymh <ymh.work@gmail.com>
parents: 143
diff changeset
   178
    ],
338bcc78d431 add HandleClient implementation + configuration + tests
ymh <ymh.work@gmail.com>
parents: 143
diff changeset
   179
154
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   180
    'handle_host'         => env('HANDLE_HOST'),
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   181
    'handle_port'         => env('HANDLE_PORT', 8000),
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   182
    'handle_admin_id'     => env('HANDLE_ADMIN_ID'),
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   183
    'handle_prefix'       => env('HANDLE_PREFIX'),
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   184
    'handle_cert_or_pkey' => env('HANDLE_CERT_OR_PKEY'),
162
a6cf5a06f02d add Transcript converters libraries + test
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
   185
    'handle_password'     => env('HANDLE_PASSWORD'),
a6cf5a06f02d add Transcript converters libraries + test
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
   186
a6cf5a06f02d add Transcript converters libraries + test
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
   187
    'transcript_default_creator' => 'Corpus de la Parole',
163
59c68fc4848e Add transcript api endpoint
ymh <ymh.work@gmail.com>
parents: 162
diff changeset
   188
    'transcrit_decoder_mapping' => [
59c68fc4848e Add transcript api endpoint
ymh <ymh.work@gmail.com>
parents: 162
diff changeset
   189
        "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_archive" => 'CorpusParole\Libraries\Transcript\LacitoTranscriptConverter',
59c68fc4848e Add transcript api endpoint
ymh <ymh.work@gmail.com>
parents: 162
diff changeset
   190
        "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber" => 'CorpusParole\Libraries\Transcript\TranscriberTranscriptConverter'
59c68fc4848e Add transcript api endpoint
ymh <ymh.work@gmail.com>
parents: 162
diff changeset
   191
    ]
154
ded3cf22eef8 correct handle managing
ymh <ymh.work@gmail.com>
parents: 153
diff changeset
   192
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
diff changeset
   193
];