[FEATURE] Add field "copyright" to EXT:filemetadata
[Packages/TYPO3.CMS.git] / typo3 / sysext / filemetadata / Configuration / TCA / Overrides / sys_file_metadata.php
index 2f40249..404b67b 100644 (file)
@@ -1,84 +1,85 @@
 <?php
+defined('TYPO3_MODE') or die();
 
 $tca = array(
        'ctrl' => array(
                'type' => 'file:type',
        ),
        'types' => array(
-               TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => array('showitem' => '
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       creator, --palette--;;20;;,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;;'),
-
-               TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       creator, --palette--;;20;;,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;;,
-                                                                       language'),
-
-               TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       creator, --palette--;;20;;,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;; ,
-                                                                       --palette--;;30;;,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50;;'),
-
-               TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
-
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       duration,
-                                                                       creator, --palette--;;20;;, language'),
-
-               TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       duration,
-                                                                       creator, --palette--;;20;;, language'),
-
-               TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
-                                                               fileinfo, title, description, alternative, keywords, caption, download_name,
-
-                                                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
-                                                                       fe_groups,
-
-                                                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
-                                                                       creator, --palette--;;20;;,
-                                                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;; ,
-                                                                       language, --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60;;, pages'),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10 ,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       creator, --palette--;;20,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40
+                       ',
+               ),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10 ,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       creator, --palette--;;20,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
+                                       language
+                       ',
+               ),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10 ,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       creator, --palette--;;20,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
+                                       --palette--;;30,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50
+                       ',
+               ),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       duration,
+                                       creator, --palette--;;20, language
+                       ',
+               ),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       duration,
+                                       creator, --palette--;;20, language
+                       ',
+               ),
+               TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array(
+                       'showitem' => '
+                               fileinfo, title, description, alternative, keywords, caption, download_name,
+                               --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
+                                       fe_groups,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
+                                       creator, --palette--;;20,
+                                       --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
+                                       language, --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60, pages
+                       ',
+               ),
        ),
        'palettes' => array(
                '10' => array('showitem' => 'visible, status, ranking', 'canNotCollapse' => '1'),
-               '20' => array('showitem' => 'creator_tool, publisher, source', 'canNotCollapse' => '1'),
+               '20' => array('showitem' => 'creator_tool, publisher, source, copyright', 'canNotCollapse' => '1'),
                '30' => array('showitem' => 'latitude, longitude', 'canNotCollapse' => '1'),
                '40' => array('showitem' => 'location_country, location_region, location_city', 'canNotCollapse' => '1'),
                '50' => array('showitem' => 'width, height, unit, color_space', 'canNotCollapse' => '1'),
@@ -191,6 +192,15 @@ $tca = array(
                                'eval' => 'trim'
                        ),
                ),
+               'copyright' => array(
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.copyright',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => 20,
+                               'eval' => 'trim'
+                       ),
+               ),
                'location_country' => array(
                        'exclude' => 1,
                        'l10n_mode' => 'mergeIfNotBlank',