-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_config.vocabs.sample
executable file
·235 lines (209 loc) · 9.59 KB
/
global_config.vocabs.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php
/*************************************************************************/
/*
/* _____ _____ _____ __ __ _
/* /\ | __ \| __ \ / ____| \ \ / / | |
/* / \ | |__) | | | | | \ \ / /__ ___ __ _| |__ ___
/* / /\ \ | _ /| | | | | \ \/ / _ \ / __/ _` | '_ \/ __|
/* / ____ \| | \ \| |__| | |____ \ / (_) | (_| (_| | |_) \__ \
/* /_/ \_\_| \_\_____/ \_____| \/ \___/ \___\__,_|_.__/|___/
/*
/* Vocabs Software Configuration
/*
/* Release Version : 36
/* Contact Person : [email protected]
/* Help/support : https://documentation.ardc.edu.au/
/*
/*************************************************************************/
/*************************************************************************/
/* (SECTION 1) REQUIRED CONFIGURATION OPTIONS
/*************************************************************************/
// The Release Version
$ENV['release_version'] = 'r36';
// Details of your database server (note: advanced settings can be modified in Sect 4)
$eDBCONF['default']['hostname'] = 'localhost'; // hostname or IP address
$eDBCONF['default']['username'] = 'webuser';
$eDBCONF['default']['password'] = '';
$eDBCONF['default']['dbdriver'] = 'mysqli';
// Name of the database being used for the vocabs
$eDBCONF['vocabs']['database'] = 'dbs_vocabs';
// Even for vocabs, need to define this; sorry.
// This is because engine/config/database.php defines
// $active_group = 'registry'.
$eDBCONF['registry']['database'] = 'dbs_registry';
// Also need this setting, if the $ENV['vocab_config']['auth_url']
// setting points back here. If the setting points elsewhere,
// you won't need this.
$eDBCONF['roles']['database'] = 'dbs_roles';
// The Server Base URL is the URL via which users access the software installation
// (for example: http://vocabs.your.org.au/myportal/
$ENV['protocol'] = 'https://';
$ENV['default_base_url'] = $ENV['protocol']."{CONFIGURE ME}";
// The Environment options change the appearance of the software installation
// Leaving these blank will remove the name and colour-bar from all portal pages
// $ENV['environment_name'] = "My Vocabs Portal";
// $ENV['environment_colour'] = "#6EBF21";
// registry mode used 'read-only' atm but more mode may follow
$ENV['registry_mode'] = "";
// Who is the administrator of this domain? [OPTIONAL]
// error reports will be emailed to this address
$ENV['site_admin'] = "Registry System Administrator";
$ENV['site_admin_email'] = "[email protected]"; // Will affect the error reporting status
$ENV['deployment_state'] = "development"; // either "production" or "development"
/*************************************************************************/
/* (SECTION 2) ENABLED MODULES
/*************************************************************************/
// Use this section to enable/disable software modules as you require.
// Note: Most of the non-default modules require additional configuration
// and installation (such as installing additional database or code
// packages). Refer to their installation notes for details.
$ENV['ENABLED_MODULES'] = array(
// Default modules (simply installs the registry, access control and portal)
'roles',
'portal'
);
//overwrite the existing application model with a predefined environment model
$environment_directives = array();
// No need to touch this setting of $environment_directives.
// (Note: the addition of the "page/(:any)" route happened in
// commit 70c0b5cc, but isn't currently used by the code.
// Existing internal links use vocabs/page/... directly.)
$environment_directives['portal'] = array(
"base_url" => "%%BASEURL%%/",
"active_application" => "portal",
"default_controller" => "vocabs",
"routes" => array(
"home/(:any)" => "vocabs/$1",
"page/(:any)" => "vocabs/page/$1",
"lenses/(:any)" => "vocabs/lenses/$1",
"(:any)"=>"core/dispatcher/$1"
),
"default_model" => "vocabs"
);
// Definitely _do_ need to make modifications below; at least,
// to auth_url.
$ENV['vocab_config'] = array(
// This must resolve to the Vocabs Registry API. Use web server
// configuration to proxy, if necessary.
// Typically, this will use the "https" protocol.
// And, if $ENV['protocol'] is set to https, this
// setting _must_ also use https in order for
// JavaScript code to be able to access it.
'registry_api_url' => 'https://localhost/repository/api/registry/',
// This must resolve to the Vocabs toolkit. Use web server
// configuration to proxy, if necessary.
'toolkit_url' => 'http://localhost/repository/api/toolkit/',
// Location of the Solr search index core which you have installed
'solr_url' => 'http://localhost:8983/solr/vocabs/',
// This can point to localhost, or to another installation
// of the ARDC Registry.
'auth_url' => 'https://{CONFIGURE ME}/registry/auth/',
// This should be a subdirectory within the Vocab Toolkit's
// Toolkit.tempPath setting.
'upload_path' => '/var/vocab-files/toolkit-data/temp/uploads/',
// This should match the Vocab Toolkit's Toolkit.storagePath
// setting.
'repository_path' => '/var/vocab-files/toolkit-data/vocabs/',
// This must be the username of a Registry user that has authority
// to do what the portal needs it to do. For now, that means
// it must have the authority to create email subscriptions.
'registry_user' => '{CONFIGURE ME vocabs_portal-for-example}',
// This must be the password for the registry_user.
'registry_password' => '{CONFIGURE ME put-the-password-here}'
);
// $ENV['enable_logging'] = true;
// This configuration supports the display of counts from RDA
// in the tree mode of the vocab widget when displaying ANZSRC vocabularies.
// Even if you don't want to support this, you must have this setting.
// This setting does not have to be valid, but it has to be a non-empty string.
$ENV['solr_url'] = "http://localhost:8983/solr/";
// Additional configuration required to support legacy use of the vocab widget,
// in which only the vocabulary name is provided, not a full URL. For
// such use, this URL is prepended to get to the SISSVoc endpoints.
// This setting does not have to be valid, but it has to be a non-empty string.
$ENV['sissvoc_url'] = "http://localhost/repository/api/lda/";
// Proxy setting for the vocab widget. Used on the Vocabs CMS page
// to access vocab widgets for subject selection.
$ENV['subject_vocab_proxy'] = $ENV['default_base_url']
. 'apps/vocab_widget/proxy/';
// Definition of the entries in the Vocabs CMS subject dropdown.
// Based on the RDA-style vocab_resolving_services setting.
// Note the addition of an entry for 'local'.
// Supported modes: freetext, tree, and search.
// Please note: it is an ARDC business rule (CC-1623)
// that every vocabulary have
// at least one subject taken from ANZSRC-FOR. This rule is
// implemented in vocabs_cms.js as a test for the presence of a
// subject with source = 'anzsrc-for'. Therefore, this list
// should include an entry with that as the key!
// Note well: there is still some hard-coding in
// applications/portal/vocabs/assets/js/subjectDirective.js
// using the keys included here:
// 'anzsrc-for', 'anzsrc-seo', and 'gcmd'.
// So, changes to keys here and in subjectDirective.js must
// be kept in sync.
$ENV['vocab_resolving_services'] = array(
'local' => array(
'label' =>
'Local Keyword',
'mode' =>
'freetext'),
'anzsrc-for' => array(
'label' =>
'ANZSRC Field of Research',
'mode' =>
'tree',
'resolvingService' =>
'http://localhost/repository/api/lda/anzsrc-for/',
'uriprefix' =>
'http://purl.org/au-research/vocabulary/anzsrc-for/2008/'),
'anzsrc-seo' => array(
'label' =>
'ANZSRC Socio-economic Objective',
'mode' =>
'tree',
'resolvingService' =>
'http://localhost/repository/api/lda/anzsrc-seo/',
'uriprefix' =>
'http://purl.org/au-research/vocabulary/anzsrc-seo/2008/'),
'gcmd' => array(
'label' =>
'GCMD',
'mode' =>
'search',
'resolvingService' =>
'http://localhost/repository/api/lda/gcmd-sci/',
'uriprefix' =>
'http://gcmdservices.gsfc.nasa.gov/kms/concept/'),
);
/*************************************************************************/
/* (SECTION 3) ADDITIONAL REGISTRY CONFIGURATION
/*************************************************************************/
// Optional parameters to enable/disable advanced registry functionality
// Session Timeout (how many seconds before the user gets logged out)
$ENV['session_timeout'] = 7200;
// Is this installation configured as a Shib Service Provider (AAF)
// Note: enables AAF login (if Shibboleth 2 is properly configured)
$ENV['shibboleth_sp'] = false;
/*********************************************************************/
/* (SECTION 4) OPTIONAL MODULES / EXTRA CONFIGURATION
/* - only if using additional modules
/*********************************************************************/
//Tracking for Google Analytics and Lucky Orange
$ENV['tracking'] =
array(
'googleGA' => array(
'enabled' => false,
'keys' => array('id' => '', 'cookie_domain' => '')
),
'luckyOrange' => array(
'enabled' => false,
'keys' => array('id' => '')
)
);
// ReCAPTCHA keys, used on the subscription modal dialog.
// Provide both the site key and the secret key.
$ENV['reCAPTCHA'] = array(
"site_key" => "6L...",
"secret_key" => "6L..."
);