Passed
Branch oai_solr_new_directory_structu... (24cd44)
by Erik
04:51
created
modules/newclient/structures.inc.php 1 patch
Spacing   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -11,352 +11,352 @@
 block discarded – undo
11 11
 
12 12
 // Define structure elements.
13 13
 // @see http://dfg-viewer.de/en/structural-data-set/
14
-$structures = array (
15
-    'act' => array (
14
+$structures = array(
15
+    'act' => array(
16 16
         'toplevel' => 1,
17 17
         'oai_name' => '',
18 18
     ),
19
-    'additional' => array (
19
+    'additional' => array(
20 20
         'toplevel' => 0,
21 21
         'oai_name' => ''
22 22
     ),
23
-    'address' => array (
23
+    'address' => array(
24 24
         'toplevel' => 0,
25 25
         'oai_name' => ''
26 26
     ),
27
-    'album' => array (
27
+    'album' => array(
28 28
         'toplevel' => 1,
29 29
         'oai_name' => '',
30 30
     ),
31
-    'annotation' => array (
31
+    'annotation' => array(
32 32
         'toplevel' => 0,
33 33
         'oai_name' => ''
34 34
     ),
35
-    'article' => array (
35
+    'article' => array(
36 36
         'toplevel' => 0,
37 37
         'oai_name' => ''
38 38
     ),
39
-    'atlas' => array (
39
+    'atlas' => array(
40 40
         'toplevel' => 1,
41 41
         'oai_name' => '',
42 42
     ),
43
-    'bachelor_thesis' => array (
43
+    'bachelor_thesis' => array(
44 44
         'toplevel' => 1,
45 45
         'oai_name' => '',
46 46
     ),
47
-    'binding' => array (
47
+    'binding' => array(
48 48
         'toplevel' => 0,
49 49
         'oai_name' => ''
50 50
     ),
51
-    'bookplate' => array (
51
+    'bookplate' => array(
52 52
         'toplevel' => 0,
53 53
         'oai_name' => ''
54 54
     ),
55
-    'cartulary' => array (
55
+    'cartulary' => array(
56 56
         'toplevel' => 1,
57 57
         'oai_name' => '',
58 58
     ),
59
-    'chapter' => array (
59
+    'chapter' => array(
60 60
         'toplevel' => 0,
61 61
         'oai_name' => ''
62 62
     ),
63
-    'collation' => array (
63
+    'collation' => array(
64 64
         'toplevel' => 0,
65 65
         'oai_name' => ''
66 66
     ),
67
-    'colophon' => array (
67
+    'colophon' => array(
68 68
         'toplevel' => 0,
69 69
         'oai_name' => ''
70 70
     ),
71
-    'contained_work' => array (
71
+    'contained_work' => array(
72 72
         'toplevel' => 0,
73 73
         'oai_name' => ''
74 74
     ),
75
-    'contents' => array (
75
+    'contents' => array(
76 76
         'toplevel' => 0,
77 77
         'oai_name' => ''
78 78
     ),
79
-    'corrigenda' => array (
79
+    'corrigenda' => array(
80 80
         'toplevel' => 0,
81 81
         'oai_name' => ''
82 82
     ),
83
-    'cover' => array (
83
+    'cover' => array(
84 84
         'toplevel' => 0,
85 85
         'oai_name' => ''
86 86
     ),
87
-    'cover_front' => array (
87
+    'cover_front' => array(
88 88
         'toplevel' => 0,
89 89
         'oai_name' => ''
90 90
     ),
91
-    'cover_back' => array (
91
+    'cover_back' => array(
92 92
         'toplevel' => 0,
93 93
         'oai_name' => ''
94 94
     ),
95
-    'day' => array (
95
+    'day' => array(
96 96
         'toplevel' => 0,
97 97
         'oai_name' => ''
98 98
     ),
99
-    'dedication' => array (
99
+    'dedication' => array(
100 100
         'toplevel' => 0,
101 101
         'oai_name' => ''
102 102
     ),
103
-    'diploma_thesis' => array (
103
+    'diploma_thesis' => array(
104 104
         'toplevel' => 1,
105 105
         'oai_name' => '',
106 106
     ),
107
-    'doctoral_thesis' => array (
107
+    'doctoral_thesis' => array(
108 108
         'toplevel' => 1,
109 109
         'oai_name' => '',
110 110
     ),
111
-    'document' => array (
111
+    'document' => array(
112 112
         'toplevel' => 1,
113 113
         'oai_name' => '',
114 114
     ),
115
-    'dossier' => array (
115
+    'dossier' => array(
116 116
         'toplevel' => 1,
117 117
         'oai_name' => '',
118 118
     ),
119
-    'edge' => array (
119
+    'edge' => array(
120 120
         'toplevel' => 0,
121 121
         'oai_name' => ''
122 122
     ),
123
-    'endsheet' => array (
123
+    'endsheet' => array(
124 124
         'toplevel' => 0,
125 125
         'oai_name' => ''
126 126
     ),
127
-    'engraved_titlepage' => array (
127
+    'engraved_titlepage' => array(
128 128
         'toplevel' => 0,
129 129
         'oai_name' => ''
130 130
     ),
131
-    'entry' => array (
131
+    'entry' => array(
132 132
         'toplevel' => 0,
133 133
         'oai_name' => ''
134 134
     ),
135
-    'fascicle' => array (
135
+    'fascicle' => array(
136 136
         'toplevel' => 0,
137 137
         'oai_name' => ''
138 138
     ),
139
-    'file' => array (
139
+    'file' => array(
140 140
         'toplevel' => 1,
141 141
         'oai_name' => '',
142 142
     ),
143
-    'folder' => array (
143
+    'folder' => array(
144 144
         'toplevel' => 1,
145 145
         'oai_name' => '',
146 146
     ),
147
-    'fragment' => array (
147
+    'fragment' => array(
148 148
         'toplevel' => 1,
149 149
         'oai_name' => ''
150 150
     ),
151
-    'ground_plan' => array (
151
+    'ground_plan' => array(
152 152
         'toplevel' => 1,
153 153
         'oai_name' => '',
154 154
     ),
155
-    'habilitation_thesis' => array (
155
+    'habilitation_thesis' => array(
156 156
         'toplevel' => 1,
157 157
         'oai_name' => '',
158 158
     ),
159
-    'illustration' => array (
159
+    'illustration' => array(
160 160
         'toplevel' => 0,
161 161
         'oai_name' => ''
162 162
     ),
163
-    'image' => array (
163
+    'image' => array(
164 164
         'toplevel' => 1,
165 165
         'oai_name' => '',
166 166
     ),
167
-    'imprint' => array (
167
+    'imprint' => array(
168 168
         'toplevel' => 0,
169 169
         'oai_name' => ''
170 170
     ),
171
-    'index' => array (
171
+    'index' => array(
172 172
         'toplevel' => 0,
173 173
         'oai_name' => ''
174 174
     ),
175
-    'initial_decoration' => array (
175
+    'initial_decoration' => array(
176 176
         'toplevel' => 0,
177 177
         'oai_name' => ''
178 178
     ),
179
-    'issue' => array (
179
+    'issue' => array(
180 180
         'toplevel' => 0,
181 181
         'oai_name' => ''
182 182
     ),
183
-    'judgement' => array (
183
+    'judgement' => array(
184 184
         'toplevel' => 1,
185 185
         'oai_name' => '',
186 186
     ),
187
-    'land_register' => array (
187
+    'land_register' => array(
188 188
         'toplevel' => 1,
189 189
         'oai_name' => '',
190 190
     ),
191
-    'leaflet' => array (
191
+    'leaflet' => array(
192 192
         'toplevel' => 1,
193 193
         'oai_name' => '',
194 194
     ),
195
-    'lecture' => array (
195
+    'lecture' => array(
196 196
         'toplevel' => 1,
197 197
         'oai_name' => '',
198 198
     ),
199
-    'letter' => array (
199
+    'letter' => array(
200 200
         'toplevel' => 0,
201 201
         'oai_name' => '',
202 202
     ),
203
-    'magister_thesis' => array (
203
+    'magister_thesis' => array(
204 204
         'toplevel' => 1,
205 205
         'oai_name' => '',
206 206
     ),
207
-    'master_thesis' => array (
207
+    'master_thesis' => array(
208 208
         'toplevel' => 1,
209 209
         'oai_name' => '',
210 210
     ),
211
-    'manuscript' => array (
211
+    'manuscript' => array(
212 212
         'toplevel' => 1,
213 213
         'oai_name' => ''
214 214
     ),
215
-    'map' => array (
215
+    'map' => array(
216 216
         'toplevel' => 0,
217 217
         'oai_name' => ''
218 218
     ),
219
-    'monograph' => array (
219
+    'monograph' => array(
220 220
         'toplevel' => 1,
221 221
         'oai_name' => ''
222 222
     ),
223
-    'month' => array (
223
+    'month' => array(
224 224
         'toplevel' => 0,
225 225
         'oai_name' => ''
226 226
     ),
227
-    'multivolume_work' => array (
227
+    'multivolume_work' => array(
228 228
         'toplevel' => 1,
229 229
         'oai_name' => ''
230 230
     ),
231
-    'musical_notation' => array (
231
+    'musical_notation' => array(
232 232
         'toplevel' => 0,
233 233
         'oai_name' => ''
234 234
     ),
235
-    'newspaper' => array (
235
+    'newspaper' => array(
236 236
         'toplevel' => 1,
237 237
         'oai_name' => ''
238 238
     ),
239
-    'note' => array (
239
+    'note' => array(
240 240
         'toplevel' => 0,
241 241
         'oai_name' => '',
242 242
     ),
243
-    'official_notification' => array (
243
+    'official_notification' => array(
244 244
         'toplevel' => 1,
245 245
         'oai_name' => '',
246 246
     ),
247
-    'ornament' => array (
247
+    'ornament' => array(
248 248
         'toplevel' => 0,
249 249
         'oai_name' => ''
250 250
     ),
251
-    'paper' => array (
251
+    'paper' => array(
252 252
         'toplevel' => 1,
253 253
         'oai_name' => '',
254 254
     ),
255
-    'paste_down' => array (
255
+    'paste_down' => array(
256 256
         'toplevel' => 0,
257 257
         'oai_name' => ''
258 258
     ),
259
-    'periodical' => array (
259
+    'periodical' => array(
260 260
         'toplevel' => 1,
261 261
         'oai_name' => ''
262 262
     ),
263
-    'photograph' => array (
263
+    'photograph' => array(
264 264
         'toplevel' => 1,
265 265
         'oai_name' => '',
266 266
     ),
267
-    'plan' => array (
267
+    'plan' => array(
268 268
         'toplevel' => 1,
269 269
         'oai_name' => '',
270 270
     ),
271
-    'poster' => array (
271
+    'poster' => array(
272 272
         'toplevel' => 1,
273 273
         'oai_name' => '',
274 274
     ),
275
-    'preface' => array (
275
+    'preface' => array(
276 276
         'toplevel' => 0,
277 277
         'oai_name' => ''
278 278
     ),
279
-    'preprint' => array (
279
+    'preprint' => array(
280 280
         'toplevel' => 1,
281 281
         'oai_name' => '',
282 282
     ),
283
-    'printed_archives' => array (
283
+    'printed_archives' => array(
284 284
         'toplevel' => 1,
285 285
         'oai_name' => '',
286 286
     ),
287
-    'printers_mark' => array (
287
+    'printers_mark' => array(
288 288
         'toplevel' => 0,
289 289
         'oai_name' => ''
290 290
     ),
291
-    'privileges' => array (
291
+    'privileges' => array(
292 292
         'toplevel' => 0,
293 293
         'oai_name' => ''
294 294
     ),
295
-    'proceeding' => array (
295
+    'proceeding' => array(
296 296
         'toplevel' => 1,
297 297
         'oai_name' => '',
298 298
     ),
299
-    'provenance' => array (
299
+    'provenance' => array(
300 300
         'toplevel' => 0,
301 301
         'oai_name' => ''
302 302
     ),
303
-    'register' => array (
303
+    'register' => array(
304 304
         'toplevel' => 1,
305 305
         'oai_name' => '',
306 306
     ),
307
-    'report' => array (
307
+    'report' => array(
308 308
         'toplevel' => 1,
309 309
         'oai_name' => '',
310 310
     ),
311
-    'research_paper' => array (
311
+    'research_paper' => array(
312 312
         'toplevel' => 1,
313 313
         'oai_name' => '',
314 314
     ),
315
-    'scheme' => array (
315
+    'scheme' => array(
316 316
         'toplevel' => 0,
317 317
         'oai_name' => ''
318 318
     ),
319
-    'seal' => array (
319
+    'seal' => array(
320 320
         'toplevel' => 0,
321 321
         'oai_name' => '',
322 322
     ),
323
-    'section' => array (
323
+    'section' => array(
324 324
         'toplevel' => 0,
325 325
         'oai_name' => ''
326 326
     ),
327
-    'spine' => array (
327
+    'spine' => array(
328 328
         'toplevel' => 0,
329 329
         'oai_name' => ''
330 330
     ),
331
-    'stamp' => array (
331
+    'stamp' => array(
332 332
         'toplevel' => 0,
333 333
         'oai_name' => ''
334 334
     ),
335
-    'study' => array (
335
+    'study' => array(
336 336
         'toplevel' => 1,
337 337
         'oai_name' => '',
338 338
     ),
339
-    'table' => array (
339
+    'table' => array(
340 340
         'toplevel' => 0,
341 341
         'oai_name' => ''
342 342
     ),
343
-    'text' => array (
343
+    'text' => array(
344 344
         'toplevel' => 0,
345 345
         'oai_name' => ''
346 346
     ),
347
-    'title_page' => array (
347
+    'title_page' => array(
348 348
         'toplevel' => 0,
349 349
         'oai_name' => ''
350 350
     ),
351
-    'verse' => array (
351
+    'verse' => array(
352 352
         'toplevel' => 0,
353 353
         'oai_name' => ''
354 354
     ),
355
-    'volume' => array (
355
+    'volume' => array(
356 356
         'toplevel' => 1,
357 357
         'oai_name' => ''
358 358
     ),
359
-    'year' => array (
359
+    'year' => array(
360 360
         'toplevel' => 1,
361 361
         'oai_name' => ''
362 362
     )
Please login to merge, or discard this patch.
modules/newclient/index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected $modPath = 'newclient/';
23 23
 
24
-    protected $buttonArray = array (
24
+    protected $buttonArray = array(
25 25
         'SHORTCUT' => '',
26 26
     );
27 27
 
28
-    protected $markerArray = array (
28
+    protected $markerArray = array(
29 29
         'CSH' => '',
30 30
         'MOD_MENU' => '',
31 31
         'CONTENT' => '',
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         // Build data array.
93 93
         foreach ($metadata as $index_name => $values) {
94 94
 
95
-            $formatIds = array ();
95
+            $formatIds = array();
96 96
 
97 97
             foreach ($values['format'] as $format) {
98 98
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
             }
108 108
 
109
-            $data['tx_dlf_metadata'][uniqid('NEW')] = array (
109
+            $data['tx_dlf_metadata'][uniqid('NEW')] = array(
110 110
                 'pid' => intval($this->id),
111 111
                 'label' => $GLOBALS['LANG']->getLL($index_name),
112 112
                 'index_name' => $index_name,
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     protected function cmdAddSolrCore() {
169 169
 
170 170
         // Build data array.
171
-        $data['tx_dlf_solrcores'][uniqid('NEW')] = array (
171
+        $data['tx_dlf_solrcores'][uniqid('NEW')] = array(
172 172
             'pid' => intval($this->id),
173 173
             'label' => $GLOBALS['LANG']->getLL('solrcore').' (PID '.$this->id.')',
174 174
             'index_name' => '',
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         // Build data array.
221 221
         foreach ($structures as $index_name => $values) {
222 222
 
223
-            $data['tx_dlf_structures'][uniqid('NEW')] = array (
223
+            $data['tx_dlf_structures'][uniqid('NEW')] = array(
224 224
                 'pid' => intval($this->id),
225 225
                 'toplevel' => $values['toplevel'],
226 226
                 'label' => $GLOBALS['LANG']->getLL($index_name),
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
             } else {
336 336
 
337 337
                 // Configuration missing.
338
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addStructure')));
338
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addStructure')));
339 339
 
340 340
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
341 341
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
             } else {
371 371
 
372 372
                 // Configuration missing.
373
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addMetadata')));
373
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addMetadata')));
374 374
 
375 375
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
376 376
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
                 } else {
410 410
 
411 411
                     // Configuration missing.
412
-                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addAccessRights')));
412
+                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addAccessRights')));
413 413
 
414 414
                     $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
415 415
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 } else {
462 462
 
463 463
                     // Default core available, but this is deprecated.
464
-                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore')));
464
+                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore')));
465 465
 
466 466
                     $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
467 467
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
             } else {
477 477
 
478 478
                 // Solr core missing.
479
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore')));
479
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore')));
480 480
 
481 481
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
482 482
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
Please login to merge, or discard this patch.
modules/newclient/metadata.inc.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 
12 12
 // Define metadata elements.
13 13
 // @see http://dfg-viewer.de/en/profile-of-the-metadata/
14
-$metadata = array (
15
-    'type' => array (
16
-        'format' => array (),
14
+$metadata = array(
15
+    'type' => array(
16
+        'format' => array(),
17 17
         'default_value' => '',
18 18
         'wrap' => '',
19 19
         'index_tokenized' => 0,
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
         'is_listed' => 1,
26 26
         'index_autocomplete' => 0,
27 27
     ),
28
-    'title' => array (
29
-        'format' => array (
30
-            array (
28
+    'title' => array(
29
+        'format' => array(
30
+            array(
31 31
                 'encoded' => 1,
32 32
                 'xpath' => 'concat(./mods:titleInfo/mods:nonSort," ",./mods:titleInfo/mods:title)',
33 33
                 'xpath_sorting' => './mods:titleInfo/mods:title',
34 34
             ),
35
-            array (
35
+            array(
36 36
                 'encoded' => 2,
37 37
                 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:note[@type="caption"]',
38 38
                 'xpath_sorting' => '',
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
         'is_listed' => 1,
50 50
         'index_autocomplete' => 1,
51 51
     ),
52
-    'volume' => array (
53
-        'format' => array (
54
-            array (
52
+    'volume' => array(
53
+        'format' => array(
54
+            array(
55 55
                 'encoded' => 1,
56 56
                 'xpath' => './mods:part/mods:detail/mods:number',
57 57
                 'xpath_sorting' => './mods:part[@type="host"]/@order',
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
         'is_listed' => 1,
69 69
         'index_autocomplete' => 0,
70 70
     ),
71
-    'author' => array (
72
-        'format' => array (
73
-            array (
71
+    'author' => array(
72
+        'format' => array(
73
+            array(
74 74
                 'encoded' => 2,
75 75
                 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:name',
76 76
                 'xpath_sorting' => '',
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
         'is_listed' => 1,
88 88
         'index_autocomplete' => 1,
89 89
     ),
90
-    'place' => array (
91
-        'format' => array (
92
-            array (
90
+    'place' => array(
91
+        'format' => array(
92
+            array(
93 93
                 'encoded' => 2,
94 94
                 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origPlace',
95 95
                 'xpath_sorting' => '',
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
         'is_listed' => 1,
107 107
         'index_autocomplete' => 0,
108 108
     ),
109
-    'year' => array (
110
-        'format' => array (
111
-            array (
109
+    'year' => array(
110
+        'format' => array(
111
+            array(
112 112
                 'encoded' => 2,
113 113
                 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origDate',
114 114
                 'xpath_sorting' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origDate/@when',
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
         'is_listed' => 1,
126 126
         'index_autocomplete' => 0,
127 127
     ),
128
-    'language' => array (
129
-        'format' => array (
130
-            array (
128
+    'language' => array(
129
+        'format' => array(
130
+            array(
131 131
                 'encoded' => 1,
132 132
                 'xpath' => './mods:language/mods:languageTerm',
133 133
                 'xpath_sorting' => '',
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
         'is_listed' => 0,
145 145
         'index_autocomplete' => 0,
146 146
     ),
147
-    'collection' => array (
148
-        'format' => array (
149
-            array (
147
+    'collection' => array(
148
+        'format' => array(
149
+            array(
150 150
                 'encoded' => 1,
151 151
                 'xpath' => './mods:classification',
152 152
                 'xpath_sorting' => '',
153 153
             ),
154
-            array (
154
+            array(
155 155
                 'encoded' => 2,
156 156
                 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:msIdentifier/teihdr:collection',
157 157
                 'xpath_sorting' => '',
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
         'is_listed' => 0,
169 169
         'index_autocomplete' => 0,
170 170
     ),
171
-    'owner' => array (
172
-        'format' => array (
173
-            array (
171
+    'owner' => array(
172
+        'format' => array(
173
+            array(
174 174
                 'encoded' => 1,
175 175
                 'xpath' => './mods:name[./mods:role/mods:roleTerm="own"]/mods:displayForm',
176 176
                 'xpath_sorting' => '',
177 177
             ),
178
-            array (
178
+            array(
179 179
                 'encoded' => 2,
180 180
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:publisher',
181 181
                 'xpath_sorting' => '',
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
         'is_listed' => 0,
193 193
         'index_autocomplete' => 0,
194 194
     ),
195
-    'purl' => array (
196
-        'format' => array (
197
-            array (
195
+    'purl' => array(
196
+        'format' => array(
197
+            array(
198 198
                 'encoded' => 1,
199 199
                 'xpath' => './mods:identifier[@type="purl"]',
200 200
                 'xpath_sorting' => '',
201 201
             ),
202
-            array (
202
+            array(
203 203
                 'encoded' => 2,
204 204
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="purl"]',
205 205
                 'xpath_sorting' => '',
@@ -216,14 +216,14 @@  discard block
 block discarded – undo
216 216
         'is_listed' => 0,
217 217
         'index_autocomplete' => 0,
218 218
     ),
219
-    'urn' => array (
220
-        'format' => array (
221
-            array (
219
+    'urn' => array(
220
+        'format' => array(
221
+            array(
222 222
                 'encoded' => 1,
223 223
                 'xpath' => './mods:identifier[@type="urn"]',
224 224
                 'xpath_sorting' => '',
225 225
             ),
226
-            array (
226
+            array(
227 227
                 'encoded' => 2,
228 228
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="urn"]',
229 229
                 'xpath_sorting' => '',
@@ -240,14 +240,14 @@  discard block
 block discarded – undo
240 240
         'is_listed' => 0,
241 241
         'index_autocomplete' => 0,
242 242
     ),
243
-    'opac_id' => array (
244
-        'format' => array (
245
-            array (
243
+    'opac_id' => array(
244
+        'format' => array(
245
+            array(
246 246
                 'encoded' => 1,
247 247
                 'xpath' => './mods:identifier[@type="opac"]',
248 248
                 'xpath_sorting' => '',
249 249
             ),
250
-            array (
250
+            array(
251 251
                 'encoded' => 2,
252 252
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="opac"]',
253 253
                 'xpath_sorting' => '',
@@ -264,14 +264,14 @@  discard block
 block discarded – undo
264 264
         'is_listed' => 0,
265 265
         'index_autocomplete' => 0,
266 266
     ),
267
-    'union_id' => array (
268
-        'format' => array (
269
-            array (
267
+    'union_id' => array(
268
+        'format' => array(
269
+            array(
270 270
                 'encoded' => 1,
271 271
                 'xpath' => './mods:identifier[@type="ppn"]',
272 272
                 'xpath_sorting' => '',
273 273
             ),
274
-            array (
274
+            array(
275 275
                 'encoded' => 2,
276 276
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="mmid"]',
277 277
                 'xpath_sorting' => '',
@@ -288,14 +288,14 @@  discard block
 block discarded – undo
288 288
         'is_listed' => 0,
289 289
         'index_autocomplete' => 0,
290 290
     ),
291
-    'record_id' => array (
292
-        'format' => array (
293
-            array (
291
+    'record_id' => array(
292
+        'format' => array(
293
+            array(
294 294
                 'encoded' => 1,
295 295
                 'xpath' => './mods:recordInfo/mods:recordIdentifier',
296 296
                 'xpath_sorting' => '',
297 297
             ),
298
-            array (
298
+            array(
299 299
                 'encoded' => 2,
300 300
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="recordIdentifier"]',
301 301
                 'xpath_sorting' => '',
@@ -312,14 +312,14 @@  discard block
 block discarded – undo
312 312
         'is_listed' => 0,
313 313
         'index_autocomplete' => 0,
314 314
     ),
315
-    'prod_id' => array (
316
-        'format' => array (
317
-            array (
315
+    'prod_id' => array(
316
+        'format' => array(
317
+            array(
318 318
                 'encoded' => 1,
319 319
                 'xpath' => './mods:identifier[@type="goobi"]',
320 320
                 'xpath_sorting' => '',
321 321
             ),
322
-            array (
322
+            array(
323 323
                 'encoded' => 2,
324 324
                 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="goobi"]',
325 325
                 'xpath_sorting' => '',
Please login to merge, or discard this patch.
modules/indexing/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected $modPath = 'indexing/';
23 23
 
24
-    protected $buttonArray = array (
24
+    protected $buttonArray = array(
25 25
         'SHORTCUT' => '',
26 26
     );
27 27
 
28
-    protected $markerArray = array (
28
+    protected $markerArray = array(
29 29
         'CSH' => '',
30 30
         'MOD_MENU' => '',
31 31
         'CONTENT' => '',
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $this->list->save();
163 163
 
164 164
         // Save document to database and index.
165
-        $doc =& tx_dlf_document::getInstance($uid, 0, TRUE);
165
+        $doc = & tx_dlf_document::getInstance($uid, 0, TRUE);
166 166
 
167 167
         if ($doc->ready) {
168 168
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $this->markerArray['CONTENT'] .= $_message->render();
183 183
 
184 184
         // Start next loop.
185
-        $this->markerArray['CONTENT'] .= '<script type="text/javascript">window.location.href=unescape("'.\TYPO3\CMS\Core\Utility\GeneralUtility::rawUrlEncodeJS(\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'indexLoop', $this->prefixId => array ('core' => $this->data['core']), 'random' => uniqid())))).'");</script>';
185
+        $this->markerArray['CONTENT'] .= '<script type="text/javascript">window.location.href=unescape("'.\TYPO3\CMS\Core\Utility\GeneralUtility::rawUrlEncodeJS(\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'indexLoop', $this->prefixId => array('core' => $this->data['core']), 'random' => uniqid())))).'");</script>';
186 186
 
187 187
         $this->printContent();
188 188
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                         && \TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($this->data['id'])) {
220 220
 
221 221
                         // Save document to database and index.
222
-                        $doc =& tx_dlf_document::getInstance($this->data['id'], $this->id, TRUE);
222
+                        $doc = & tx_dlf_document::getInstance($this->data['id'], $this->id, TRUE);
223 223
 
224 224
                         if ($doc->ready) {
225 225
 
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
                         }
277 277
 
278 278
                         // Save them as a list object in user's session.
279
-                        $elements = array ();
279
+                        $elements = array();
280 280
 
281 281
                         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($_result)) {
282 282
 
283
-                            $elements[] = array ($resArray['uid'], $resArray['title']);
283
+                            $elements[] = array($resArray['uid'], $resArray['title']);
284 284
 
285 285
                         }
286 286
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
      */
368 368
     protected function setMOD_MENU() {
369 369
 
370
-        $this->MOD_MENU = array (
371
-            'function' => array (
370
+        $this->MOD_MENU = array(
371
+            'function' => array(
372 372
                 'indexFile' => $GLOBALS['LANG']->getLL('function.indexFile'),
373 373
                 //'reindexDoc' => $GLOBALS['LANG']->getLL('function.reindexDoc'),
374 374
                 'reindexDocs' => $GLOBALS['LANG']->getLL('function.reindexDocs'),
Please login to merge, or discard this patch.
ext_autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 $extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('dlf');
13 13
 
14
-return array (
14
+return array(
15 15
     'tx_dlf_cli' => $extensionPath.'cli/class.tx_dlf_cli.php',
16 16
     'tx_dlf_alto' => $extensionPath.'common/class.tx_dlf_alto.php',
17 17
     'tx_dlf_document' => $extensionPath.'common/class.tx_dlf_document.php',
Please login to merge, or discard this patch.
common/class.tx_dlf_module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @var	array
47 47
      * @access protected
48 48
      */
49
-    protected $buttonArray = array ();
49
+    protected $buttonArray = array();
50 50
 
51 51
     /**
52 52
      * Holds the module's marker array
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @var	array
55 55
      * @access protected
56 56
      */
57
-    protected $markerArray = array ();
57
+    protected $markerArray = array();
58 58
 
59 59
     /**
60 60
      * Holds the module's subpart array
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @var	array
63 63
      * @access protected
64 64
      */
65
-    protected $subpartArray = array ();
65
+    protected $subpartArray = array();
66 66
 
67 67
     /**
68 68
      * Holds the TYPO3_CONF_VARS array of this extension
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @var	array
71 71
      * @access protected
72 72
      */
73
-    protected $conf = array ();
73
+    protected $conf = array();
74 74
 
75 75
     /**
76 76
      * Holds the submitted form's data
Please login to merge, or discard this patch.
common/class.tx_dlf_indexing.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
      * @var	array
35 35
      * @access protected
36 36
      */
37
-    protected static $fields = array (
38
-        'autocomplete' => array (),
39
-        'facets' => array (),
40
-        'sortables' => array (),
41
-        'indexed' => array (),
42
-        'stored' => array (),
43
-        'tokenized' => array (),
44
-        'fieldboost' => array ()
37
+    protected static $fields = array(
38
+        'autocomplete' => array(),
39
+        'facets' => array(),
40
+        'sortables' => array(),
41
+        'indexed' => array(),
42
+        'stored' => array(),
43
+        'tokenized' => array(),
44
+        'fieldboost' => array()
45 45
     );
46 46
 
47 47
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @var	array
60 60
      * @access protected
61 61
      */
62
-    protected static $processedDocs = array ();
62
+    protected static $processedDocs = array();
63 63
 
64 64
     /**
65 65
      * Instance of Apache_Solr_Service class
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @var	array
77 77
      * @access protected
78 78
      */
79
-    protected static $toplevel = array ();
79
+    protected static $toplevel = array();
80 80
 
81 81
     /**
82 82
      * Insert given document into Solr index
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             // Handle multi-volume documents.
102 102
             if ($doc->parentId) {
103 103
 
104
-                $parent =& tx_dlf_document::getInstance($doc->parentId, 0, TRUE);
104
+                $parent = & tx_dlf_document::getInstance($doc->parentId, 0, TRUE);
105 105
 
106 106
                 if ($parent->ready) {
107 107
 
@@ -595,13 +595,13 @@  discard block
 block discarded – undo
595 595
 
596 596
             $solrDoc->setField('purl', $metadata['purl'][0]);
597 597
 
598
-            $solrDoc->setField('location',$doc->location);
598
+            $solrDoc->setField('location', $doc->location);
599 599
 
600 600
             $solrDoc->setField('urn', $metadata['urn']);
601 601
 
602 602
             $solrDoc->setField('collection', $metadata['collection']);
603 603
 
604
-            $autocomplete = array ();
604
+            $autocomplete = array();
605 605
 
606 606
             foreach ($metadata as $index_name => $data) {
607 607
 
Please login to merge, or discard this patch.
common/class.tx_dlf_mods.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
                 } elseif (($nameParts = $authors[$i]->xpath('./mods:namePart'))) {
59 59
 
60
-                    $name = array ();
60
+                    $name = array();
61 61
 
62 62
                     $k = 4;
63 63
 
Please login to merge, or discard this patch.
common/class.tx_dlf_solr.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @var	array
67 67
      * @access protected
68 68
      */
69
-    protected $params = array ();
69
+    protected $params = array();
70 70
 
71 71
     /**
72 72
      * Is the search instantiated successfully?
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @var	array(tx_dlf_solr)
83 83
      * @access protected
84 84
      */
85
-    protected static $registry = array ();
85
+    protected static $registry = array();
86 86
 
87 87
     /**
88 88
      * This holds the Solr service object
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         if (preg_match('/^[[:alnum:]]+_[tu][su]i:\(?.*\)?$/', $query)) {
140 140
 
141 141
             // Get all indexed fields.
142
-            $fields = array ();
142
+            $fields = array();
143 143
 
144 144
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
145 145
                 'tx_dlf_metadata.index_name,tx_dlf_metadata.index_tokenized,tx_dlf_metadata.index_stored',
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public static function getSolrConnectionInfo($core = '') {
264 264
 
265
-        $solrInfo = array ();
265
+        $solrInfo = array();
266 266
 
267 267
         // Extract extension configuration.
268 268
         $conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][self::$extKey]);
@@ -348,9 +348,9 @@  discard block
 block discarded – undo
348 348
 
349 349
         $this->numberOfHits = count($results->response->docs);
350 350
 
351
-        $toplevel = array ();
351
+        $toplevel = array();
352 352
 
353
-        $checks = array ();
353
+        $checks = array();
354 354
 
355 355
         // Get metadata configuration.
356 356
         if ($this->numberOfHits > 0) {
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
                 ''
365 365
             );
366 366
 
367
-            $sorting = array ();
367
+            $sorting = array();
368 368
 
369 369
             while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
370 370
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             if ($doc->toplevel == 1) {
385 385
 
386 386
                 // Prepare document's metadata for sorting.
387
-                $docSorting = array ();
387
+                $docSorting = array();
388 388
 
389 389
                 foreach ($sorting as $index_name => $solr_name) {
390 390
 
@@ -403,16 +403,16 @@  discard block
 block discarded – undo
403 403
 
404 404
                 }
405 405
 
406
-                $toplevel[$doc->uid] = array (
406
+                $toplevel[$doc->uid] = array(
407 407
                     'u' => $doc->uid,
408 408
                     'h' => '',
409 409
                     's' => $docSorting,
410
-                    'p' => (!empty($toplevel[$doc->uid]['p']) ? $toplevel[$doc->uid]['p'] : array ())
410
+                    'p' => (!empty($toplevel[$doc->uid]['p']) ? $toplevel[$doc->uid]['p'] : array())
411 411
                 );
412 412
 
413 413
             } else {
414 414
 
415
-                $toplevel[$doc->uid]['p'][] = array (
415
+                $toplevel[$doc->uid]['p'][] = array(
416 416
                     'u' => $doc->id,
417 417
                     'h' => (!empty($results->highlighting->{$doc->id}->fulltext) ? $results->highlighting->{$doc->id}->fulltext[0] : '')
418 418
                 );
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 
485 485
                     }
486 486
 
487
-                    $toplevel[$check] = array (
487
+                    $toplevel[$check] = array(
488 488
                         'u' => $resArray['uid'],
489 489
                         'h' => '',
490 490
                         's' => $sorting,
@@ -510,10 +510,10 @@  discard block
 block discarded – undo
510 510
         $list->add(array_values($toplevel));
511 511
 
512 512
         // Set metadata for search.
513
-        $list->metadata = array (
513
+        $list->metadata = array(
514 514
             'label' => '',
515 515
             'description' => '',
516
-            'options' => array (
516
+            'options' => array(
517 517
                 'source' => 'search',
518 518
                 'engine' => 'solr',
519 519
                 'select' => $query,
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      */
542 542
     public function search_raw($query = '', $parameters = array())
543 543
     {
544
-        $solr_response = $this->service->search((string)$query, 0, $this->limit, array_merge($this->params, $parameters));
544
+        $solr_response = $this->service->search((string) $query, 0, $this->limit, array_merge($this->params, $parameters));
545 545
 
546 546
         $searchresult = array();
547 547
 
Please login to merge, or discard this patch.