@@ -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_metadataobject', |
| 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,75 +36,75 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'name, display_name, max_iteration, mandatory, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type', |
| 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, max_iteration, mandatory, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type', |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, max_iteration, mandatory, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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, max_iteration, mandatory, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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_metadataobject', |
| 76 | 76 | 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)', |
| 77 | 77 | 'default' => 0, |
| 78 | 78 | ), |
| 79 | 79 | ), |
| 80 | - 'l10n_diffsource' => array( |
|
| 81 | - 'config' => array( |
|
| 80 | + 'l10n_diffsource' => array ( |
|
| 81 | + 'config' => array ( |
|
| 82 | 82 | 'type' => 'passthrough', |
| 83 | 83 | ), |
| 84 | 84 | ), |
| 85 | 85 | |
| 86 | - 't3ver_label' => array( |
|
| 86 | + 't3ver_label' => array ( |
|
| 87 | 87 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 88 | - 'config' => array( |
|
| 88 | + 'config' => array ( |
|
| 89 | 89 | 'type' => 'input', |
| 90 | 90 | 'size' => 30, |
| 91 | 91 | 'max' => 255, |
| 92 | 92 | ), |
| 93 | 93 | ), |
| 94 | 94 | |
| 95 | - 'hidden' => array( |
|
| 95 | + 'hidden' => array ( |
|
| 96 | 96 | 'exclude' => 1, |
| 97 | 97 | 'l10n_mode' => 'exclude', |
| 98 | 98 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 99 | - 'config' => array( |
|
| 99 | + 'config' => array ( |
|
| 100 | 100 | 'type' => 'check', |
| 101 | 101 | ), |
| 102 | 102 | ), |
| 103 | - 'starttime' => array( |
|
| 103 | + 'starttime' => array ( |
|
| 104 | 104 | 'exclude' => 1, |
| 105 | 105 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 106 | - 'config' => array( |
|
| 107 | - 'behaviour' => array( |
|
| 106 | + 'config' => array ( |
|
| 107 | + 'behaviour' => array ( |
|
| 108 | 108 | 'allowLanguageSynchronization' => true |
| 109 | 109 | ), |
| 110 | 110 | 'type' => 'input', |
@@ -113,16 +113,16 @@ discard block |
||
| 113 | 113 | 'eval' => 'datetime', |
| 114 | 114 | 'checkbox' => 0, |
| 115 | 115 | 'default' => 0, |
| 116 | - 'range' => array( |
|
| 116 | + 'range' => array ( |
|
| 117 | 117 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 118 | 118 | ), |
| 119 | 119 | ), |
| 120 | 120 | ), |
| 121 | - 'endtime' => array( |
|
| 121 | + 'endtime' => array ( |
|
| 122 | 122 | 'exclude' => 1, |
| 123 | 123 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 124 | - 'config' => array( |
|
| 125 | - 'behaviour' => array( |
|
| 124 | + 'config' => array ( |
|
| 125 | + 'behaviour' => array ( |
|
| 126 | 126 | 'allowLanguageSynchronization' => true |
| 127 | 127 | ), |
| 128 | 128 | 'type' => 'input', |
@@ -131,185 +131,185 @@ discard block |
||
| 131 | 131 | 'eval' => 'datetime', |
| 132 | 132 | 'checkbox' => 0, |
| 133 | 133 | 'default' => 0, |
| 134 | - 'range' => array( |
|
| 134 | + 'range' => array ( |
|
| 135 | 135 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 136 | 136 | ), |
| 137 | 137 | ), |
| 138 | 138 | ), |
| 139 | 139 | |
| 140 | - 'name' => array( |
|
| 140 | + 'name' => array ( |
|
| 141 | 141 | 'exclude' => 1, |
| 142 | 142 | 'l10n_mode' => 'exclude', |
| 143 | 143 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name', |
| 144 | - 'config' => array( |
|
| 144 | + 'config' => array ( |
|
| 145 | 145 | 'type' => 'input', |
| 146 | 146 | 'size' => 30, |
| 147 | 147 | 'eval' => 'trim', |
| 148 | 148 | ), |
| 149 | 149 | ), |
| 150 | - 'display_name' => array( |
|
| 150 | + 'display_name' => array ( |
|
| 151 | 151 | 'exclude' => 1, |
| 152 | 152 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name', |
| 153 | - 'config' => array( |
|
| 153 | + 'config' => array ( |
|
| 154 | 154 | 'type' => 'input', |
| 155 | 155 | 'size' => 30, |
| 156 | 156 | 'eval' => 'trim', |
| 157 | 157 | ), |
| 158 | 158 | ), |
| 159 | - 'max_iteration' => array( |
|
| 159 | + 'max_iteration' => array ( |
|
| 160 | 160 | 'exclude' => 1, |
| 161 | 161 | 'l10n_mode' => 'exclude', |
| 162 | 162 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration', |
| 163 | - 'config' => array( |
|
| 163 | + 'config' => array ( |
|
| 164 | 164 | 'type' => 'input', |
| 165 | 165 | 'size' => 4, |
| 166 | 166 | 'eval' => 'int', |
| 167 | 167 | ), |
| 168 | 168 | ), |
| 169 | - 'mandatory' => array( |
|
| 169 | + 'mandatory' => array ( |
|
| 170 | 170 | 'exclude' => 1, |
| 171 | 171 | 'l10n_mode' => 'exclude', |
| 172 | 172 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory', |
| 173 | - 'config' => array( |
|
| 173 | + 'config' => array ( |
|
| 174 | 174 | 'type' => 'select', |
| 175 | 175 | 'renderType' => 'selectSingle', |
| 176 | 176 | 'size' => 1, |
| 177 | 177 | 'maxitems' => 1, |
| 178 | - 'items' => array( |
|
| 179 | - array('',''), |
|
| 180 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
| 181 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
| 178 | + 'items' => array ( |
|
| 179 | + array ('', ''), |
|
| 180 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
| 181 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
| 182 | 182 | ), |
| 183 | 183 | ), |
| 184 | 184 | ), |
| 185 | - 'mapping' => array( |
|
| 185 | + 'mapping' => array ( |
|
| 186 | 186 | 'exclude' => 1, |
| 187 | 187 | 'l10n_mode' => 'exclude', |
| 188 | 188 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping', |
| 189 | - 'config' => array( |
|
| 189 | + 'config' => array ( |
|
| 190 | 190 | 'type' => 'input', |
| 191 | 191 | 'size' => 30, |
| 192 | 192 | 'eval' => 'trim', |
| 193 | 193 | ), |
| 194 | 194 | ), |
| 195 | - 'json_mapping' => array( |
|
| 195 | + 'json_mapping' => array ( |
|
| 196 | 196 | 'exclude' => 1, |
| 197 | 197 | 'l10n_mode' => 'exclude', |
| 198 | 198 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.json_mapping', |
| 199 | - 'config' => array( |
|
| 199 | + 'config' => array ( |
|
| 200 | 200 | 'type' => 'input', |
| 201 | 201 | 'size' => 30, |
| 202 | 202 | 'eval' => 'trim', |
| 203 | 203 | ), |
| 204 | 204 | ), |
| 205 | - 'validator' => array( |
|
| 205 | + 'validator' => array ( |
|
| 206 | 206 | 'exclude' => 1, |
| 207 | 207 | 'l10n_mode' => 'exclude', |
| 208 | 208 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator', |
| 209 | - 'config' => array( |
|
| 209 | + 'config' => array ( |
|
| 210 | 210 | 'type' => 'select', |
| 211 | 211 | 'renderType' => 'selectSingle', |
| 212 | - 'items' => array( |
|
| 213 | - array('', ''), |
|
| 214 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.regexp', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_REGEXP), |
|
| 215 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.date', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_DATE), |
|
| 212 | + 'items' => array ( |
|
| 213 | + array ('', ''), |
|
| 214 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.regexp', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_REGEXP), |
|
| 215 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.date', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_DATE), |
|
| 216 | 216 | ), |
| 217 | 217 | 'size' => 1, |
| 218 | 218 | 'maxitems' => 1, |
| 219 | 219 | 'eval' => '', |
| 220 | 220 | ), |
| 221 | 221 | ), |
| 222 | - 'validation' => array( |
|
| 222 | + 'validation' => array ( |
|
| 223 | 223 | 'exclude' => 1, |
| 224 | 224 | 'l10n_mode' => 'exclude', |
| 225 | 225 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation', |
| 226 | - 'config' => array( |
|
| 226 | + 'config' => array ( |
|
| 227 | 227 | 'type' => 'input', |
| 228 | 228 | 'size' => 30, |
| 229 | 229 | 'eval' => 'trim', |
| 230 | 230 | ), |
| 231 | 231 | ), |
| 232 | - 'validation_error_message' => array( |
|
| 232 | + 'validation_error_message' => array ( |
|
| 233 | 233 | 'exclude' => 1, |
| 234 | 234 | 'l10n_mode' => 'exclude', |
| 235 | 235 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation_error_message', |
| 236 | - 'config' => array( |
|
| 236 | + 'config' => array ( |
|
| 237 | 237 | 'type' => 'input', |
| 238 | 238 | 'size' => 30, |
| 239 | 239 | 'eval' => 'trim', |
| 240 | 240 | ), |
| 241 | 241 | ), |
| 242 | - 'mods_extension' => array( |
|
| 242 | + 'mods_extension' => array ( |
|
| 243 | 243 | 'exclude' => 1, |
| 244 | 244 | 'l10n_mode' => 'exclude', |
| 245 | 245 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension', |
| 246 | - 'config' => array( |
|
| 246 | + 'config' => array ( |
|
| 247 | 247 | 'type' => 'check', |
| 248 | 248 | 'default' => 0, |
| 249 | 249 | ), |
| 250 | 250 | ), |
| 251 | - 'access_restriction_roles' => array( |
|
| 251 | + 'access_restriction_roles' => array ( |
|
| 252 | 252 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.access_restriction_roles', |
| 253 | - 'config' => array( |
|
| 253 | + 'config' => array ( |
|
| 254 | 254 | 'type' => 'select', |
| 255 | 255 | 'renderType' => 'selectMultipleSideBySide', |
| 256 | 256 | 'size' => 2, |
| 257 | 257 | 'maxitems' => 2, |
| 258 | - 'items' => array( |
|
| 259 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
| 260 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
| 258 | + 'items' => array ( |
|
| 259 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
| 260 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
| 261 | 261 | ), |
| 262 | 262 | ), |
| 263 | 263 | ), |
| 264 | - 'consent' => array( |
|
| 264 | + 'consent' => array ( |
|
| 265 | 265 | 'exclude' => 1, |
| 266 | 266 | 'l10n_mode' => 'exclude', |
| 267 | 267 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent', |
| 268 | - 'config' => array( |
|
| 268 | + 'config' => array ( |
|
| 269 | 269 | 'type' => 'check', |
| 270 | 270 | 'default' => 0, |
| 271 | 271 | ), |
| 272 | 272 | ), |
| 273 | - 'input_field' => array( |
|
| 273 | + 'input_field' => array ( |
|
| 274 | 274 | 'onChange' => 'reload', |
| 275 | 275 | 'exclude' => 1, |
| 276 | 276 | 'l10n_mode' => 'exclude', |
| 277 | 277 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field', |
| 278 | - 'config' => array( |
|
| 278 | + 'config' => array ( |
|
| 279 | 279 | 'onChange' => 'reload', |
| 280 | 280 | 'type' => 'select', |
| 281 | 281 | 'renderType' => 'selectSingle', |
| 282 | - 'items' => array( |
|
| 283 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 284 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 285 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 286 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 287 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 288 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
| 289 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown), |
|
| 290 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.fileUpload', \EWW\Dpf\Domain\Model\MetadataObject::FILE_UPLOAD) |
|
| 282 | + 'items' => array ( |
|
| 283 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 284 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 285 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 286 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 287 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 288 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
| 289 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown), |
|
| 290 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.fileUpload', \EWW\Dpf\Domain\Model\MetadataObject::FILE_UPLOAD) |
|
| 291 | 291 | ), |
| 292 | 292 | 'size' => 1, |
| 293 | 293 | 'maxitems' => 1, |
| 294 | 294 | 'eval' => '', |
| 295 | 295 | ), |
| 296 | 296 | ), |
| 297 | - 'deposit_license' => array( |
|
| 298 | - 'displayCond' => array( |
|
| 299 | - 'OR' => array( |
|
| 297 | + 'deposit_license' => array ( |
|
| 298 | + 'displayCond' => array ( |
|
| 299 | + 'OR' => array ( |
|
| 300 | 300 | 'FIELD:input_field:REQ:false', |
| 301 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::checkbox, |
|
| 301 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::checkbox, |
|
| 302 | 302 | ), |
| 303 | 303 | ), |
| 304 | 304 | 'exclude' => 1, |
| 305 | 305 | 'l10n_mode' => 'exclude', |
| 306 | 306 | 'label' => 'Checkbox Value', |
| 307 | - 'config' => array( |
|
| 307 | + 'config' => array ( |
|
| 308 | 308 | 'type' => 'select', |
| 309 | 309 | 'renderType' => 'selectSingle', |
| 310 | 310 | 'foreign_table' => 'tx_dpf_domain_model_depositlicense', |
| 311 | - 'items' => array( |
|
| 312 | - array('', 0), |
|
| 311 | + 'items' => array ( |
|
| 312 | + array ('', 0), |
|
| 313 | 313 | ), |
| 314 | 314 | 'size' => 1, |
| 315 | 315 | 'maxitems' => 1, |
@@ -317,32 +317,32 @@ discard block |
||
| 317 | 317 | 'default' => 0, |
| 318 | 318 | ), |
| 319 | 319 | ), |
| 320 | - 'max_input_length' => array( |
|
| 321 | - 'displayCond' => array( |
|
| 322 | - 'OR' => array( |
|
| 320 | + 'max_input_length' => array ( |
|
| 321 | + 'displayCond' => array ( |
|
| 322 | + 'OR' => array ( |
|
| 323 | 323 | 'FIELD:input_field:REQ:false', |
| 324 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::input, |
|
| 325 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::textarea, |
|
| 324 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::input, |
|
| 325 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::textarea, |
|
| 326 | 326 | ), |
| 327 | 327 | ), |
| 328 | 328 | 'exclude' => 1, |
| 329 | 329 | 'l10n_mode' => 'exclude', |
| 330 | 330 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_input_length', |
| 331 | - 'config' => array( |
|
| 331 | + 'config' => array ( |
|
| 332 | 332 | 'type' => 'input', |
| 333 | 333 | 'size' => 4, |
| 334 | 334 | 'eval' => 'trim,number', |
| 335 | 335 | 'default' => 0, |
| 336 | 336 | ), |
| 337 | 337 | ), |
| 338 | - 'input_option_list' => array( |
|
| 338 | + 'input_option_list' => array ( |
|
| 339 | 339 | 'exclude' => 1, |
| 340 | 340 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list', |
| 341 | - 'config' => array( |
|
| 341 | + 'config' => array ( |
|
| 342 | 342 | 'type' => 'select', |
| 343 | 343 | 'renderType' => 'selectSingle', |
| 344 | - 'items' => array( |
|
| 345 | - array('', 0), |
|
| 344 | + 'items' => array ( |
|
| 345 | + array ('', 0), |
|
| 346 | 346 | ), |
| 347 | 347 | 'foreign_table' => 'tx_dpf_domain_model_inputoptionlist', |
| 348 | 348 | 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)', |
@@ -351,27 +351,27 @@ discard block |
||
| 351 | 351 | 'default' => 0, |
| 352 | 352 | ), |
| 353 | 353 | ), |
| 354 | - 'default_value' => array( |
|
| 354 | + 'default_value' => array ( |
|
| 355 | 355 | 'exclude' => 1, |
| 356 | 356 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value', |
| 357 | - 'config' => array( |
|
| 357 | + 'config' => array ( |
|
| 358 | 358 | 'type' => 'text', |
| 359 | 359 | 'cols' => 20, |
| 360 | 360 | 'rows' => 3, |
| 361 | 361 | 'eval' => 'trim', |
| 362 | 362 | ), |
| 363 | 363 | ), |
| 364 | - 'fill_out_service' => array( |
|
| 364 | + 'fill_out_service' => array ( |
|
| 365 | 365 | 'exclude' => 1, |
| 366 | 366 | 'l10n_mode' => 'exclude', |
| 367 | 367 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service', |
| 368 | - 'config' => array( |
|
| 368 | + 'config' => array ( |
|
| 369 | 369 | 'type' => 'select', |
| 370 | 370 | 'renderType' => 'selectSingle', |
| 371 | - 'items' => array( |
|
| 372 | - array('', 0), |
|
| 373 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN), |
|
| 374 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND), |
|
| 371 | + 'items' => array ( |
|
| 372 | + array ('', 0), |
|
| 373 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN), |
|
| 374 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND), |
|
| 375 | 375 | ), |
| 376 | 376 | 'size' => 1, |
| 377 | 377 | 'maxitems' => 1, |
@@ -379,26 +379,26 @@ discard block |
||
| 379 | 379 | ), |
| 380 | 380 | 'onChange' => 'reload', |
| 381 | 381 | ), |
| 382 | - 'gnd_field_uid' => array( |
|
| 383 | - 'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
| 382 | + 'gnd_field_uid' => array ( |
|
| 383 | + 'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
| 384 | 384 | 'exclude' => 0, |
| 385 | 385 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.gnd_field_uid', |
| 386 | - 'config' => array( |
|
| 386 | + 'config' => array ( |
|
| 387 | 387 | 'type' => 'input', |
| 388 | 388 | 'size' => 30, |
| 389 | 389 | 'eval' => 'trim', |
| 390 | 390 | ), |
| 391 | 391 | ), |
| 392 | - 'metadatagroup' => array( |
|
| 393 | - 'config' => array( |
|
| 392 | + 'metadatagroup' => array ( |
|
| 393 | + 'config' => array ( |
|
| 394 | 394 | 'type' => 'passthrough', |
| 395 | 395 | ), |
| 396 | 396 | ), |
| 397 | - 'embargo' => array( |
|
| 397 | + 'embargo' => array ( |
|
| 398 | 398 | 'exclude' => 1, |
| 399 | 399 | 'l10n_mode' => 'exclude', |
| 400 | 400 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.embargo', |
| 401 | - 'config' => array( |
|
| 401 | + 'config' => array ( |
|
| 402 | 402 | 'type' => 'check', |
| 403 | 403 | 'default' => 0, |
| 404 | 404 | ), |
@@ -483,10 +483,10 @@ discard block |
||
| 483 | 483 | ], |
| 484 | 484 | ], |
| 485 | 485 | ], |
| 486 | - 'help_text' => array( |
|
| 486 | + 'help_text' => array ( |
|
| 487 | 487 | 'exclude' => 1, |
| 488 | 488 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.help_text', |
| 489 | - 'config' => array( |
|
| 489 | + 'config' => array ( |
|
| 490 | 490 | 'type' => 'text', |
| 491 | 491 | 'cols' => 40, |
| 492 | 492 | 'rows' => 15, |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function access() { |
| 35 | 35 | $registry = GeneralUtility::makeInstance(Registry::class); |
| 36 | - $version = $registry->get('tx_dpf','updatescript-'.self::NEW_VERSION); |
|
| 36 | + $version = $registry->get('tx_dpf', 'updatescript-' . self::NEW_VERSION); |
|
| 37 | 37 | // If the version has already been registered in the table sys_register the updatscript will be blocked. |
| 38 | 38 | if ($version) { |
| 39 | 39 | return FALSE; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function main() { |
| 46 | 46 | // This script registers itself into the sys_registry table to prevent a re-run with the same version number. |
| 47 | 47 | $registry = GeneralUtility::makeInstance(Registry::class); |
| 48 | - $newVersion = $registry->get('tx_dpf','updatescript-'.self::NEW_VERSION); |
|
| 48 | + $newVersion = $registry->get('tx_dpf', 'updatescript-' . self::NEW_VERSION); |
|
| 49 | 49 | |
| 50 | 50 | if ($newVersion) { |
| 51 | 51 | return FALSE; |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | // 3->4: (new UpdateVirtualType)->execute(); |
| 58 | 58 | (new UpdateMetadataObjectValidator)->execute(); |
| 59 | 59 | } catch (\Throwable $throwable) { |
| 60 | - return "Error while updating the extension: ".($throwable->getMessage()); |
|
| 60 | + return "Error while updating the extension: " . ($throwable->getMessage()); |
|
| 61 | 61 | } |
| 62 | - $registry->set('tx_dpf','updatescript-'.self::NEW_VERSION, TRUE); |
|
| 62 | + $registry->set('tx_dpf', 'updatescript-' . self::NEW_VERSION, TRUE); |
|
| 63 | 63 | return "The extension has been successfully updated."; |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | foreach ($repository->crossClientFindAll() as $record) { |
| 124 | 124 | if ($record['backend_only']) { |
| 125 | 125 | $recordObject = $repository->findByUid($record['uid']); |
| 126 | - $recordObject->setAccessRestrictionRoles(array(Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER)); |
|
| 126 | + $recordObject->setAccessRestrictionRoles(array (Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER)); |
|
| 127 | 127 | $repository->update($recordObject); |
| 128 | 128 | } |
| 129 | 129 | } |