~slub.team/goobi-presentation/old-bzr-trunk

« back to all changes in this revision

Viewing changes to dlf/tca.php

  • Committer: Henrik Lochmann
  • Date: 2012-07-24 13:16:02 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: dev@mentalmotive.com-20120724131602-j60g58mg0bu2uflq
- 'thumbnail_usi' > 'thumbnail'

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        'ctrl' => $TCA['tx_dlf_documents']['ctrl'],
29
29
        'interface' => array (
30
30
                'showRecordFieldList' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
31
 
                'maxDBListItems' => 25,
32
 
                'maxSingleDBListItems' => 50,
 
31
                'maxDBListItems' => 50,
 
32
                'maxSingleDBListItems' => 250,
33
33
        ),
34
34
        'feInterface' => $TCA['tx_dlf_documents']['feInterface'],
35
35
        'columns' => array (
41
41
                                'default' => 0,
42
42
                        ),
43
43
                ),
44
 
                'starttime' => array (
45
 
                        'exclude' => 1,
46
 
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
47
 
                        'config' => array (
48
 
                                'type' => 'input',
49
 
                                'size' => '13',
50
 
                                'max' => '20',
51
 
                                'eval' => 'datetime',
52
 
                                'default' => '0',
53
 
                        ),
54
 
                ),
55
 
                'endtime' => array (
56
 
                        'exclude' => 1,
57
 
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
58
 
                        'config' => array (
59
 
                                'type' => 'input',
60
 
                                'size' => '13',
61
 
                                'max' => '20',
62
 
                                'eval' => 'datetime',
63
 
                                'default' => '0',
64
 
                        ),
65
 
                ),
66
44
                'fe_group' => array (
67
45
                        'exclude' => 1,
68
46
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
181
159
                                'eval' => 'trim',
182
160
                        ),
183
161
                ),
 
162
                'author_sorting' => array (
 
163
                        'exclude' => 1,
 
164
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author_sorting',
 
165
                        'config' => array (
 
166
                                'type' => 'input',
 
167
                                'size' => 30,
 
168
                                'max' => 255,
 
169
                                'eval' => 'trim',
 
170
                        ),
 
171
                ),
184
172
                'year' => array (
185
173
                        'exclude' => 1,
186
174
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year',
191
179
                                'eval' => 'trim',
192
180
                        ),
193
181
                ),
 
182
                'year_sorting' => array (
 
183
                        'exclude' => 1,
 
184
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year_sorting',
 
185
                        'config' => array (
 
186
                                'type' => 'input',
 
187
                                'size' => 30,
 
188
                                'max' => 255,
 
189
                                'eval' => 'trim',
 
190
                        ),
 
191
                ),
194
192
                'place' => array (
195
193
                        'exclude' => 1,
196
194
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place',
201
199
                                'eval' => 'trim',
202
200
                        ),
203
201
                ),
204
 
                'thumbnail' => array (
 
202
                'place_sorting' => array (
205
203
                        'exclude' => 1,
206
 
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.thumbnail',
207
 
                        'config' => array (
208
 
                                'type' => 'user',
209
 
                                'userFunc' => 'EXT:dlf/hooks/class.tx_dlf_tceforms.php:tx_dlf_tceforms->displayThumbnail',
210
 
                        ),
211
 
                ),
 
204
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place_sorting',
 
205
                        'config' => array (
 
206
                                'type' => 'input',
 
207
                                'size' => 30,
 
208
                                'max' => 255,
 
209
                                'eval' => 'trim',
 
210
                        ),
 
211
                ),
212
212
                'metadata' => array (
213
213
                        'config' => array (
214
214
                                'type' => 'passthrough',
215
215
                        ),
216
216
                ),
217
 
                'metadata_sorting' => array (
218
 
                        'config' => array (
219
 
                                'type' => 'passthrough',
220
 
                        ),
221
 
                ),
222
217
                'structure' => array (
223
218
                        'exclude' => 1,
224
219
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.structure',
232
227
                        ),
233
228
                ),
234
229
                'partof' => array (
235
 
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof',
236
230
                        'config' => array (
237
 
                                'type' => 'group',
238
 
                                'internal_type' => 'db',
239
 
                                'allowed' => 'tx_dlf_documents',
240
 
                                'prepend_tname' => 0,
241
 
                                'size' => 1,
242
 
                                'selectedListStyle' => 'width:400px;',
243
 
                                'minitems' => 0,
244
 
                                'maxitems' => 1,
245
 
                                'disable_controls' => 'browser,delete',
246
 
                                'default' => 0,
247
 
                                'readOnly' => 1,
 
231
                                'type' => 'passthrough',
248
232
                        ),
 
233
// This results in really long loading times because a list of all available documents is rendered.
 
234
//                      'exclude' => 1,
 
235
//                      'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof',
 
236
//                      'config' => array (
 
237
//                              'type' => 'select',
 
238
//                              'items' => array (
 
239
//                                      array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof.none', 0),
 
240
//                              ),
 
241
//                              'foreign_table' => 'tx_dlf_documents',
 
242
//                              'foreign_table_where' => 'AND tx_dlf_documents.pid=###CURRENT_PID### ORDER BY tx_dlf_documents.title_sorting',
 
243
//                              'size' => 1,
 
244
//                              'minitems' => 1,
 
245
//                              'maxitems' => 1,
 
246
//                              'default' => 0,
 
247
//                      ),
249
248
                ),
250
249
                'volume' => array (
251
250
                        'exclude' => 1,
315
314
                                'default' => 0,
316
315
                        ),
317
316
                ),
 
317
                'thumbnail' => array (
 
318
                                'exclude' => 1,
 
319
                                'config' => array (
 
320
                                                'type' => 'passthrough',
 
321
                                ),
 
322
                ),
318
323
        ),
319
324
        'types' => array (
320
 
                '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab1, title;;1;;1-1-1, author, year, place, structure;;2;;2-2-2, collections;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab2, location;;;;1-1-1, record_id, prod_id;;;;2-2-2, oai_id;;;;3-3-3, opac_id, union_id, urn, purl;;;;4-4-4, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab3, hidden;;3;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4'),
 
325
                '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab1, title;;1;;1-1-1, author;;2, year;;3, place;;4, structure;;5;;2-2-2, collections;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab2, location;;;;1-1-1, record_id, prod_id;;;;2-2-2, oai_id;;;;3-3-3, opac_id, union_id, urn, purl;;;;4-4-4, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4'),
321
326
        ),
322
327
        'palettes' => array (
323
 
                '1' => array ('showitem' => 'title_sorting', 'thumbnail', 'canNotCollapse' => 1),
324
 
                '2' => array ('showitem' => 'partof, --linebreak--, volume, volume_sorting', 'canNotCollapse' => 1),
325
 
                '3' => array ('showitem' => 'starttime, endtime', 'canNotCollapse' => 1),
 
328
                '1' => array ('showitem' => 'title_sorting', 'canNotCollapse' => 1),
 
329
                '2' => array ('showitem' => 'author_sorting', 'canNotCollapse' => 1),
 
330
                '3' => array ('showitem' => 'year_sorting', 'canNotCollapse' => 1),
 
331
                '4' => array ('showitem' => 'place_sorting', 'canNotCollapse' => 1),
 
332
                '5' => array ('showitem' => 'partof, --linebreak--, volume, volume_sorting', 'canNotCollapse' => 1),
326
333
        ),
327
334
);
328
335
 
397
404
                                'type' => 'input',
398
405
                                'size' => 30,
399
406
                                'max' => 255,
400
 
                                'eval' => 'required,nospace,alphanum_x,uniqueInPid',
 
407
                                'eval' => 'required,nospace,alphanum_x',
401
408
                        ),
402
409
                ),
403
410
                'oai_name' => array (
411
418
                        ),
412
419
                ),
413
420
                'thumbnail' => array (
414
 
                        'exclude' => 1,
415
 
                        'displayCond' => 'FIELD:toplevel:REQ:true',
416
 
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.thumbnail',
417
 
                        'config' => array (
418
 
                                'type' => 'check',
419
 
                                'default' => 0,
420
 
                        ),
 
421
                                'exclude' => 1,
 
422
                                'label' => 'Show Thumbnail',
 
423
                                'config' => array (
 
424
                                                'type' => 'check',
 
425
                                                'default' => 0,
 
426
                                ),
421
427
                ),
422
 
                'thumbnail_strct' => array (
423
 
                        'exclude' => 1,
424
 
                        'displayCond' => 'FIELD:thumbnail:REQ:true',
425
 
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.thumbnail_strct',
426
 
                        'config' => array (
427
 
                                'type' => 'select',
428
 
                                'items' => array (
429
 
                                        array ('LLL:EXT:dlf/locallang.xml:tx_dlf_structures.thumbnail_strct.self', 0),
430
 
                                ),
431
 
                                'foreign_table' => 'tx_dlf_structures',
432
 
                                'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.toplevel=0 AND tx_dlf_structures.sys_language_uid IN (-1,0) ORDER BY tx_dlf_structures.label ',
433
 
                        ),
434
 
                        'minitems' => 0,
435
 
                        'maxitems' => 1,
436
 
                        'default' => 0,
 
428
                'thumbnail_source' => array (
 
429
                                'exclude' => 1,
 
430
                                'label' => 'Thumbnail Source',
 
431
                                'config' => array (
 
432
                                                'type' => 'select',
 
433
                                                'items' => array (
 
434
                                                        array ('[This Element]', 0),
 
435
                                                ),
 
436
                                                'foreign_table' => 'tx_dlf_structures',
 
437
                                                'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.toplevel=0',
 
438
                                ),
437
439
                ),
438
440
                'status' => array (
439
441
                        'exclude' => 1,
522
524
                                'type' => 'input',
523
525
                                'size' => 30,
524
526
                                'max' => 255,
525
 
                                'eval' => 'required,nospace,alphanum_x,uniqueInPid',
 
527
                                'eval' => 'required,nospace,alphanum_x',
526
528
                        ),
527
529
                ),
528
530
                'encoded' => array (
580
582
                                'cols' => 48,
581
583
                                'rows' => 20,
582
584
                                'wrap' => 'off',
583
 
                                'eval' => 'trim',
584
 
                                'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>",
 
585
                                'eval' => 'required,trim',
 
586
                                'default' => "key.wrap = <dt>|</dt>\nvalue.wrap = <dd>|</dd>",
585
587
                        ),
586
588
                        'defaultExtras' => 'nowrap:fixed-font:enable-tab',
587
589
                ),
644
646
                                'default' => 0,
645
647
                        ),
646
648
                ),
647
 
                'autocomplete' => array (
648
 
                        'exlude' => 1,
649
 
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.autocomplete',
650
 
                        'config' => array (
651
 
                                'type' => 'check',
652
 
                                'default' => 0,
653
 
                        ),
654
 
                ),
655
649
                'status' => array (
656
650
                        'exclude' => 1,
657
651
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status',
671
665
                '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab1, label;;1;;1-1-1, encoded;;;;2-2-2, xpath, xpath_sorting, default_value;;;;3-3-3, wrap, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab3, hidden;;;;1-1-1, status;;;;2-2-2'),
672
666
        ),
673
667
        'palettes' => array (
674
 
                '1' => array ('showitem' => 'index_name, --linebreak--, tokenized, stored, indexed, boost, --linebreak--, is_sortable, is_facet, is_listed, autocomplete', 'canNotCollapse' => 1),
 
668
                '1' => array ('showitem' => 'index_name, --linebreak--, tokenized, stored, indexed, boost, --linebreak--, is_sortable, is_facet, is_listed', 'canNotCollapse' => 1),
675
669
        ),
676
670
);
677
671
 
691
685
                                'eval' => 'required,nospace,alphanum_x,unique',
692
686
                        ),
693
687
                ),
 
688
                'other_type' => array (
 
689
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.other_type',
 
690
                        'config' => array (
 
691
                                'type' => 'check',
 
692
                                'default' => 0,
 
693
                        ),
 
694
                ),
694
695
                'root' => array (
695
696
                        'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.root',
696
697
                        'config' => array (
715
716
                                'type' => 'input',
716
717
                                'size' => 30,
717
718
                                'max' => 1024,
718
 
                                'eval' => 'nospace,alphanum_x,unique',
 
719
                                'eval' => 'required,nospace,alphanum_x,unique',
719
720
                        ),
720
721
                ),
721
722
        ),
722
723
        'types' => array (
723
 
                '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_formats.tab1, type;;;;1-1-1, root;;;;2-2-2, namespace, class;;;;3-3-3'),
 
724
                '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_formats.tab1, type;;;;1-1-1, other, root;;;;2-2-2, namespace, class;;;;3-3-3'),
724
725
        ),
725
726
        'palettes' => array (
726
727
                '1' => array ('showitem' => ''),
740
741
                                'type' => 'input',
741
742
                                'size' => 30,
742
743
                                'max' => 255,
743
 
                                'eval' => 'required,trim',
 
744
                                'eval' => 'required,trim,unique',
744
745
                        ),
745
746
                ),
746
747
                'index_name' => array (
833
834
                                'type' => 'input',
834
835
                                'size' => 30,
835
836
                                'max' => 255,
836
 
                                'eval' => 'required,trim',
 
837
                                'eval' => 'required,trim,uniqueInPid',
837
838
                        ),
838
839
                ),
839
840
                'index_name' => array (
993
994
                                'type' => 'input',
994
995
                                'size' => 30,
995
996
                                'max' => 255,
996
 
                                'eval' => 'required,trim',
 
997
                                'eval' => 'required,trim,uniqueInPid',
997
998
                        ),
998
999
                ),
999
1000
                'index_name' => array (