[FEATURE] Add field "copyright" to EXT:filemetadata 34/40034/4
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 5 Jun 2015 20:21:48 +0000 (22:21 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 6 Jun 2015 10:24:33 +0000 (12:24 +0200)
A copyright information can be very helpful. Therefore
this field should be available as well.

Change-Id: Ib237ee856f45f26d42e7e15bf94798e9348c129a
Resolves: #67319
Releases: master
Reviewed-on: http://review.typo3.org/40034
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Feature-67319-AddFieldCopyrightToEXTfilemetadata.rst [new file with mode: 0644]
typo3/sysext/filemetadata/Configuration/TCA/Overrides/sys_file_metadata.php
typo3/sysext/filemetadata/Resources/Private/Language/locallang_tca.xlf
typo3/sysext/filemetadata/ext_tables.sql

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-67319-AddFieldCopyrightToEXTfilemetadata.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-67319-AddFieldCopyrightToEXTfilemetadata.rst
new file mode 100644 (file)
index 0000000..a6a1db2
--- /dev/null
@@ -0,0 +1,14 @@
+===========================================================
+Feature: #67319 - Add field "copyright" to EXT:filemetadata
+===========================================================
+
+Description
+===========
+
+The field "copyright" is added to the meta data of a FAL record
+
+
+Impact
+======
+
+The new field can be used in all new projects. There is no interference with any part of existing code.
\ No newline at end of file
index d65a2b7..404b67b 100644 (file)
@@ -79,7 +79,7 @@ $tca = array(
        ),
        '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'),
@@ -192,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',
index 1ed2fb2..6d97950 100644 (file)
@@ -41,6 +41,9 @@
                        <trans-unit id="sys_file_metadata.source">
                                <source>Source</source>
                        </trans-unit>
+                       <trans-unit id="sys_file_metadata.copyright">
+                               <source>Copyright</source>
+                       </trans-unit>
                        <trans-unit id="sys_file_metadata.location_country">
                                <source>Country</source>
                        </trans-unit>
index 9c41207..9ea9202 100644 (file)
@@ -11,6 +11,7 @@ CREATE TABLE sys_file_metadata (
        creator varchar(255) DEFAULT '' NOT NULL,
        publisher varchar(45) DEFAULT '' NOT NULL,
        source varchar(255) DEFAULT '' NOT NULL,
+       copyright varchar(255) DEFAULT '' NOT NULL,
        location_country varchar(45) DEFAULT '' NOT NULL,
        location_region varchar(45) DEFAULT '' NOT NULL,
        location_city varchar(45) DEFAULT '' NOT NULL,