Browse Source

Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
pull/254/head
Scrutinizer Auto-Fixer 4 years ago
parent
commit
7c98604877
  1. 490
      Configuration/TCA/tx_dlf_collections.php
  2. 648
      Configuration/TCA/tx_dlf_documents.php
  3. 126
      Configuration/TCA/tx_dlf_formats.php
  4. 362
      Configuration/TCA/tx_dlf_libraries.php
  5. 2
      Configuration/TCA/tx_dlf_mail.php
  6. 470
      Configuration/TCA/tx_dlf_metadata.php
  7. 148
      Configuration/TCA/tx_dlf_metadataformat.php
  8. 90
      Configuration/TCA/tx_dlf_solrcores.php
  9. 302
      Configuration/TCA/tx_dlf_structures.php
  10. 372
      class.ext_update.php
  11. 250
      cli/class.tx_dlf_cli.php
  12. 30
      common/class.tx_dlf_alto.php
  13. 3668
      common/class.tx_dlf_document.php
  14. 22
      common/class.tx_dlf_format.php
  15. 20
      common/class.tx_dlf_fulltext.php
  16. 1674
      common/class.tx_dlf_helper.php
  17. 1106
      common/class.tx_dlf_indexing.php
  18. 1268
      common/class.tx_dlf_list.php
  19. 176
      common/class.tx_dlf_mods.php
  20. 308
      common/class.tx_dlf_module.php
  21. 424
      common/class.tx_dlf_plugin.php
  22. 1028
      common/class.tx_dlf_solr.php
  23. 26
      common/class.tx_dlf_teihdr.php
  24. 78
      ext_autoload.php
  25. 56
      ext_emconf.php
  26. 10
      ext_localconf.php
  27. 46
      ext_tables.php
  28. 286
      hooks/class.tx_dlf_doctype.php
  29. 1052
      hooks/class.tx_dlf_em.php
  30. 78
      hooks/class.tx_dlf_hacks.php
  31. 510
      hooks/class.tx_dlf_tceforms.php
  32. 560
      hooks/class.tx_dlf_tcemain.php
  33. 486
      modules/indexing/index.php
  34. 764
      modules/newclient/index.php
  35. 648
      modules/newclient/metadata.inc.php
  36. 696
      modules/newclient/structures.inc.php
  37. 148
      plugins/audioplayer/class.tx_dlf_audioplayer.php
  38. 522
      plugins/collection/class.tx_dlf_collection.php
  39. 256
      plugins/feeds/class.tx_dlf_feeds.php
  40. 834
      plugins/listview/class.tx_dlf_listview.php
  41. 458
      plugins/metadata/class.tx_dlf_metadata.php
  42. 390
      plugins/navigation/class.tx_dlf_navigation.php
  43. 548
      plugins/newspaper/class.tx_dlf_newspaper.php
  44. 2200
      plugins/oai/class.tx_dlf_oai.php
  45. 324
      plugins/pagegrid/class.tx_dlf_pagegrid.php
  46. 82
      plugins/pageview/class.tx_dlf_geturl_eid.php
  47. 328
      plugins/pageview/class.tx_dlf_pageview.php
  48. 1030
      plugins/search/class.tx_dlf_search.php
  49. 48
      plugins/search/class.tx_dlf_search_suggest.php
  50. 212
      plugins/statistics/class.tx_dlf_statistics.php
  51. 356
      plugins/toc/class.tx_dlf_toc.php
  52. 80
      plugins/toolbox/class.tx_dlf_toolbox.php
  53. 104
      plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php
  54. 178
      plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php
  55. 72
      plugins/toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php
  56. 248
      plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php
  57. 80
      plugins/validator/class.tx_dlf_validator.php

490
Configuration/TCA/tx_dlf_collections.php

@ -10,249 +10,249 @@
*/
return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'fe_cruser_id' => 'fe_cruser_id',
'fe_admin_lock' => 'fe_admin_lock',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfcollections.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name,fe_cruser_id',
),
'feInterface' => array (
'fe_admin_fieldList' => 'label,description,thumbnail,documents',
),
'interface' => array (
'showRecordFieldList' => 'label,index_name,oai_name,fe_cruser_id',
),
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
),
'default' => 0,
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('', 0),
),
'foreign_table' => 'tx_dlf_collections',
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0)',
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'fe_group' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
array ('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
),
'foreign_table' => 'fe_groups',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 20,
'exclusiveKeys' => '-1,-2',
),
),
'label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,trim',
),
),
'index_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.index_name',
'config' => array (
'type' => 'none',
'size' => 30,
'max' => 255,
'eval' => 'required,uniqueInPid',
),
),
'oai_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.oai_name',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace,alphanum_x,uniqueInPid',
),
),
'description' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.description',
'config' => array (
'type' => 'text',
'cols' => 30,
'rows' => 10,
'wrap' => 'virtual',
),
'defaultExtras' => 'richtext[undo,redo,cut,copy,paste,link,image,line,acronym,chMode,blockstylelabel,formatblock,blockstyle,textstylelabel,textstyle,bold,italic,unorderedlist,orderedlist]:rte_transform[mode=ts_css]',
),
'thumbnail' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.thumbnail',
'config' => array (
'type' => 'group',
'internal_type' => 'file_reference',
'allowed' => 'gif,jpg,png',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'priority' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.priority',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('1', 1),
array ('2', 2),
array ('3', 3),
array ('4', 4),
array ('5', 5),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 3,
),
),
'documents' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.documents',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingleBox',
'foreign_table' => 'tx_dlf_documents',
'foreign_table_where' => 'AND tx_dlf_documents.pid=###CURRENT_PID### ORDER BY tx_dlf_documents.title_sorting',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 1048576,
'MM' => 'tx_dlf_relations',
'MM_match_fields' => array (
'ident' => 'docs_colls',
),
'MM_opposite_field' => 'collections',
),
),
'owner' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner.none', 0),
),
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'fe_cruser_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id.none', 0),
),
'foreign_table' => 'fe_users',
'foreign_table_where' => 'ORDER BY fe_users.username',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'fe_admin_lock' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_admin_lock',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'status' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status.default', 0),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 0,
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab1, label,--palette--;;1;;1-1-1, description,--palette--;;2;;2-2-2, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4, fe_cruser_id,--palette--;;3'),
),
'palettes' => array (
'1' => array ('showitem' => 'index_name, --linebreak--, oai_name', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'thumbnail, priority', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'fe_admin_lock', 'canNotCollapse' => 1),
),
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'fe_cruser_id' => 'fe_cruser_id',
'fe_admin_lock' => 'fe_admin_lock',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfcollections.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name,fe_cruser_id',
),
'feInterface' => array (
'fe_admin_fieldList' => 'label,description,thumbnail,documents',
),
'interface' => array (
'showRecordFieldList' => 'label,index_name,oai_name,fe_cruser_id',
),
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
),
'default' => 0,
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('', 0),
),
'foreign_table' => 'tx_dlf_collections',
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0)',
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'fe_group' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
array ('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
),
'foreign_table' => 'fe_groups',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 20,
'exclusiveKeys' => '-1,-2',
),
),
'label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,trim',
),
),
'index_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.index_name',
'config' => array (
'type' => 'none',
'size' => 30,
'max' => 255,
'eval' => 'required,uniqueInPid',
),
),
'oai_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.oai_name',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace,alphanum_x,uniqueInPid',
),
),
'description' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.description',
'config' => array (
'type' => 'text',
'cols' => 30,
'rows' => 10,
'wrap' => 'virtual',
),
'defaultExtras' => 'richtext[undo,redo,cut,copy,paste,link,image,line,acronym,chMode,blockstylelabel,formatblock,blockstyle,textstylelabel,textstyle,bold,italic,unorderedlist,orderedlist]:rte_transform[mode=ts_css]',
),
'thumbnail' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.thumbnail',
'config' => array (
'type' => 'group',
'internal_type' => 'file_reference',
'allowed' => 'gif,jpg,png',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'priority' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.priority',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('1', 1),
array ('2', 2),
array ('3', 3),
array ('4', 4),
array ('5', 5),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 3,
),
),
'documents' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.documents',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingleBox',
'foreign_table' => 'tx_dlf_documents',
'foreign_table_where' => 'AND tx_dlf_documents.pid=###CURRENT_PID### ORDER BY tx_dlf_documents.title_sorting',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 1048576,
'MM' => 'tx_dlf_relations',
'MM_match_fields' => array (
'ident' => 'docs_colls',
),
'MM_opposite_field' => 'collections',
),
),
'owner' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner.none', 0),
),
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'fe_cruser_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id.none', 0),
),
'foreign_table' => 'fe_users',
'foreign_table_where' => 'ORDER BY fe_users.username',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'fe_admin_lock' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_admin_lock',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'status' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status.default', 0),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 0,
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab1, label,--palette--;;1;;1-1-1, description,--palette--;;2;;2-2-2, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4, fe_cruser_id,--palette--;;3'),
),
'palettes' => array (
'1' => array ('showitem' => 'index_name, --linebreak--, oai_name', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'thumbnail, priority', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'fe_admin_lock', 'canNotCollapse' => 1),
),
);

648
Configuration/TCA/tx_dlf_documents.php

@ -10,328 +10,328 @@
*/
return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY title_sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group',
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfdocuments.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
'maxDBListItems' => 25,
'maxSingleDBListItems' => 50,
),
'columns' => array (
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'starttime' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
'config' => array (
'type' => 'input',
'size' => '13',
'max' => '20',
'eval' => 'datetime',
'default' => '0',
),
),
'endtime' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
'config' => array (
'type' => 'input',
'size' => '13',
'max' => '20',
'eval' => 'datetime',
'default' => '0',
),
),
'fe_group' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
array ('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
),
'foreign_table' => 'fe_groups',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 20,
'exclusiveKeys' => '-1,-2',
),
),
'prod_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.prod_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'location' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.location',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'required,uniqueInPid',
),
),
'record_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.record_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace,uniqueInPid',
),
),
'opac_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.opac_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'union_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.union_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'urn' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.urn',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'purl' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.purl',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'title' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'trim',
),
),
'title_sorting' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title_sorting',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'trim',
),
),
'author' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'year' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'place' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'thumbnail' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.thumbnail',
'config' => array (
'type' => 'user',
'userFunc' => 'EXT:dlf/hooks/class.tx_dlf_tceforms.php:tx_dlf_tceforms->displayThumbnail',
),
),
'metadata' => array (
'config' => array (
'type' => 'passthrough',
),
),
'metadata_sorting' => array (
'config' => array (
'type' => 'passthrough',
),
),
'structure' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.structure',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_dlf_structures',
'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.sys_language_uid IN (-1,0) AND tx_dlf_structures.toplevel=1 ORDER BY tx_dlf_structures.label',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'partof' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof',
'config' => array (
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_dlf_documents',
'prepend_tname' => 0,
'size' => 1,
'selectedListStyle' => 'width:400px;',
'minitems' => 0,
'maxitems' => 1,
'disable_controls' => 'browser,delete',
'default' => 0,
'readOnly' => 1,
),
),
'volume' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'volume_sorting' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume_sorting',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'collections' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.collections',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_dlf_collections',
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0) ORDER BY tx_dlf_collections.label',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 1,
'maxitems' => 1024,
'MM' => 'tx_dlf_relations',
'MM_match_fields' => array (
'ident' => 'docs_colls',
),
),
),
'owner' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.owner',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'solrcore' => array (
'config' => array (
'type' => 'passthrough',
),
),
'status' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status.default', 0),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 0,
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab1, title,--palette--;;1;;1-1-1, author, year, place, structure,--palette--;;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,--palette--;;3;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4'),
),
'palettes' => array (
'1' => array ('showitem' => 'title_sorting', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'partof, thumbnail, --linebreak--, volume, volume_sorting', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'starttime, endtime', 'canNotCollapse' => 1),
)
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY title_sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group',
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfdocuments.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
'maxDBListItems' => 25,
'maxSingleDBListItems' => 50,
),
'columns' => array (
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'starttime' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
'config' => array (
'type' => 'input',
'size' => '13',
'max' => '20',
'eval' => 'datetime',
'default' => '0',
),
),
'endtime' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
'config' => array (
'type' => 'input',
'size' => '13',
'max' => '20',
'eval' => 'datetime',
'default' => '0',
),
),
'fe_group' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
array ('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
),
'foreign_table' => 'fe_groups',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 20,
'exclusiveKeys' => '-1,-2',
),
),
'prod_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.prod_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'location' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.location',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'required,uniqueInPid',
),
),
'record_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.record_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace,uniqueInPid',
),
),
'opac_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.opac_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'union_id' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.union_id',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'urn' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.urn',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'purl' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.purl',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'title' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'trim',
),
),
'title_sorting' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title_sorting',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'trim',
),
),
'author' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'year' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'place' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'thumbnail' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.thumbnail',
'config' => array (
'type' => 'user',
'userFunc' => 'EXT:dlf/hooks/class.tx_dlf_tceforms.php:tx_dlf_tceforms->displayThumbnail',
),
),
'metadata' => array (
'config' => array (
'type' => 'passthrough',
),
),
'metadata_sorting' => array (
'config' => array (
'type' => 'passthrough',
),
),
'structure' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.structure',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_dlf_structures',
'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.sys_language_uid IN (-1,0) AND tx_dlf_structures.toplevel=1 ORDER BY tx_dlf_structures.label',
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
),
),
'partof' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof',
'config' => array (
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_dlf_documents',
'prepend_tname' => 0,
'size' => 1,
'selectedListStyle' => 'width:400px;',
'minitems' => 0,
'maxitems' => 1,
'disable_controls' => 'browser,delete',
'default' => 0,
'readOnly' => 1,
),
),
'volume' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'volume_sorting' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume_sorting',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'trim',
),
),
'collections' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.collections',
'config' => array (
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_dlf_collections',
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0) ORDER BY tx_dlf_collections.label',
'size' => 5,
'autoSizeMax' => 15,
'minitems' => 1,
'maxitems' => 1024,
'MM' => 'tx_dlf_relations',
'MM_match_fields' => array (
'ident' => 'docs_colls',
),
),
),
'owner' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.owner',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'solrcore' => array (
'config' => array (
'type' => 'passthrough',
),
),
'status' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status.default', 0),
),
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
'default' => 0,
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab1, title,--palette--;;1;;1-1-1, author, year, place, structure,--palette--;;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,--palette--;;3;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4'),
),
'palettes' => array (
'1' => array ('showitem' => 'title_sorting', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'partof, thumbnail, --linebreak--, volume, volume_sorting', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'starttime, endtime', 'canNotCollapse' => 1),
)
);

126
Configuration/TCA/tx_dlf_formats.php

@ -10,67 +10,67 @@
*/
return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats',
'label' => 'type',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY type',
'delete' => 'deleted',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfformats.png',
'rootLevel' => 1,
'dividers2tabs' => 2,
'searchFields' => 'type,class',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'type,class',
),
'columns' => array (
'type' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.type',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,nospace,alphanum_x,unique',
),
),
'root' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.root',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,nospace,alphanum_x,unique',
),
),
'namespace' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.namespace',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'required,nospace,unique',
),
),
'class' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.class',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'nospace,alphanum_x,unique',
),
),
),
'types' => array (
'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'),
),
'palettes' => array (
'1' => array ('showitem' => ''),
),
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats',
'label' => 'type',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY type',
'delete' => 'deleted',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfformats.png',
'rootLevel' => 1,
'dividers2tabs' => 2,
'searchFields' => 'type,class',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'type,class',
),
'columns' => array (
'type' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.type',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,nospace,alphanum_x,unique',
),
),
'root' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.root',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,nospace,alphanum_x,unique',
),
),
'namespace' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.namespace',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'required,nospace,unique',
),
),
'class' => array (
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.class',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 1024,
'eval' => 'nospace,alphanum_x,unique',
),
),
),
'types' => array (
'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'),
),
'palettes' => array (
'1' => array ('showitem' => ''),
),
);

362
Configuration/TCA/tx_dlf_libraries.php

@ -10,185 +10,185 @@
*/
return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlflibraries.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,website,contact',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'label,website,contact',
),
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
),
'default' => 0
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('', 0),
),
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.pid=###CURRENT_PID### AND tx_dlf_libraries.sys_language_uid IN (-1,0)',
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,trim',
),
),
'index_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.index_name',
'config' => array (
'type' => 'none',
'size' => 30,
'max' => 255,
'eval' => 'required,uniqueInPid',
),
),
'website' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.website',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'contact' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.contact',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'image' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.image',
'config' => array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'max_size' => 256,
'uploadfolder' => 'uploads/tx_dlf',
'show_thumbs' => 1,
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'oai_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'oai_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_base',
'config' => array (
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'opac_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'opac_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_base',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'union_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'union_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_base',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab1, label,--palette--;;1;;1-1-1, website;;;;2-2-2, contact, image;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab3, oai_label,--palette--;;2;;1-1-1, opac_label,--palette--;;3;;2-2-2, union_label,--palette--;;4;;3-3-3'),
),
'palettes' => array (
'1' => array ('showitem' => 'index_name', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'oai_base', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'opac_base', 'canNotCollapse' => 1),
'4' => array ('showitem' => 'union_base', 'canNotCollapse' => 1),
),
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlflibraries.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,website,contact',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'label,website,contact',
),
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
),
'default' => 0
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('', 0),
),
'foreign_table' => 'tx_dlf_libraries',
'foreign_table_where' => 'AND tx_dlf_libraries.pid=###CURRENT_PID### AND tx_dlf_libraries.sys_language_uid IN (-1,0)',
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,trim',
),
),
'index_name' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.index_name',
'config' => array (
'type' => 'none',
'size' => 30,
'max' => 255,
'eval' => 'required,uniqueInPid',
),
),
'website' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.website',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'contact' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.contact',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'image' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.image',
'config' => array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'max_size' => 256,
'uploadfolder' => 'uploads/tx_dlf',
'show_thumbs' => 1,
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'oai_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'oai_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_base',
'config' => array (
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
),
),
'opac_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'opac_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_base',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
'union_label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
),
),
'union_base' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_base',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'nospace',
),
),
),
'types' => array (
'0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab1, label,--palette--;;1;;1-1-1, website;;;;2-2-2, contact, image;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab3, oai_label,--palette--;;2;;1-1-1, opac_label,--palette--;;3;;2-2-2, union_label,--palette--;;4;;3-3-3'),
),
'palettes' => array (
'1' => array ('showitem' => 'index_name', 'canNotCollapse' => 1),
'2' => array ('showitem' => 'oai_base', 'canNotCollapse' => 1),
'3' => array ('showitem' => 'opac_base', 'canNotCollapse' => 1),
'4' => array ('showitem' => 'union_base', 'canNotCollapse' => 1),
),
);

2
Configuration/TCA/tx_dlf_mail.php

@ -13,7 +13,7 @@ return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail',
'label' => 'label',
'sortby' => 'sorting',
'sortby' => 'sorting',
'delete' => 'deleted',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfemail.png',
'rootLevel' => 0,

470
Configuration/TCA/tx_dlf_metadata.php

@ -10,239 +10,239 @@
*/
return array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfmetadata.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
),
'interface' => array (
'showRecordFieldList' => 'label,index_name,is_sortable,is_facet,is_listed,index_autocomplete',
),
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array (
array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
),
'default' => 0
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array (
array ('', 0),
),
'foreign_table' => 'tx_dlf_metadata',
'foreign_table_where' => 'AND tx_dlf_metadata.pid=###CURRENT_PID### AND tx_dlf_metadata.sys_language_uid IN (-1,0) ORDER BY label ASC',
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => 0,
),
),
'label' => array (
'exclude' => 1,
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.label',
'config' => array (
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'required,trim',
),
),