@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | die('Access denied.'); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | -return array( |
|
| 20 | - 'ctrl' => array( |
|
| 19 | +return array ( |
|
| 20 | + 'ctrl' => array ( |
|
| 21 | 21 | 'title' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup', |
| 22 | 22 | 'label' => 'name', |
| 23 | 23 | 'tstamp' => 'tstamp', |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'transOrigPointerField' => 'l10n_parent', |
| 29 | 29 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
| 30 | 30 | 'delete' => 'deleted', |
| 31 | - 'enablecolumns' => array( |
|
| 31 | + 'enablecolumns' => array ( |
|
| 32 | 32 | 'disabled' => 'hidden', |
| 33 | 33 | 'starttime' => 'starttime', |
| 34 | 34 | 'endtime' => 'endtime', |
@@ -36,74 +36,74 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups', |
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/default.gif', |
| 38 | 38 | ), |
| 39 | - 'interface' => array( |
|
| 39 | + 'interface' => array ( |
|
| 40 | 40 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups', |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 42 | + 'types' => array ( |
|
| 43 | + '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 44 | 44 | ), |
| 45 | - 'palettes' => array( |
|
| 46 | - '1' => array('showitem' => ''), |
|
| 45 | + 'palettes' => array ( |
|
| 46 | + '1' => array ('showitem' => ''), |
|
| 47 | 47 | ), |
| 48 | - 'columns' => array( |
|
| 48 | + 'columns' => array ( |
|
| 49 | 49 | |
| 50 | - 'sys_language_uid' => array( |
|
| 50 | + 'sys_language_uid' => array ( |
|
| 51 | 51 | 'exclude' => 1, |
| 52 | 52 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 53 | - 'config' => array( |
|
| 53 | + 'config' => array ( |
|
| 54 | 54 | 'type' => 'select', |
| 55 | 55 | 'renderType' => 'selectSingle', |
| 56 | 56 | 'foreign_table' => 'sys_language', |
| 57 | 57 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 58 | - 'items' => array( |
|
| 59 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 60 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 58 | + 'items' => array ( |
|
| 59 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 60 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 61 | 61 | ), |
| 62 | 62 | 'default' => 0, |
| 63 | 63 | ), |
| 64 | 64 | ), |
| 65 | - 'l10n_parent' => array( |
|
| 65 | + 'l10n_parent' => array ( |
|
| 66 | 66 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 67 | 67 | 'exclude' => 1, |
| 68 | 68 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 69 | - 'config' => array( |
|
| 69 | + 'config' => array ( |
|
| 70 | 70 | 'type' => 'select', |
| 71 | 71 | 'renderType' => 'selectSingle', |
| 72 | - 'items' => array( |
|
| 73 | - array('', 0), |
|
| 72 | + 'items' => array ( |
|
| 73 | + array ('', 0), |
|
| 74 | 74 | ), |
| 75 | 75 | 'foreign_table' => 'tx_dpf_domain_model_metadatagroup', |
| 76 | 76 | 'foreign_table_where' => 'AND tx_dpf_domain_model_metadatagroup.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadatagroup.sys_language_uid IN (-1,0)', |
| 77 | 77 | ), |
| 78 | 78 | ), |
| 79 | - 'l10n_diffsource' => array( |
|
| 80 | - 'config' => array( |
|
| 79 | + 'l10n_diffsource' => array ( |
|
| 80 | + 'config' => array ( |
|
| 81 | 81 | 'type' => 'passthrough', |
| 82 | 82 | ), |
| 83 | 83 | ), |
| 84 | 84 | |
| 85 | - 't3ver_label' => array( |
|
| 85 | + 't3ver_label' => array ( |
|
| 86 | 86 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 87 | - 'config' => array( |
|
| 87 | + 'config' => array ( |
|
| 88 | 88 | 'type' => 'input', |
| 89 | 89 | 'size' => 30, |
| 90 | 90 | 'max' => 255, |
| 91 | 91 | ), |
| 92 | 92 | ), |
| 93 | 93 | |
| 94 | - 'hidden' => array( |
|
| 94 | + 'hidden' => array ( |
|
| 95 | 95 | 'exclude' => 1, |
| 96 | 96 | 'l10n_mode' => 'exclude', |
| 97 | 97 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 98 | - 'config' => array( |
|
| 98 | + 'config' => array ( |
|
| 99 | 99 | 'type' => 'check', |
| 100 | 100 | ), |
| 101 | 101 | ), |
| 102 | - 'starttime' => array( |
|
| 102 | + 'starttime' => array ( |
|
| 103 | 103 | 'exclude' => 1, |
| 104 | 104 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 105 | - 'config' => array( |
|
| 106 | - 'behaviour' => array( |
|
| 105 | + 'config' => array ( |
|
| 106 | + 'behaviour' => array ( |
|
| 107 | 107 | 'allowLanguageSynchronization' => true |
| 108 | 108 | ), |
| 109 | 109 | 'type' => 'input', |
@@ -112,139 +112,139 @@ discard block |
||
| 112 | 112 | 'eval' => 'datetime', |
| 113 | 113 | 'checkbox' => 0, |
| 114 | 114 | 'default' => 0, |
| 115 | - 'range' => array( |
|
| 115 | + 'range' => array ( |
|
| 116 | 116 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 117 | 117 | ), |
| 118 | 118 | ), |
| 119 | 119 | ), |
| 120 | - 'endtime' => array( |
|
| 120 | + 'endtime' => array ( |
|
| 121 | 121 | 'exclude' => 1, |
| 122 | 122 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 123 | - 'config' => array( |
|
| 123 | + 'config' => array ( |
|
| 124 | 124 | 'type' => 'input', |
| 125 | 125 | 'renderType' => 'inputDateTime', |
| 126 | 126 | 'size' => 13, |
| 127 | 127 | 'eval' => 'datetime', |
| 128 | 128 | 'checkbox' => 0, |
| 129 | 129 | 'default' => 0, |
| 130 | - 'range' => array( |
|
| 130 | + 'range' => array ( |
|
| 131 | 131 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 132 | 132 | ), |
| 133 | 133 | ), |
| 134 | 134 | ), |
| 135 | 135 | |
| 136 | - 'name' => array( |
|
| 136 | + 'name' => array ( |
|
| 137 | 137 | 'exclude' => 1, |
| 138 | 138 | 'l10n_mode' => 'exclude', |
| 139 | 139 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.name', |
| 140 | - 'config' => array( |
|
| 140 | + 'config' => array ( |
|
| 141 | 141 | 'type' => 'input', |
| 142 | 142 | 'size' => 30, |
| 143 | 143 | 'eval' => 'trim,uniqueInPid', |
| 144 | 144 | ), |
| 145 | 145 | ), |
| 146 | - 'display_name' => array( |
|
| 146 | + 'display_name' => array ( |
|
| 147 | 147 | 'exclude' => 1, |
| 148 | 148 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.display_name', |
| 149 | - 'config' => array( |
|
| 149 | + 'config' => array ( |
|
| 150 | 150 | 'type' => 'input', |
| 151 | 151 | 'size' => 30, |
| 152 | 152 | 'eval' => 'trim', |
| 153 | 153 | ), |
| 154 | 154 | ), |
| 155 | - 'mandatory' => array( |
|
| 155 | + 'mandatory' => array ( |
|
| 156 | 156 | 'exclude' => 1, |
| 157 | 157 | 'l10n_mode' => 'exclude', |
| 158 | 158 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory', |
| 159 | - 'config' => array( |
|
| 159 | + 'config' => array ( |
|
| 160 | 160 | 'type' => 'select', |
| 161 | 161 | 'renderType' => 'selectSingle', |
| 162 | 162 | 'size' => 1, |
| 163 | 163 | 'maxitems' => 1, |
| 164 | - 'items' => array( |
|
| 165 | - array('',''), |
|
| 166 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
| 167 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
| 164 | + 'items' => array ( |
|
| 165 | + array ('', ''), |
|
| 166 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
| 167 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
| 168 | 168 | ), |
| 169 | 169 | ), |
| 170 | 170 | ), |
| 171 | - 'mapping_for_reading' => array( |
|
| 171 | + 'mapping_for_reading' => array ( |
|
| 172 | 172 | 'exclude' => 1, |
| 173 | 173 | 'l10n_mode' => 'exclude', |
| 174 | 174 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping_for_reading', |
| 175 | - 'config' => array( |
|
| 175 | + 'config' => array ( |
|
| 176 | 176 | 'type' => 'input', |
| 177 | 177 | 'size' => 30, |
| 178 | 178 | 'eval' => 'trim', |
| 179 | 179 | ), |
| 180 | 180 | ), |
| 181 | - 'mapping' => array( |
|
| 181 | + 'mapping' => array ( |
|
| 182 | 182 | 'exclude' => 1, |
| 183 | 183 | 'l10n_mode' => 'exclude', |
| 184 | 184 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping', |
| 185 | - 'config' => array( |
|
| 185 | + 'config' => array ( |
|
| 186 | 186 | 'type' => 'input', |
| 187 | 187 | 'size' => 30, |
| 188 | 188 | 'eval' => 'trim', |
| 189 | 189 | ), |
| 190 | 190 | ), |
| 191 | - 'mods_extension_mapping' => array( |
|
| 191 | + 'mods_extension_mapping' => array ( |
|
| 192 | 192 | 'exclude' => 1, |
| 193 | 193 | 'l10n_mode' => 'exclude', |
| 194 | 194 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mods_extension_mapping', |
| 195 | - 'config' => array( |
|
| 195 | + 'config' => array ( |
|
| 196 | 196 | 'type' => 'input', |
| 197 | 197 | 'size' => 30, |
| 198 | 198 | 'eval' => 'trim', |
| 199 | 199 | ), |
| 200 | 200 | ), |
| 201 | - 'mods_extension_reference' => array( |
|
| 201 | + 'mods_extension_reference' => array ( |
|
| 202 | 202 | 'exclude' => 1, |
| 203 | 203 | 'l10n_mode' => 'exclude', |
| 204 | 204 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mods_extension_reference', |
| 205 | - 'config' => array( |
|
| 205 | + 'config' => array ( |
|
| 206 | 206 | 'type' => 'input', |
| 207 | 207 | 'size' => 30, |
| 208 | 208 | 'eval' => 'trim', |
| 209 | 209 | ), |
| 210 | 210 | ), |
| 211 | - 'json_mapping' => array( |
|
| 211 | + 'json_mapping' => array ( |
|
| 212 | 212 | 'exclude' => 1, |
| 213 | 213 | 'l10n_mode' => 'exclude', |
| 214 | 214 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.json_mapping', |
| 215 | - 'config' => array( |
|
| 215 | + 'config' => array ( |
|
| 216 | 216 | 'type' => 'input', |
| 217 | 217 | 'size' => 30, |
| 218 | 218 | 'eval' => 'trim', |
| 219 | 219 | ), |
| 220 | 220 | ), |
| 221 | - 'max_iteration' => array( |
|
| 221 | + 'max_iteration' => array ( |
|
| 222 | 222 | 'exclude' => 1, |
| 223 | 223 | 'l10n_mode' => 'exclude', |
| 224 | 224 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.max_iteration', |
| 225 | - 'config' => array( |
|
| 225 | + 'config' => array ( |
|
| 226 | 226 | 'type' => 'input', |
| 227 | 227 | 'size' => 4, |
| 228 | 228 | 'eval' => 'int', |
| 229 | 229 | ), |
| 230 | 230 | ), |
| 231 | - 'access_restriction_roles' => array( |
|
| 231 | + 'access_restriction_roles' => array ( |
|
| 232 | 232 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.access_restriction_roles', |
| 233 | - 'config' => array( |
|
| 233 | + 'config' => array ( |
|
| 234 | 234 | 'type' => 'select', |
| 235 | 235 | 'renderType' => 'selectMultipleSideBySide', |
| 236 | 236 | 'size' => 2, |
| 237 | 237 | 'maxitems' => 2, |
| 238 | - 'items' => array( |
|
| 239 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
| 240 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
| 238 | + 'items' => array ( |
|
| 239 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
| 240 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
| 241 | 241 | ), |
| 242 | 242 | ), |
| 243 | 243 | ), |
| 244 | - 'info_text' => array( |
|
| 244 | + 'info_text' => array ( |
|
| 245 | 245 | 'exclude' => 1, |
| 246 | 246 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.info_text', |
| 247 | - 'config' => array( |
|
| 247 | + 'config' => array ( |
|
| 248 | 248 | 'type' => 'text', |
| 249 | 249 | 'cols' => 40, |
| 250 | 250 | 'rows' => 15, |
@@ -252,24 +252,24 @@ discard block |
||
| 252 | 252 | 'enableRichtext' => true, |
| 253 | 253 | ), |
| 254 | 254 | ), |
| 255 | - 'metadata_object' => array( |
|
| 255 | + 'metadata_object' => array ( |
|
| 256 | 256 | 'exclude' => 1, |
| 257 | 257 | 'l10n_mode' => 'exclude', |
| 258 | 258 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.metadata_object', |
| 259 | - 'config' => array( |
|
| 259 | + 'config' => array ( |
|
| 260 | 260 | 'type' => 'inline', |
| 261 | 261 | 'foreign_table' => 'tx_dpf_domain_model_metadataobject', |
| 262 | 262 | 'foreign_field' => 'metadatagroup', |
| 263 | 263 | 'foreign_label' => 'display_name', |
| 264 | 264 | 'foreign_sortby' => 'sorting', |
| 265 | - 'behaviour' => array( |
|
| 265 | + 'behaviour' => array ( |
|
| 266 | 266 | 'disableMovingChildrenWithParent' => 1, |
| 267 | 267 | ), |
| 268 | 268 | 'size' => 10, |
| 269 | 269 | 'autoSizeMax' => 30, |
| 270 | 270 | 'maxitems' => 9999, |
| 271 | 271 | 'multiple' => 0, |
| 272 | - 'appearance' => array( |
|
| 272 | + 'appearance' => array ( |
|
| 273 | 273 | 'collapseAll' => 1, |
| 274 | 274 | 'levelLinksPosition' => 'top', |
| 275 | 275 | 'showSynchronizationLink' => 1, |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * @var bool |
| 34 | 34 | */ |
| 35 | - protected $emptyGroup = false; |
|
| 35 | + protected $emptyGroup = FALSE; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var string |