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
|
<?php
//RESOURCE_CATEGORY_CLASS_MAPPING:
//This setting can be used when migrating resource categories
//from the old room and resource management system to the new one.
//If the setting is set to null, the mapping will be done on best guess.
//If the setting is an array, the class name to be used for a resource
//category will be assigned by the content of the array.
//The resource category name must be the array index and
//the resource class name the corresponding value.
//All resource categories not mentioned in the array will get the default
//"Resource" class assigned to them.
//The following SORM classes are available:
//- Resource: A general resource with no specialisations.
//- Room: A specialisation of the Resource class for rooms.
//- Building: A specialisation of the Resource class for buildings.
//- Location: A specialisation of the Resource class for locations.
//Example:
//You have three resource categories named "Standort", "Gebäude" and "Hörsaal".
//The corresponding SORM classes are "Location", "Building" and "Room".
//To map the resource categories to class names use the following
//values in the array:
//$GLOBALS['RESOURCE_CATEGORY_CLASS_MAPPING'] = [
// 'Standort' => 'Location',
// 'Gebäude' => 'Building',
// 'Hörsaal' => 'Room'
//];
$GLOBALS['RESOURCE_CATEGORY_CLASS_MAPPING'] = [
'Gebäude' => 'Building',
'Hörsaal' => 'Room',
'Übungsraum' => 'Room',
'Gerät' => 'Resource',
];
$GLOBALS['RESOURCE_ADMINISTRATION_PERSON_URL'] = 'https://example.org/person/%s';
$GLOBALS['RESOURCE_MIGRATION_RESOURCE_TREES_TO_BE_DELETED'] = [];
/**
* Whether course bound resource permissions shall be migrated.
* If this is set to false, all course bound permissions are deleted.
* In case this is set to true, all course members get autor permissions
* on that resources where the course had permissions.
*/
$GLOBALS['RESOURCE_MIGRATION_MIGRATE_COURSE_PERMISSIONS'] = true;
/**
* This variable contains the IDs of resource property definitions
* that shall be deleted. If a resource property is listed here,
* its connections to resources, resource requests and resource categories
* are also deleted.
*/
$GLOBALS['RESOURCE_PROPERTIES_TO_BE_DELETED'] = [];
/**
* This variable defines if the resource migration shall migrate
* course bound permissions into the tables of the SpecialResourcesPlugin
* that can handle resources in courses.
*/
$GLOBALS['RESOURCE_MIGRATION_SPECIALRESOURCESPLUGIN'] = false;
/**
* Array explaination:
* The key of an array entry is the old name of the property.
* The value consists of an associative array with the following fields:
* - name: The name of the new property-
* - old_type: The type of the old property.
* - requestable: Whether the property shall be requestable (optional).
* - searchable: Whether the property can be used as search parameter or not
* (optional).
*/
$GLOBALS['RESOURCE_PROPERTIES_TO_BE_MODIFIED'] = [
'Adresse' => [
'name' => 'address',
'old_type' => 'text'
],
'Audio-Anlage' => [
'name' => 'has_loudspeakers',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
],
'Beamer' => [
'name' => 'has_projector',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
],
'behindertengerecht' => [
'name' => 'accessible',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
],
'Dozentenrechner' => [
'name' => 'has_computer',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
],
'Hersteller' => [
'name' => 'manufacturer',
'old_type' => 'select',
'requestable' => true,
'searchable' => true
],
'Inventarnummer' => [
'name' => 'inventory_number',
'old_type' => 'num',
'requestable' => false,
'searchable' => true
],
'Seriennummer' => [
'name' => 'serial_number',
'old_type' => 'num',
'requestable' => false,
'searchable' => true
],
'Sitzplätze' => [
'name' => 'seats',
'old_type' => 'num',
'requestable' => true,
'searchable' => true
],
'Tageslichtprojektor' => [
'name' => 'has_overhead_projector',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
],
'Verdunklung' => [
'name' => 'is_dimmable',
'old_type' => 'bool',
'requestable' => true,
'searchable' => true
]
];
$GLOBALS['RESOURCE_PROPERTIES_TO_BE_MERGED'] = [];
|