[TASK] Group editable/read-only metadata fields 23/44223/4
authorXavier Perseguers <xavier@typo3.org>
Thu, 22 Oct 2015 12:37:19 +0000 (14:37 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Thu, 22 Oct 2015 16:06:47 +0000 (18:06 +0200)
Instead of mixing editable and non-editable fields, it is best to
group them together.

In addition, "Duration" is one of the numerous metadata information
being related to either an audio or a video asset. Think ahead and
put the information on a dedicated tab, so that other extensions
know how to best extend support for metadata in FAL.

Change-Id: Iada3d47c7bad1e31981635d559489191dd6ca5ca
Resolves: #70949
Releases: master
Reviewed-on: https://review.typo3.org/44223
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/filemetadata/Configuration/TCA/Overrides/sys_file_metadata.php
typo3/sysext/filemetadata/Resources/Private/Language/locallang_tca.xlf

index 2750f91..a0c81d6 100644 (file)
@@ -42,6 +42,7 @@ $tca = array(
                                        creator, creator_tool, publisher, source, copyright,
                                        --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
                                        --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.gps;30,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.camera,
                                        color_space,
                                        --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50
                        ',
@@ -54,8 +55,9 @@ $tca = array(
                                        --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, creator_tool, publisher, source, copyright, language
+                                       creator, creator_tool, publisher, source, copyright, language,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.audio,
+                                   duration
                        ',
         ),
         TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array(
@@ -66,8 +68,9 @@ $tca = array(
                                        --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, creator_tool, publisher, source, copyright, language
+                                       creator, creator_tool, publisher, source, copyright, language,
+                               --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.video,
+                                       duration
                        ',
         ),
         TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array(
index b97c4f4..1ef6234 100644 (file)
@@ -96,7 +96,7 @@
                                <source>Points</source>
                        </trans-unit>
                        <trans-unit id="sys_file_metadata.duration">
-                               <source>Duration</source>
+                               <source>Duration (in seconds)</source>
                        </trans-unit>
                        <trans-unit id="sys_file_metadata.color_space">
                                <source>Color Space</source>
                        <trans-unit id="tabs.metadata">
                                <source>Metadata</source>
                        </trans-unit>
+                       <trans-unit id="tabs.camera">
+                               <source>Camera Data</source>
+                       </trans-unit>
+                       <trans-unit id="tabs.audio">
+                               <source>Audio</source>
+                       </trans-unit>
+                       <trans-unit id="tabs.video">
+                               <source>Video</source>
+                       </trans-unit>
 
                        <!-- sys_file_metadata placeholder -->
                        <trans-unit id="placeholder.keywords">