@@ -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_documenttype', |
| 22 | 22 | 'label' => 'display_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', |
@@ -38,131 +38,131 @@ discard block |
||
| 38 | 38 | pubmed_transformation, pubmed_types, bibtex_transformation, bibtex_types, riswos_transformation, riswos_types, metadata_page', |
| 39 | 39 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_documenttype.gif', |
| 40 | 40 | ), |
| 41 | - 'interface' => array( |
|
| 41 | + 'interface' => array ( |
|
| 42 | 42 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, |
| 43 | 43 | name, display_name, virtual, transformation_file_output, transformation_file_input, crossref_transformation, crossref_types, |
| 44 | 44 | datacite_transformation, datacite_types, k10plus_transformation, |
| 45 | 45 | pubmed_transformation, pubmed_types, bibtex_transformation, bibtex_types, riswos_transformation, riswos_types, metadata_page', |
| 46 | 46 | ), |
| 47 | - 'types' => array( |
|
| 48 | - '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, |
|
| 47 | + 'types' => array ( |
|
| 48 | + '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, |
|
| 49 | 49 | name, display_name, virtual, transformation_file_output, transformation_file_input, crossref_transformation, crossref_types, |
| 50 | 50 | datacite_transformation, datacite_types, k10plus_transformation, |
| 51 | 51 | pubmed_transformation, pubmed_types, bibtex_transformation, bibtex_types, riswos_transformation, riswos_types, metadata_page, |
| 52 | 52 | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
| 53 | 53 | ), |
| 54 | - 'palettes' => array( |
|
| 55 | - '1' => array('showitem' => ''), |
|
| 54 | + 'palettes' => array ( |
|
| 55 | + '1' => array ('showitem' => ''), |
|
| 56 | 56 | ), |
| 57 | - 'columns' => array( |
|
| 57 | + 'columns' => array ( |
|
| 58 | 58 | |
| 59 | - 'sys_language_uid' => array( |
|
| 59 | + 'sys_language_uid' => array ( |
|
| 60 | 60 | 'exclude' => 1, |
| 61 | 61 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 62 | - 'config' => array( |
|
| 62 | + 'config' => array ( |
|
| 63 | 63 | 'type' => 'select', |
| 64 | 64 | 'renderType' => 'selectSingle', |
| 65 | 65 | 'foreign_table' => 'sys_language', |
| 66 | 66 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 67 | - 'items' => array( |
|
| 68 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 69 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 67 | + 'items' => array ( |
|
| 68 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 69 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 70 | 70 | ), |
| 71 | 71 | ), |
| 72 | 72 | ), |
| 73 | - 'l10n_parent' => array( |
|
| 73 | + 'l10n_parent' => array ( |
|
| 74 | 74 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 75 | 75 | 'exclude' => 1, |
| 76 | 76 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 77 | - 'config' => array( |
|
| 77 | + 'config' => array ( |
|
| 78 | 78 | 'type' => 'select', |
| 79 | 79 | 'renderType' => 'selectSingle', |
| 80 | - 'items' => array( |
|
| 81 | - array('', 0), |
|
| 80 | + 'items' => array ( |
|
| 81 | + array ('', 0), |
|
| 82 | 82 | ), |
| 83 | 83 | 'foreign_table' => 'tx_dpf_domain_model_documenttype', |
| 84 | 84 | 'foreign_table_where' => 'AND tx_dpf_domain_model_documenttype.pid=###CURRENT_PID### AND tx_dpf_domain_model_documenttype.sys_language_uid IN (-1,0)', |
| 85 | 85 | ), |
| 86 | 86 | ), |
| 87 | - 'l10n_diffsource' => array( |
|
| 88 | - 'config' => array( |
|
| 87 | + 'l10n_diffsource' => array ( |
|
| 88 | + 'config' => array ( |
|
| 89 | 89 | 'type' => 'passthrough', |
| 90 | 90 | ), |
| 91 | 91 | ), |
| 92 | 92 | |
| 93 | - 't3ver_label' => array( |
|
| 93 | + 't3ver_label' => array ( |
|
| 94 | 94 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 95 | - 'config' => array( |
|
| 95 | + 'config' => array ( |
|
| 96 | 96 | 'type' => 'input', |
| 97 | 97 | 'size' => 30, |
| 98 | 98 | 'max' => 255, |
| 99 | 99 | ), |
| 100 | 100 | ), |
| 101 | 101 | |
| 102 | - 'hidden' => array( |
|
| 102 | + 'hidden' => array ( |
|
| 103 | 103 | 'exclude' => 1, |
| 104 | 104 | 'l10n_mode' => 'exclude', |
| 105 | 105 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 106 | - 'config' => array( |
|
| 106 | + 'config' => array ( |
|
| 107 | 107 | 'type' => 'check', |
| 108 | 108 | ), |
| 109 | 109 | ), |
| 110 | - 'starttime' => array( |
|
| 110 | + 'starttime' => array ( |
|
| 111 | 111 | 'exclude' => 1, |
| 112 | 112 | 'l10n_mode' => 'mergeIfNotBlank', |
| 113 | 113 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 114 | - 'config' => array( |
|
| 114 | + 'config' => array ( |
|
| 115 | 115 | 'type' => 'input', |
| 116 | 116 | 'renderType' => 'inputDateTime', |
| 117 | 117 | 'size' => 13, |
| 118 | 118 | 'eval' => 'datetime', |
| 119 | 119 | 'checkbox' => 0, |
| 120 | 120 | 'default' => 0, |
| 121 | - 'range' => array( |
|
| 121 | + 'range' => array ( |
|
| 122 | 122 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 123 | 123 | ), |
| 124 | 124 | ), |
| 125 | 125 | ), |
| 126 | - 'endtime' => array( |
|
| 126 | + 'endtime' => array ( |
|
| 127 | 127 | 'exclude' => 1, |
| 128 | 128 | 'l10n_mode' => 'mergeIfNotBlank', |
| 129 | 129 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 130 | - 'config' => array( |
|
| 130 | + 'config' => array ( |
|
| 131 | 131 | 'type' => 'input', |
| 132 | 132 | 'renderType' => 'inputDateTime', |
| 133 | 133 | 'size' => 13, |
| 134 | 134 | 'eval' => 'datetime', |
| 135 | 135 | 'checkbox' => 0, |
| 136 | 136 | 'default' => 0, |
| 137 | - 'range' => array( |
|
| 137 | + 'range' => array ( |
|
| 138 | 138 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 139 | 139 | ), |
| 140 | 140 | ), |
| 141 | 141 | ), |
| 142 | - 'name' => array( |
|
| 142 | + 'name' => array ( |
|
| 143 | 143 | 'exclude' => 1, |
| 144 | 144 | 'l10n_mode' => 'exclude', |
| 145 | 145 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.name', |
| 146 | - 'config' => array( |
|
| 146 | + 'config' => array ( |
|
| 147 | 147 | 'type' => 'input', |
| 148 | 148 | 'size' => 30, |
| 149 | 149 | 'eval' => 'trim,uniqueInPid', |
| 150 | 150 | ), |
| 151 | 151 | ), |
| 152 | - 'display_name' => array( |
|
| 152 | + 'display_name' => array ( |
|
| 153 | 153 | 'exclude' => 1, |
| 154 | 154 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.display_name', |
| 155 | - 'config' => array( |
|
| 155 | + 'config' => array ( |
|
| 156 | 156 | 'type' => 'input', |
| 157 | 157 | 'size' => 30, |
| 158 | 158 | 'eval' => 'trim', |
| 159 | 159 | ), |
| 160 | 160 | ), |
| 161 | - 'virtual' => array( |
|
| 161 | + 'virtual' => array ( |
|
| 162 | 162 | 'exclude' => 1, |
| 163 | 163 | 'l10n_mode' => 'exclude', |
| 164 | 164 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.virtual', |
| 165 | - 'config' => array( |
|
| 165 | + 'config' => array ( |
|
| 166 | 166 | 'type' => 'check', |
| 167 | 167 | 'default' => 0, |
| 168 | 168 | ), |
@@ -172,8 +172,8 @@ discard block |
||
| 172 | 172 | 'l10n_mode' => 'exclude', |
| 173 | 173 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.transformation_file_output', |
| 174 | 174 | 'config' => [ |
| 175 | - 'items' => array( |
|
| 176 | - array(' --- Bitte wählen --- ',0) |
|
| 175 | + 'items' => array ( |
|
| 176 | + array (' --- Bitte wählen --- ', 0) |
|
| 177 | 177 | ), |
| 178 | 178 | 'type' => 'select', |
| 179 | 179 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | 'l10n_mode' => 'exclude', |
| 187 | 187 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.transformation_file_input', |
| 188 | 188 | 'config' => [ |
| 189 | - 'items' => array( |
|
| 190 | - array(' --- Bitte wählen --- ',0) |
|
| 189 | + 'items' => array ( |
|
| 190 | + array (' --- Bitte wählen --- ', 0) |
|
| 191 | 191 | ), |
| 192 | 192 | 'type' => 'select', |
| 193 | 193 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -195,21 +195,21 @@ discard block |
||
| 195 | 195 | 'minitems' => 0, |
| 196 | 196 | ], |
| 197 | 197 | ], |
| 198 | - 'metadata_page' => array( |
|
| 198 | + 'metadata_page' => array ( |
|
| 199 | 199 | 'exclude' => 1, |
| 200 | 200 | 'l10n_mode' => 'exclude', |
| 201 | 201 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.metadata_page', |
| 202 | - 'config' => array( |
|
| 202 | + 'config' => array ( |
|
| 203 | 203 | 'type' => 'inline', |
| 204 | 204 | 'foreign_table' => 'tx_dpf_domain_model_metadatapage', |
| 205 | 205 | 'foreign_field' => 'documenttype', |
| 206 | 206 | 'foreign_label' => 'display_name', |
| 207 | 207 | 'foreign_sortby' => 'page_number', |
| 208 | - 'behaviour' => array( |
|
| 208 | + 'behaviour' => array ( |
|
| 209 | 209 | 'disableMovingChildrenWithParent' => 1, |
| 210 | 210 | ), |
| 211 | 211 | 'maxitems' => 9999, |
| 212 | - 'appearance' => array( |
|
| 212 | + 'appearance' => array ( |
|
| 213 | 213 | 'collapseAll' => 0, |
| 214 | 214 | 'levelLinksPosition' => 'top', |
| 215 | 215 | 'showSynchronizationLink' => 1, |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | 'l10n_mode' => 'exclude', |
| 224 | 224 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.crossref_transformation', |
| 225 | 225 | 'config' => [ |
| 226 | - 'items' => array( |
|
| 227 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 226 | + 'items' => array ( |
|
| 227 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 228 | 228 | ), |
| 229 | 229 | 'type' => 'select', |
| 230 | 230 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -232,11 +232,11 @@ discard block |
||
| 232 | 232 | 'minitems' => 0, |
| 233 | 233 | ], |
| 234 | 234 | ], |
| 235 | - 'crossref_types' => array( |
|
| 235 | + 'crossref_types' => array ( |
|
| 236 | 236 | 'exclude' => 1, |
| 237 | 237 | 'l10n_mode' => 'exclude', |
| 238 | 238 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.crossref_types', |
| 239 | - 'config' => array( |
|
| 239 | + 'config' => array ( |
|
| 240 | 240 | 'type' => 'select', |
| 241 | 241 | 'size' => 10, |
| 242 | 242 | 'maxitems' => 100, |
@@ -250,8 +250,8 @@ discard block |
||
| 250 | 250 | 'l10n_mode' => 'exclude', |
| 251 | 251 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.datacite_transformation', |
| 252 | 252 | 'config' => [ |
| 253 | - 'items' => array( |
|
| 254 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 253 | + 'items' => array ( |
|
| 254 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 255 | 255 | ), |
| 256 | 256 | 'type' => 'select', |
| 257 | 257 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -259,15 +259,15 @@ discard block |
||
| 259 | 259 | 'minitems' => 0, |
| 260 | 260 | ], |
| 261 | 261 | ], |
| 262 | - 'datacite_types' => array( |
|
| 262 | + 'datacite_types' => array ( |
|
| 263 | 263 | 'exclude' => 1, |
| 264 | 264 | 'l10n_mode' => 'exclude', |
| 265 | 265 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.datacite_types', |
| 266 | - 'config' => array( |
|
| 266 | + 'config' => array ( |
|
| 267 | 267 | 'type' => 'select', |
| 268 | 268 | 'size' => 10, |
| 269 | 269 | 'maxitems' => 100, |
| 270 | - 'items' => array( |
|
| 270 | + 'items' => array ( |
|
| 271 | 271 | ), |
| 272 | 272 | 'items' => \EWW\Dpf\Services\ImportExternalMetadata\DataCiteImporter::typeItems( |
| 273 | 273 | \EWW\Dpf\Services\ImportExternalMetadata\DataCiteImporter::types() |
@@ -279,8 +279,8 @@ discard block |
||
| 279 | 279 | 'l10n_mode' => 'exclude', |
| 280 | 280 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.k10plus_transformation', |
| 281 | 281 | 'config' => [ |
| 282 | - 'items' => array( |
|
| 283 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 282 | + 'items' => array ( |
|
| 283 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 284 | 284 | ), |
| 285 | 285 | 'type' => 'select', |
| 286 | 286 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -288,15 +288,15 @@ discard block |
||
| 288 | 288 | 'minitems' => 0, |
| 289 | 289 | ], |
| 290 | 290 | ], |
| 291 | - 'k10plus_types' => array( |
|
| 291 | + 'k10plus_types' => array ( |
|
| 292 | 292 | 'exclude' => 1, |
| 293 | 293 | 'l10n_mode' => 'exclude', |
| 294 | 294 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.k10plus_types', |
| 295 | - 'config' => array( |
|
| 295 | + 'config' => array ( |
|
| 296 | 296 | 'type' => 'select', |
| 297 | 297 | 'size' => 10, |
| 298 | 298 | 'maxitems' => 100, |
| 299 | - 'items' => array( |
|
| 299 | + 'items' => array ( |
|
| 300 | 300 | ), |
| 301 | 301 | 'items' => \EWW\Dpf\Services\ImportExternalMetadata\K10plusImporter::typeItems( |
| 302 | 302 | \EWW\Dpf\Services\ImportExternalMetadata\K10plusImporter::types() |
@@ -308,8 +308,8 @@ discard block |
||
| 308 | 308 | 'l10n_mode' => 'exclude', |
| 309 | 309 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.pubmed_transformation', |
| 310 | 310 | 'config' => [ |
| 311 | - 'items' => array( |
|
| 312 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 311 | + 'items' => array ( |
|
| 312 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 313 | 313 | ), |
| 314 | 314 | 'type' => 'select', |
| 315 | 315 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -317,15 +317,15 @@ discard block |
||
| 317 | 317 | 'minitems' => 0, |
| 318 | 318 | ], |
| 319 | 319 | ], |
| 320 | - 'pubmed_types' => array( |
|
| 320 | + 'pubmed_types' => array ( |
|
| 321 | 321 | 'exclude' => 1, |
| 322 | 322 | 'l10n_mode' => 'exclude', |
| 323 | 323 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.pubmed_types', |
| 324 | - 'config' => array( |
|
| 324 | + 'config' => array ( |
|
| 325 | 325 | 'type' => 'select', |
| 326 | 326 | 'size' => 10, |
| 327 | 327 | 'maxitems' => 100, |
| 328 | - 'items' => array( |
|
| 328 | + 'items' => array ( |
|
| 329 | 329 | ), |
| 330 | 330 | 'items' => \EWW\Dpf\Services\ImportExternalMetadata\PubMedImporter::typeItems( |
| 331 | 331 | \EWW\Dpf\Services\ImportExternalMetadata\PubMedImporter::types() |
@@ -337,8 +337,8 @@ discard block |
||
| 337 | 337 | 'l10n_mode' => 'exclude', |
| 338 | 338 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.bibtex_transformation', |
| 339 | 339 | 'config' => [ |
| 340 | - 'items' => array( |
|
| 341 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 340 | + 'items' => array ( |
|
| 341 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 342 | 342 | ), |
| 343 | 343 | 'type' => 'select', |
| 344 | 344 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -346,15 +346,15 @@ discard block |
||
| 346 | 346 | 'minitems' => 0, |
| 347 | 347 | ], |
| 348 | 348 | ], |
| 349 | - 'bibtex_types' => array( |
|
| 349 | + 'bibtex_types' => array ( |
|
| 350 | 350 | 'exclude' => 1, |
| 351 | 351 | 'l10n_mode' => 'exclude', |
| 352 | 352 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.bibtex_types', |
| 353 | - 'config' => array( |
|
| 353 | + 'config' => array ( |
|
| 354 | 354 | 'type' => 'select', |
| 355 | 355 | 'size' => 10, |
| 356 | 356 | 'maxitems' => 100, |
| 357 | - 'items' => array( |
|
| 357 | + 'items' => array ( |
|
| 358 | 358 | ), |
| 359 | 359 | 'items' => \EWW\Dpf\Services\ImportExternalMetadata\BibTexFileImporter::typeItems( |
| 360 | 360 | \EWW\Dpf\Services\ImportExternalMetadata\BibTexFileImporter::types() |
@@ -366,8 +366,8 @@ discard block |
||
| 366 | 366 | 'l10n_mode' => 'exclude', |
| 367 | 367 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.riswos_transformation', |
| 368 | 368 | 'config' => [ |
| 369 | - 'items' => array( |
|
| 370 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation',0) |
|
| 369 | + 'items' => array ( |
|
| 370 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.choose_transformation', 0) |
|
| 371 | 371 | ), |
| 372 | 372 | 'type' => 'select', |
| 373 | 373 | 'foreign_table' => 'tx_dpf_domain_model_transformationfile', |
@@ -375,15 +375,15 @@ discard block |
||
| 375 | 375 | 'minitems' => 0, |
| 376 | 376 | ], |
| 377 | 377 | ], |
| 378 | - 'riswos_types' => array( |
|
| 378 | + 'riswos_types' => array ( |
|
| 379 | 379 | 'exclude' => 1, |
| 380 | 380 | 'l10n_mode' => 'exclude', |
| 381 | 381 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttype.ris_types', |
| 382 | - 'config' => array( |
|
| 382 | + 'config' => array ( |
|
| 383 | 383 | 'type' => 'select', |
| 384 | 384 | 'size' => 10, |
| 385 | 385 | 'maxitems' => 100, |
| 386 | - 'items' => array( |
|
| 386 | + 'items' => array ( |
|
| 387 | 387 | ), |
| 388 | 388 | 'items' => \EWW\Dpf\Services\ImportExternalMetadata\RisWosFileImporter::typeItems( |
| 389 | 389 | \EWW\Dpf\Services\ImportExternalMetadata\RisWosFileImporter::types() |
@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | require_once $composerAutoloadFile; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array( |
|
| 25 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array ( |
|
| 26 | 26 | 'extension' => $_EXTKEY, |
| 27 | 27 | 'title' => 'Qucosa-Dokumente ans Repository übertragen.', |
| 28 | 28 | 'description' => '', |
| 29 | 29 | ); |
| 30 | 30 | |
| 31 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array( |
|
| 31 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array ( |
|
| 32 | 32 | 'extension' => $_EXTKEY, |
| 33 | 33 | 'title' => 'Kitodo.Publication Embargo Task', |
| 34 | 34 | 'description' => 'Embargo task for sending information to admins or publish files automatically if the embargo date is expired', |
@@ -36,20 +36,20 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) { |
| 39 | - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array(); |
|
| 39 | + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array (); |
|
| 40 | 40 | } |
| 41 | 41 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController'; |
| 42 | 42 | |
| 43 | 43 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 44 | 44 | 'EWW.' . $_EXTKEY, |
| 45 | 45 | 'Qucosaform', |
| 46 | - array( |
|
| 46 | + array ( |
|
| 47 | 47 | 'DocumentForm' => 'list,new,create,edit,update,delete,cancel', |
| 48 | 48 | 'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut', |
| 49 | 49 | 'Gnd' => 'search', |
| 50 | 50 | ), |
| 51 | 51 | // non-cacheable actions |
| 52 | - array( |
|
| 52 | + array ( |
|
| 53 | 53 | 'DocumentForm' => 'list,new,create,edit,update,delete,cancel,ajaxGroup,ajaxFileGroup,ajaxField', |
| 54 | 54 | 'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut', |
| 55 | 55 | 'Gnd' => 'search', |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 62 | 62 | 'EWW.' . $_EXTKEY, |
| 63 | 63 | 'Frontendsearch', |
| 64 | - array( |
|
| 64 | + array ( |
|
| 65 | 65 | 'SearchFE' => 'search,extendedSearch,showSearchForm', |
| 66 | 66 | ), |
| 67 | 67 | // non-cacheable actions |
| 68 | - array( |
|
| 68 | + array ( |
|
| 69 | 69 | 'SearchFE' => 'search,extendedSearch' |
| 70 | 70 | ) |
| 71 | 71 | ); |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 74 | 74 | 'EWW.' . $_EXTKEY, |
| 75 | 75 | 'Getfile', |
| 76 | - array( |
|
| 76 | + array ( |
|
| 77 | 77 | 'GetFile' => 'attachment', |
| 78 | 78 | ), |
| 79 | 79 | // non-cacheable actions |
| 80 | - array( |
|
| 80 | + array ( |
|
| 81 | 81 | 'GetFile' => 'attachment', |
| 82 | 82 | ) |
| 83 | 83 | ); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 123 | 123 | 'EWW.' . $_EXTKEY, |
| 124 | 124 | 'Backoffice', |
| 125 | - array( |
|
| 125 | + array ( |
|
| 126 | 126 | 'Workspace' => 'listWorkspace, initIndex, ' |
| 127 | 127 | .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, editDocument, batchSetInProgress', |
| 128 | 128 | 'Document' => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, ' |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | 'User' => 'settings, saveSettings', |
| 148 | 148 | ), |
| 149 | 149 | // non-cacheable actions |
| 150 | - array( |
|
| 150 | + array ( |
|
| 151 | 151 | 'Workspace' => 'listWorkspace, initIndex, ' |
| 152 | 152 | .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, editDocument, batchSetInProgress', |
| 153 | 153 | 'Document' => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, ' |
@@ -15,8 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | |
| 18 | -class BulkImportSessionData |
|
| 19 | -{ |
|
| 18 | +class BulkImportSessionData { |
|
| 20 | 19 | /** |
| 21 | 20 | * @var string |
| 22 | 21 | */ |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class Session |
|
| 18 | -{ |
|
| 17 | +class Session { |
|
| 19 | 18 | const ROOT_KEY = "tx_dpf"; |
| 20 | 19 | const LIST_ACTION_KEY = "list_action"; |
| 21 | 20 | const WORKSPACE = "workspace"; |
@@ -25,8 +24,7 @@ discard block |
||
| 25 | 24 | /** |
| 26 | 25 | * @return SearchSessionData $data |
| 27 | 26 | */ |
| 28 | - public function getWorkspaceData() |
|
| 29 | - { |
|
| 27 | + public function getWorkspaceData() { |
|
| 30 | 28 | $sessionData = $this->getData(); |
| 31 | 29 | if (array_key_exists(self::WORKSPACE, $sessionData)) { |
| 32 | 30 | return unserialize($sessionData[self::WORKSPACE]); |
@@ -38,8 +36,7 @@ discard block |
||
| 38 | 36 | /** |
| 39 | 37 | * @param SearchSessionData $data |
| 40 | 38 | */ |
| 41 | - public function setWorkspaceData(SearchSessionData $data) |
|
| 42 | - { |
|
| 39 | + public function setWorkspaceData(SearchSessionData $data) { |
|
| 43 | 40 | $sessionData[self::WORKSPACE] = serialize($data); |
| 44 | 41 | $this->setData($sessionData); |
| 45 | 42 | } |
@@ -47,8 +44,7 @@ discard block |
||
| 47 | 44 | /** |
| 48 | 45 | * @return BulkImportSessionData |
| 49 | 46 | */ |
| 50 | - public function getBulkImportData() |
|
| 51 | - { |
|
| 47 | + public function getBulkImportData() { |
|
| 52 | 48 | $sessionData = $this->getData(); |
| 53 | 49 | if (array_key_exists(self::BULKIMPORT, $sessionData)) { |
| 54 | 50 | return unserialize($sessionData[self::BULKIMPORT]); |
@@ -60,8 +56,7 @@ discard block |
||
| 60 | 56 | /** |
| 61 | 57 | * @param BulkImportSessionData $data |
| 62 | 58 | */ |
| 63 | - public function setBulkImportData(BulkImportSessionData $data) |
|
| 64 | - { |
|
| 59 | + public function setBulkImportData(BulkImportSessionData $data) { |
|
| 65 | 60 | $sessionData = $this->getData(); |
| 66 | 61 | $sessionData[self::BULKIMPORT] = serialize($data); |
| 67 | 62 | $this->setData($sessionData); |
@@ -73,8 +68,7 @@ discard block |
||
| 73 | 68 | * @param $action |
| 74 | 69 | * @param $controller |
| 75 | 70 | */ |
| 76 | - public function setStoredAction($action, $controller, $uri = null) |
|
| 77 | - { |
|
| 71 | + public function setStoredAction($action, $controller, $uri = null) { |
|
| 78 | 72 | $sessionData = $this->getData(); |
| 79 | 73 | $sessionData[self::LIST_ACTION_KEY] = [$action, $controller, $uri]; |
| 80 | 74 | $this->setData($sessionData); |
@@ -86,8 +80,7 @@ discard block |
||
| 86 | 80 | * |
| 87 | 81 | * @return array|mixed |
| 88 | 82 | */ |
| 89 | - public function getStoredAction() |
|
| 90 | - { |
|
| 83 | + public function getStoredAction() { |
|
| 91 | 84 | $sessionData = $this->getData(); |
| 92 | 85 | if (is_array($sessionData) && array_key_exists(self::LIST_ACTION_KEY, $sessionData)) { |
| 93 | 86 | return $sessionData[self::LIST_ACTION_KEY]; |
@@ -101,8 +94,7 @@ discard block |
||
| 101 | 94 | * |
| 102 | 95 | * @param array $data |
| 103 | 96 | */ |
| 104 | - public function setData($data) |
|
| 105 | - { |
|
| 97 | + public function setData($data) { |
|
| 106 | 98 | $userGlobals = $this->getUserGlobals(); |
| 107 | 99 | |
| 108 | 100 | if ($userGlobals) { |
@@ -117,8 +109,7 @@ discard block |
||
| 117 | 109 | * |
| 118 | 110 | * @return array |
| 119 | 111 | */ |
| 120 | - public function getData() |
|
| 121 | - { |
|
| 112 | + public function getData() { |
|
| 122 | 113 | $userGlobals = $this->getUserGlobals(); |
| 123 | 114 | |
| 124 | 115 | $sessionData = null; |
@@ -139,8 +130,7 @@ discard block |
||
| 139 | 130 | * |
| 140 | 131 | * @return mixed|null |
| 141 | 132 | */ |
| 142 | - protected function getUserGlobals() |
|
| 143 | - { |
|
| 133 | + protected function getUserGlobals() { |
|
| 144 | 134 | $userGlobals = null; |
| 145 | 135 | |
| 146 | 136 | if (!empty($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])) { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @param $action |
| 74 | 74 | * @param $controller |
| 75 | 75 | */ |
| 76 | - public function setStoredAction($action, $controller, $uri = null) |
|
| 76 | + public function setStoredAction($action, $controller, $uri = NULL) |
|
| 77 | 77 | { |
| 78 | 78 | $sessionData = $this->getData(); |
| 79 | 79 | $sessionData[self::LIST_ACTION_KEY] = [$action, $controller, $uri]; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | { |
| 122 | 122 | $userGlobals = $this->getUserGlobals(); |
| 123 | 123 | |
| 124 | - $sessionData = null; |
|
| 124 | + $sessionData = NULL; |
|
| 125 | 125 | |
| 126 | 126 | if ($userGlobals) { |
| 127 | 127 | $sessionData = $userGlobals->getSessionData(self::ROOT_KEY); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | protected function getUserGlobals() |
| 143 | 143 | { |
| 144 | - $userGlobals = null; |
|
| 144 | + $userGlobals = NULL; |
|
| 145 | 145 | |
| 146 | 146 | if (!empty($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])) { |
| 147 | 147 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @var array |
| 45 | 45 | */ |
| 46 | - protected $settings = array(); |
|
| 46 | + protected $settings = array (); |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @var array |
| 60 | 60 | */ |
| 61 | - protected $extensionConfiguration = array(); |
|
| 61 | + protected $extensionConfiguration = array (); |
|
| 62 | 62 | |
| 63 | 63 | public function __construct() |
| 64 | 64 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $clientRepository = $objectManager->get(ClientRepository::class); |
| 67 | 67 | |
| 68 | 68 | if (TYPO3_MODE === 'BE') { |
| 69 | - $selectedPageId = (int)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); |
|
| 69 | + $selectedPageId = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); |
|
| 70 | 70 | if ($selectedPageId) { |
| 71 | 71 | $this->client = $clientRepository->findAll()->current(); |
| 72 | 72 | |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | use TYPO3\CMS\Extbase\Object\ObjectManager; |
| 20 | 20 | use EWW\Dpf\Domain\Repository\ClientRepository; |
| 21 | 21 | |
| 22 | -class ClientConfigurationManager |
|
| 23 | -{ |
|
| 22 | +class ClientConfigurationManager { |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * objectManager |
@@ -60,8 +59,7 @@ discard block |
||
| 60 | 59 | */ |
| 61 | 60 | protected $extensionConfiguration = array(); |
| 62 | 61 | |
| 63 | - public function __construct() |
|
| 64 | - { |
|
| 62 | + public function __construct() { |
|
| 65 | 63 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 66 | 64 | $clientRepository = $objectManager->get(ClientRepository::class); |
| 67 | 65 | |
@@ -88,8 +86,7 @@ discard block |
||
| 88 | 86 | $this->extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['dpf']); |
| 89 | 87 | } |
| 90 | 88 | |
| 91 | - public function setConfigurationPid($pid) |
|
| 92 | - { |
|
| 89 | + public function setConfigurationPid($pid) { |
|
| 93 | 90 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 94 | 91 | $clientRepository = $objectManager->get(ClientRepository::class); |
| 95 | 92 | |
@@ -102,8 +99,7 @@ discard block |
||
| 102 | 99 | * |
| 103 | 100 | * @var array |
| 104 | 101 | */ |
| 105 | - public function getSetting($settingName, $extConfig = null) |
|
| 106 | - { |
|
| 102 | + public function getSetting($settingName, $extConfig = null) { |
|
| 107 | 103 | $setting = null; |
| 108 | 104 | if ($this->client) { |
| 109 | 105 | $setting = trim($this->client->{"get" . ucfirst($settingName)}()); |
@@ -118,248 +114,199 @@ discard block |
||
| 118 | 114 | } |
| 119 | 115 | |
| 120 | 116 | |
| 121 | - public function getOwnerId() |
|
| 122 | - { |
|
| 117 | + public function getOwnerId() { |
|
| 123 | 118 | return $this->getSetting("ownerId"); |
| 124 | 119 | } |
| 125 | 120 | |
| 126 | - public function getSwordHost() |
|
| 127 | - { |
|
| 121 | + public function getSwordHost() { |
|
| 128 | 122 | return $this->getSetting("swordHost", "swordHost"); |
| 129 | 123 | } |
| 130 | 124 | |
| 131 | - public function getSwordUser() |
|
| 132 | - { |
|
| 125 | + public function getSwordUser() { |
|
| 133 | 126 | return $this->getSetting("swordUser", "swordUser"); |
| 134 | 127 | } |
| 135 | 128 | |
| 136 | - public function getSwordPassword() |
|
| 137 | - { |
|
| 129 | + public function getSwordPassword() { |
|
| 138 | 130 | return $this->getSetting("swordPassword", "swordPassword"); |
| 139 | 131 | } |
| 140 | 132 | |
| 141 | - public function getSwordCollectionNamespace() |
|
| 142 | - { |
|
| 133 | + public function getSwordCollectionNamespace() { |
|
| 143 | 134 | return $this->getSetting("swordCollectionNamespace", "swordCollectionNamespace"); |
| 144 | 135 | } |
| 145 | 136 | |
| 146 | - public function getFedoraHost() |
|
| 147 | - { |
|
| 137 | + public function getFedoraHost() { |
|
| 148 | 138 | return $this->getSetting("fedoraHost", "fedoraHost"); |
| 149 | 139 | } |
| 150 | 140 | |
| 151 | - public function getFedoraUser() |
|
| 152 | - { |
|
| 141 | + public function getFedoraUser() { |
|
| 153 | 142 | return $this->getSetting("fedoraUser", "fedoraUser"); |
| 154 | 143 | } |
| 155 | 144 | |
| 156 | - public function getFedoraPassword() |
|
| 157 | - { |
|
| 145 | + public function getFedoraPassword() { |
|
| 158 | 146 | return $this->getSetting("fedoraPassword", "fedoraPassword"); |
| 159 | 147 | } |
| 160 | 148 | |
| 161 | - public function getElasticSearchHost() |
|
| 162 | - { |
|
| 149 | + public function getElasticSearchHost() { |
|
| 163 | 150 | return $this->getSetting("elasticSearchHost", "elasticSearchHost"); |
| 164 | 151 | } |
| 165 | 152 | |
| 166 | - public function getElasticSearchPort() |
|
| 167 | - { |
|
| 153 | + public function getElasticSearchPort() { |
|
| 168 | 154 | return $this->getSetting("elasticSearchPort", "elasticSearchPort"); |
| 169 | 155 | } |
| 170 | 156 | |
| 171 | - public function getUploadDirectory() |
|
| 172 | - { |
|
| 157 | + public function getUploadDirectory() { |
|
| 173 | 158 | return $this->getSetting("uploadDirectory", "uploadDirectory"); |
| 174 | 159 | } |
| 175 | 160 | |
| 176 | - public function getUploadDomain() |
|
| 177 | - { |
|
| 161 | + public function getUploadDomain() { |
|
| 178 | 162 | return $this->getSetting("uploadDomain", "uploadDomain"); |
| 179 | 163 | } |
| 180 | 164 | |
| 181 | - public function getSuggestionFlashMessage() |
|
| 182 | - { |
|
| 165 | + public function getSuggestionFlashMessage() { |
|
| 183 | 166 | return $this->getSetting("suggestionFlashmessage", "suggestionFlashmessage"); |
| 184 | 167 | } |
| 185 | 168 | |
| 186 | - public function getFileXpath() |
|
| 187 | - { |
|
| 169 | + public function getFileXpath() { |
|
| 188 | 170 | return $this->getSetting("fileXpath", "fileXpath"); |
| 189 | 171 | } |
| 190 | 172 | |
| 191 | - public function getStateXpath() |
|
| 192 | - { |
|
| 173 | + public function getStateXpath() { |
|
| 193 | 174 | return $this->getSetting("stateXpath", "stateXpath"); |
| 194 | 175 | } |
| 195 | 176 | |
| 196 | - public function getTypeXpath() |
|
| 197 | - { |
|
| 177 | + public function getTypeXpath() { |
|
| 198 | 178 | return $this->getSetting("typeXpath", "typeXpath"); |
| 199 | 179 | } |
| 200 | 180 | |
| 201 | - public function getTypeXpathInput() |
|
| 202 | - { |
|
| 181 | + public function getTypeXpathInput() { |
|
| 203 | 182 | return $this->getSetting("typeXpathInput", "typeXpathInput"); |
| 204 | 183 | } |
| 205 | 184 | |
| 206 | - public function getUrnXpath() |
|
| 207 | - { |
|
| 185 | + public function getUrnXpath() { |
|
| 208 | 186 | return $this->getSetting("urnXpath", "urnXpath"); |
| 209 | 187 | } |
| 210 | 188 | |
| 211 | - public function getQucosaUrnXpath() |
|
| 212 | - { |
|
| 189 | + public function getQucosaUrnXpath() { |
|
| 213 | 190 | return $this->getSetting("qucosaUrnXpath", "qucosaUrnXpath"); |
| 214 | 191 | } |
| 215 | 192 | |
| 216 | - public function getDateXpath() |
|
| 217 | - { |
|
| 193 | + public function getDateXpath() { |
|
| 218 | 194 | return $this->getSetting("dateXpath", "dateXpath"); |
| 219 | 195 | } |
| 220 | 196 | |
| 221 | - public function getPublishingYearXpath() |
|
| 222 | - { |
|
| 197 | + public function getPublishingYearXpath() { |
|
| 223 | 198 | return $this->getSetting("publishingYearXpath", "publishingYearXpath"); |
| 224 | 199 | } |
| 225 | 200 | |
| 226 | - public function getNamespaces() |
|
| 227 | - { |
|
| 201 | + public function getNamespaces() { |
|
| 228 | 202 | return $this->getSetting("namespaces", "namespaces"); |
| 229 | 203 | } |
| 230 | 204 | |
| 231 | - public function getTitleXpath() |
|
| 232 | - { |
|
| 205 | + public function getTitleXpath() { |
|
| 233 | 206 | return $this->getSetting("titleXpath", "titleXpath"); |
| 234 | 207 | } |
| 235 | 208 | |
| 236 | - public function getOriginalSourceTitleXpath() |
|
| 237 | - { |
|
| 209 | + public function getOriginalSourceTitleXpath() { |
|
| 238 | 210 | return $this->getSetting("originalSourceTitleXpath", "originalSourceTitleXpath"); |
| 239 | 211 | } |
| 240 | 212 | |
| 241 | - public function getProcessNumberXpath() |
|
| 242 | - { |
|
| 213 | + public function getProcessNumberXpath() { |
|
| 243 | 214 | return $this->getSetting("processnumberXpath", "processnumberXpath"); |
| 244 | 215 | } |
| 245 | 216 | |
| 246 | - public function getSubmitterNameXpath() |
|
| 247 | - { |
|
| 217 | + public function getSubmitterNameXpath() { |
|
| 248 | 218 | return $this->getSetting("submitterNameXpath", "submitterNameXpath"); |
| 249 | 219 | } |
| 250 | 220 | |
| 251 | - public function getSubmitterEmailXpath() |
|
| 252 | - { |
|
| 221 | + public function getSubmitterEmailXpath() { |
|
| 253 | 222 | return $this->getSetting("submitterEmailXpath", "submitterEmailXpath"); |
| 254 | 223 | } |
| 255 | 224 | |
| 256 | - public function getSubmitterNoticeXpath() |
|
| 257 | - { |
|
| 225 | + public function getSubmitterNoticeXpath() { |
|
| 258 | 226 | return $this->getSetting("submitterNoticeXpath", "submitterNoticeXpath"); |
| 259 | 227 | } |
| 260 | 228 | |
| 261 | - public function getCreatorXpath() |
|
| 262 | - { |
|
| 229 | + public function getCreatorXpath() { |
|
| 263 | 230 | return $this->getSetting("creatorXpath", "creatorXpath"); |
| 264 | 231 | } |
| 265 | 232 | |
| 266 | - public function getCreationDateXpath() |
|
| 267 | - { |
|
| 233 | + public function getCreationDateXpath() { |
|
| 268 | 234 | return $this->getSetting("creationDateXpath", "creationDateXpath"); |
| 269 | 235 | } |
| 270 | 236 | |
| 271 | - public function getRepositoryCreationDateXpath() |
|
| 272 | - { |
|
| 237 | + public function getRepositoryCreationDateXpath() { |
|
| 273 | 238 | return $this->getSetting("repositoryCreationDateXpath", "repositoryCreationDateXpath"); |
| 274 | 239 | } |
| 275 | 240 | |
| 276 | - public function getRepositoryLastModDateXpath() |
|
| 277 | - { |
|
| 241 | + public function getRepositoryLastModDateXpath() { |
|
| 278 | 242 | return $this->getSetting("repositoryLastModDateXpath", "repositoryLastModDateXpath"); |
| 279 | 243 | } |
| 280 | 244 | |
| 281 | - public function getDepositLicenseXpath() |
|
| 282 | - { |
|
| 245 | + public function getDepositLicenseXpath() { |
|
| 283 | 246 | return $this->getSetting("depositLicenseXpath", "depositLicenseXpath"); |
| 284 | 247 | } |
| 285 | 248 | |
| 286 | - public function getAllNotesXpath() |
|
| 287 | - { |
|
| 249 | + public function getAllNotesXpath() { |
|
| 288 | 250 | return $this->getSetting("allNotesXpath", "allNotesXpath"); |
| 289 | 251 | } |
| 290 | 252 | |
| 291 | - public function getPrivateNotesXpath() |
|
| 292 | - { |
|
| 253 | + public function getPrivateNotesXpath() { |
|
| 293 | 254 | return $this->getSetting("privateNotesXpath", "privateNotesXpath"); |
| 294 | 255 | } |
| 295 | 256 | |
| 296 | - public function getInputTransformation() |
|
| 297 | - { |
|
| 257 | + public function getInputTransformation() { |
|
| 298 | 258 | return $this->client->getInputTransformation()->current(); |
| 299 | 259 | } |
| 300 | 260 | |
| 301 | - public function getOutputTransformation() |
|
| 302 | - { |
|
| 261 | + public function getOutputTransformation() { |
|
| 303 | 262 | return $this->client->getOutputTransformation()->current(); |
| 304 | 263 | } |
| 305 | 264 | |
| 306 | - public function getPersonXpath() |
|
| 307 | - { |
|
| 265 | + public function getPersonXpath() { |
|
| 308 | 266 | return $this->getSetting("personXpath", "personXpath"); |
| 309 | 267 | } |
| 310 | 268 | |
| 311 | - public function getPersonFamilyXpath() |
|
| 312 | - { |
|
| 269 | + public function getPersonFamilyXpath() { |
|
| 313 | 270 | return $this->getSetting("personFamilyXpath", "personFamilyXpath"); |
| 314 | 271 | } |
| 315 | 272 | |
| 316 | - public function getPersonGivenXpath() |
|
| 317 | - { |
|
| 273 | + public function getPersonGivenXpath() { |
|
| 318 | 274 | return $this->getSetting("personGivenXpath", "personGivenXpath"); |
| 319 | 275 | } |
| 320 | 276 | |
| 321 | - public function getPersonRoleXpath() |
|
| 322 | - { |
|
| 277 | + public function getPersonRoleXpath() { |
|
| 323 | 278 | return $this->getSetting("personRoleXpath", "personRoleXpath"); |
| 324 | 279 | } |
| 325 | 280 | |
| 326 | - public function getPersonFisIdentifierXpath() |
|
| 327 | - { |
|
| 281 | + public function getPersonFisIdentifierXpath() { |
|
| 328 | 282 | return $this->getSetting("personFisIdentifierXpath", "personFisIdentifierXpath"); |
| 329 | 283 | } |
| 330 | 284 | |
| 331 | - public function getPersonAffiliationXpath() |
|
| 332 | - { |
|
| 285 | + public function getPersonAffiliationXpath() { |
|
| 333 | 286 | return $this->getSetting("personAffiliationXpath", "personAffiliationXpath"); |
| 334 | 287 | } |
| 335 | 288 | |
| 336 | - public function getPersonAffiliationIdentifierXpath() |
|
| 337 | - { |
|
| 289 | + public function getPersonAffiliationIdentifierXpath() { |
|
| 338 | 290 | return $this->getSetting("personAffiliationIdentifierXpath", "personAffiliationIdentifierXpath"); |
| 339 | 291 | } |
| 340 | 292 | |
| 341 | - public function getPersonAuthorRole() |
|
| 342 | - { |
|
| 293 | + public function getPersonAuthorRole() { |
|
| 343 | 294 | return $this->getSetting("personAuthorRole", "personAuthorRole"); |
| 344 | 295 | } |
| 345 | 296 | |
| 346 | - public function getPersonPublisherRole() |
|
| 347 | - { |
|
| 297 | + public function getPersonPublisherRole() { |
|
| 348 | 298 | return $this->getSetting("personPublisherRole", "personPublisherRole"); |
| 349 | 299 | } |
| 350 | 300 | |
| 351 | - public function getValidationXpath() |
|
| 352 | - { |
|
| 301 | + public function getValidationXpath() { |
|
| 353 | 302 | return $this->getSetting("validationXpath", "validationXpath"); |
| 354 | 303 | } |
| 355 | 304 | |
| 356 | - public function fisIdXpath() |
|
| 357 | - { |
|
| 305 | + public function fisIdXpath() { |
|
| 358 | 306 | return $this->getSetting("fisIdXpath", "fisIdXpath"); |
| 359 | 307 | } |
| 360 | 308 | |
| 361 | - public function getSourceDetailsXpaths() |
|
| 362 | - { |
|
| 309 | + public function getSourceDetailsXpaths() { |
|
| 363 | 310 | return $this->getSetting("sourceDetailsXpaths", "sourceDetailsXpaths"); |
| 364 | 311 | } |
| 365 | 312 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @var \EWW\Dpf\Domain\Model\Client |
| 53 | 53 | */ |
| 54 | - protected $client = null; |
|
| 54 | + protected $client = NULL; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * extensionConfiguration |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->client = $clientRepository->findAll()->current(); |
| 72 | 72 | |
| 73 | 73 | $configurationManager = $objectManager->get(BackendConfigurationManager::class); |
| 74 | - $settings = $configurationManager->getConfiguration(null, null); |
|
| 74 | + $settings = $configurationManager->getConfiguration(NULL, NULL); |
|
| 75 | 75 | $this->settings = $settings; //['settings']; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -102,9 +102,9 @@ discard block |
||
| 102 | 102 | * |
| 103 | 103 | * @var array |
| 104 | 104 | */ |
| 105 | - public function getSetting($settingName, $extConfig = null) |
|
| 105 | + public function getSetting($settingName, $extConfig = NULL) |
|
| 106 | 106 | { |
| 107 | - $setting = null; |
|
| 107 | + $setting = NULL; |
|
| 108 | 108 | if ($this->client) { |
| 109 | 109 | $setting = trim($this->client->{"get" . ucfirst($settingName)}()); |
| 110 | 110 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 42 | 42 | $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); |
| 43 | 43 | |
| 44 | - $namespaceConfiguration = explode(";",$clientConfigurationManager->getNamespaces()); |
|
| 44 | + $namespaceConfiguration = explode(";", $clientConfigurationManager->getNamespaces()); |
|
| 45 | 45 | |
| 46 | 46 | $xpath = new \DOMXPath($dom); |
| 47 | 47 | |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | use EWW\Dpf\Configuration\ClientConfigurationManager; |
| 18 | 18 | use TYPO3\CMS\Extbase\Object\ObjectManager; |
| 19 | 19 | |
| 20 | -class XPath |
|
| 21 | -{ |
|
| 20 | +class XPath { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * clientConfigurationManager |
@@ -35,8 +34,7 @@ discard block |
||
| 35 | 34 | * @param \DOMDocument $dom |
| 36 | 35 | * @return \DOMXPath |
| 37 | 36 | */ |
| 38 | - public static function create($dom) |
|
| 39 | - { |
|
| 37 | + public static function create($dom) { |
|
| 40 | 38 | |
| 41 | 39 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 42 | 40 | $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $filePath = $transformationFile->getFile()->getOriginalResource()->getIdentifier(); |
| 98 | 98 | $documentTransformer = new DocumentTransformer(); |
| 99 | 99 | |
| 100 | - if ( !$document->getRemoteState() || $document->getRemoteState() == 'NONE' ) { |
|
| 100 | + if (!$document->getRemoteState() || $document->getRemoteState() == 'NONE') { |
|
| 101 | 101 | $remoteState = 'ACTIVE'; |
| 102 | 102 | } else { |
| 103 | 103 | $remoteState = $document->getRemoteState(); |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | use EWW\Dpf\Services\Transformer\DocumentTransformer; |
| 20 | 20 | use TYPO3\CMS\Extbase\Object\ObjectManager; |
| 21 | 21 | |
| 22 | -class XSLTransformator |
|
| 23 | -{ |
|
| 22 | +class XSLTransformator { |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * clientConfigurationManager |
@@ -80,8 +79,7 @@ discard block |
||
| 80 | 79 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 81 | 80 | * @return string The transformed xml |
| 82 | 81 | */ |
| 83 | - public function getTransformedOutputXML($document, $xmlData = false) |
|
| 84 | - { |
|
| 82 | + public function getTransformedOutputXML($document, $xmlData = false) { |
|
| 85 | 83 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 86 | 84 | $this->clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); |
| 87 | 85 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 81 | 81 | * @return string The transformed xml |
| 82 | 82 | */ |
| 83 | - public function getTransformedOutputXML($document, $xmlData = false) |
|
| 83 | + public function getTransformedOutputXML($document, $xmlData = FALSE) |
|
| 84 | 84 | { |
| 85 | 85 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 86 | 86 | $this->clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); |
@@ -14,18 +14,15 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class Slub |
|
| 18 | -{ |
|
| 17 | +class Slub { |
|
| 19 | 18 | |
| 20 | 19 | protected $slubDom; |
| 21 | 20 | |
| 22 | - public function __construct($slubXml) |
|
| 23 | - { |
|
| 21 | + public function __construct($slubXml) { |
|
| 24 | 22 | $this->setSlubXml($slubXml); |
| 25 | 23 | } |
| 26 | 24 | |
| 27 | - public function setSlubXml($slubXml) |
|
| 28 | - { |
|
| 25 | + public function setSlubXml($slubXml) { |
|
| 29 | 26 | $slubDom = new \DOMDocument(); |
| 30 | 27 | if (!empty($slubXml)) { |
| 31 | 28 | |
@@ -40,25 +37,21 @@ discard block |
||
| 40 | 37 | $this->slubDom = $slubDom; |
| 41 | 38 | } |
| 42 | 39 | |
| 43 | - public function getSlubXml() |
|
| 44 | - { |
|
| 40 | + public function getSlubXml() { |
|
| 45 | 41 | return $this->slubDom->saveXML(); |
| 46 | 42 | } |
| 47 | 43 | |
| 48 | - public function getSlubXpath() |
|
| 49 | - { |
|
| 44 | + public function getSlubXpath() { |
|
| 50 | 45 | $xpath = \EWW\Dpf\Helper\XPath::create($this->slubDom); |
| 51 | 46 | return $xpath; |
| 52 | 47 | } |
| 53 | 48 | |
| 54 | - public function getDocumentType() |
|
| 55 | - { |
|
| 49 | + public function getDocumentType() { |
|
| 56 | 50 | $documentTypeNode = $this->getSlubXpath()->query("/slub:info/slub:documentType"); |
| 57 | 51 | return $documentTypeNode->item(0)->nodeValue; |
| 58 | 52 | } |
| 59 | 53 | |
| 60 | - public function setDocumentType($documentTypeUid) |
|
| 61 | - { |
|
| 54 | + public function setDocumentType($documentTypeUid) { |
|
| 62 | 55 | $documentTypeNode = $this->getSlubXpath()->query("/slub:info/slub:documentType"); |
| 63 | 56 | if ($documentTypeNode->length == 1) { |
| 64 | 57 | $documentTypeNode->item(0)->nodeValue = $documentTypeUid; |
@@ -74,14 +67,12 @@ discard block |
||
| 74 | 67 | } |
| 75 | 68 | } |
| 76 | 69 | |
| 77 | - public function getProcessNumber() |
|
| 78 | - { |
|
| 70 | + public function getProcessNumber() { |
|
| 79 | 71 | $processNumberNode = $this->getSlubXpath()->query("/slub:info/slub:processNumber"); |
| 80 | 72 | return $processNumberNode->item(0)->nodeValue; |
| 81 | 73 | } |
| 82 | 74 | |
| 83 | - public function setProcessNumber($processNumber) |
|
| 84 | - { |
|
| 75 | + public function setProcessNumber($processNumber) { |
|
| 85 | 76 | $processNumberNode = $this->getSlubXpath()->query("/slub:info/slub:processNumber"); |
| 86 | 77 | if ($processNumberNode->length == 1) { |
| 87 | 78 | $processNumberNode->item(0)->nodeValue = $processNumber; |
@@ -97,8 +88,7 @@ discard block |
||
| 97 | 88 | } |
| 98 | 89 | } |
| 99 | 90 | |
| 100 | - public function setFisId($fisId) |
|
| 101 | - { |
|
| 91 | + public function setFisId($fisId) { |
|
| 102 | 92 | $fisIdNode = $this->getSlubXpath()->query("/slub:info/slub:fisId"); |
| 103 | 93 | if ($fisIdNode->length == 1) { |
| 104 | 94 | $fisIdNode->item(0)->nodeValue = $fisId; |
@@ -118,8 +108,7 @@ discard block |
||
| 118 | 108 | * @param string $creationDate |
| 119 | 109 | * @throws \Exception |
| 120 | 110 | */ |
| 121 | - public function setDocumentCreationDate($creationDate) |
|
| 122 | - { |
|
| 111 | + public function setDocumentCreationDate($creationDate) { |
|
| 123 | 112 | $fisIdNode = $this->getSlubXpath()->query("/slub:info/slub:documentCreationDate"); |
| 124 | 113 | if ($fisIdNode->length == 1) { |
| 125 | 114 | $fisIdNode->item(0)->nodeValue = $creationDate; |
@@ -138,8 +127,7 @@ discard block |
||
| 138 | 127 | /** |
| 139 | 128 | * @return string |
| 140 | 129 | */ |
| 141 | - public function getDocumentCreationDate() |
|
| 142 | - { |
|
| 130 | + public function getDocumentCreationDate() { |
|
| 143 | 131 | $node = $this->getSlubXpath()->query("/slub:info/slub:documentCreationDate"); |
| 144 | 132 | return $node->item(0)->nodeValue; |
| 145 | 133 | } |
@@ -149,8 +137,7 @@ discard block |
||
| 149 | 137 | * |
| 150 | 138 | * @return int |
| 151 | 139 | */ |
| 152 | - public function getDocumentCreator() |
|
| 153 | - { |
|
| 140 | + public function getDocumentCreator() { |
|
| 154 | 141 | $node = $this->getSlubXpath()->query("/slub:info/slub:documentCreator"); |
| 155 | 142 | return intval($node->item(0)->nodeValue); |
| 156 | 143 | } |
@@ -161,8 +148,7 @@ discard block |
||
| 161 | 148 | * @param int $docCreator |
| 162 | 149 | * @throws \Exception |
| 163 | 150 | */ |
| 164 | - public function setDocumentCreator($docCreator) |
|
| 165 | - { |
|
| 151 | + public function setDocumentCreator($docCreator) { |
|
| 166 | 152 | $creatorNode = $this->getSlubXpath()->query("/slub:info/slub:documentCreator"); |
| 167 | 153 | if ($creatorNode->length == 1) { |
| 168 | 154 | $creatorNode->item(0)->nodeValue = $docCreator; |
@@ -183,8 +169,7 @@ discard block |
||
| 183 | 169 | * |
| 184 | 170 | * @return bool |
| 185 | 171 | */ |
| 186 | - public function getValidation() |
|
| 187 | - { |
|
| 172 | + public function getValidation() { |
|
| 188 | 173 | $node = $this->getSlubXpath()->query("/slub:info/slub:validation/slub:validated"); |
| 189 | 174 | $value = $node->item(0)->nodeValue; |
| 190 | 175 | return ($value === 'true')? true : false; |
@@ -196,8 +181,7 @@ discard block |
||
| 196 | 181 | * @param bool $validated |
| 197 | 182 | * @throws \Exception |
| 198 | 183 | */ |
| 199 | - public function setValidation($validated) |
|
| 200 | - { |
|
| 184 | + public function setValidation($validated) { |
|
| 201 | 185 | $validationNode = $this->getSlubXpath()->query("/slub:info/slub:validation/slub:validated"); |
| 202 | 186 | if ($validationNode->length == 1) { |
| 203 | 187 | $validationNode->item(0)->nodeValue = $validated; |
@@ -219,40 +203,34 @@ discard block |
||
| 219 | 203 | } |
| 220 | 204 | } |
| 221 | 205 | |
| 222 | - public function getSubmitterEmail() |
|
| 223 | - { |
|
| 206 | + public function getSubmitterEmail() { |
|
| 224 | 207 | $emailNode = $this->getSlubXpath()->query("/slub:info/slub:submitter/foaf:Person/foaf:mbox"); |
| 225 | 208 | return $emailNode->item(0)->nodeValue; |
| 226 | 209 | } |
| 227 | 210 | |
| 228 | - public function getSubmitterName() |
|
| 229 | - { |
|
| 211 | + public function getSubmitterName() { |
|
| 230 | 212 | $nameNode = $this->getSlubXpath()->query("/slub:info/slub:submitter/foaf:Person/foaf:name"); |
| 231 | 213 | return $nameNode->item(0)->nodeValue; |
| 232 | 214 | } |
| 233 | 215 | |
| 234 | - public function getSubmitterNotice() |
|
| 235 | - { |
|
| 216 | + public function getSubmitterNotice() { |
|
| 236 | 217 | $nameNode = $this->getSlubXpath()->query("/slub:info/slub:submitter/slub:notice"); |
| 237 | 218 | return $nameNode->item(0)->nodeValue; |
| 238 | 219 | } |
| 239 | 220 | |
| 240 | - public function getNotes() |
|
| 241 | - { |
|
| 221 | + public function getNotes() { |
|
| 242 | 222 | $node = $this->getSlubXpath()->query("/slub:info/slub:note"); |
| 243 | 223 | |
| 244 | 224 | $notes = array(); |
| 245 | 225 | |
| 246 | - for ($i=0; $i < $node->length; $i++) |
|
| 247 | - { |
|
| 226 | + for ($i=0; $i < $node->length; $i++) { |
|
| 248 | 227 | $notes[] = $node->item($i)->nodeValue; |
| 249 | 228 | } |
| 250 | 229 | |
| 251 | 230 | return $notes; |
| 252 | 231 | } |
| 253 | 232 | |
| 254 | - public function addNote($noteContent) |
|
| 255 | - { |
|
| 233 | + public function addNote($noteContent) { |
|
| 256 | 234 | $slubInfoNode = $this->getSlubXpath()->query('/slub:info'); |
| 257 | 235 | |
| 258 | 236 | if ($slubInfoNode->length == 1) { |
@@ -268,8 +246,7 @@ discard block |
||
| 268 | 246 | /** |
| 269 | 247 | * @return string |
| 270 | 248 | */ |
| 271 | - public function getDepositLicense() |
|
| 272 | - { |
|
| 249 | + public function getDepositLicense() { |
|
| 273 | 250 | $node = $this->getSlubXpath()->query("/slub:info/slub:rights/slub:agreement/@given"); |
| 274 | 251 | return $node->item(0)->nodeValue; |
| 275 | 252 | } |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class Mets |
|
| 18 | -{ |
|
| 17 | +class Mets { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * mets |
@@ -24,30 +23,25 @@ discard block |
||
| 24 | 23 | */ |
| 25 | 24 | protected $metsDom; |
| 26 | 25 | |
| 27 | - public function __construct($metsXml) |
|
| 28 | - { |
|
| 26 | + public function __construct($metsXml) { |
|
| 29 | 27 | $this->setMetsXml($metsXml); |
| 30 | 28 | } |
| 31 | 29 | |
| 32 | - public function setMetsXml($metsXml) |
|
| 33 | - { |
|
| 30 | + public function setMetsXml($metsXml) { |
|
| 34 | 31 | $metsDom = new \DOMDocument(); |
| 35 | 32 | $metsDom->loadXML($metsXml); |
| 36 | 33 | $this->metsDom = $metsDom; |
| 37 | 34 | } |
| 38 | 35 | |
| 39 | - public function getMetsXml() |
|
| 40 | - { |
|
| 36 | + public function getMetsXml() { |
|
| 41 | 37 | return $this->metsDom->saveXML(); |
| 42 | 38 | } |
| 43 | 39 | |
| 44 | - public function getMetsXpath() |
|
| 45 | - { |
|
| 40 | + public function getMetsXpath() { |
|
| 46 | 41 | return new \DOMXPath($this->metsDom); |
| 47 | 42 | } |
| 48 | 43 | |
| 49 | - public function getMods() |
|
| 50 | - { |
|
| 44 | + public function getMods() { |
|
| 51 | 45 | $xpath = $this->getMetsXpath(); |
| 52 | 46 | |
| 53 | 47 | $xpath->registerNamespace("mods", "http://www.loc.gov/mods/v3"); |
@@ -60,8 +54,7 @@ discard block |
||
| 60 | 54 | return $mods; |
| 61 | 55 | } |
| 62 | 56 | |
| 63 | - public function getSlub() |
|
| 64 | - { |
|
| 57 | + public function getSlub() { |
|
| 65 | 58 | $xpath = $this->getMetsXpath(); |
| 66 | 59 | |
| 67 | 60 | $xpath->registerNamespace("slub", "http://slub-dresden.de/"); |
@@ -74,8 +67,7 @@ discard block |
||
| 74 | 67 | return $slub; |
| 75 | 68 | } |
| 76 | 69 | |
| 77 | - public function getState() |
|
| 78 | - { |
|
| 70 | + public function getState() { |
|
| 79 | 71 | |
| 80 | 72 | $xpath = $this->getMetsXpath(); |
| 81 | 73 | $xpath->registerNamespace("mets", "http://www.loc.gov/METS/"); |
@@ -84,8 +76,7 @@ discard block |
||
| 84 | 76 | return $dmdSec->item(0)->getAttribute("STATUS"); |
| 85 | 77 | } |
| 86 | 78 | |
| 87 | - public function getLastModDate() |
|
| 88 | - { |
|
| 79 | + public function getLastModDate() { |
|
| 89 | 80 | $xpath = $this->getMetsXpath(); |
| 90 | 81 | $xpath->registerNamespace("mets", "http://www.loc.gov/METS/"); |
| 91 | 82 | |
@@ -93,8 +84,7 @@ discard block |
||
| 93 | 84 | return $dmdSec->item(0)->getAttribute("LASTMODDATE"); |
| 94 | 85 | } |
| 95 | 86 | |
| 96 | - public function getCreationDate() |
|
| 97 | - { |
|
| 87 | + public function getCreationDate() { |
|
| 98 | 88 | $xpath = $this->getMetsXpath(); |
| 99 | 89 | $xpath->registerNamespace("mets", "http://www.loc.gov/METS/"); |
| 100 | 90 | |
@@ -102,8 +92,7 @@ discard block |
||
| 102 | 92 | return $dmdSec->item(0)->getAttribute("CREATEDATE"); |
| 103 | 93 | } |
| 104 | 94 | |
| 105 | - public function getFiles() |
|
| 106 | - { |
|
| 95 | + public function getFiles() { |
|
| 107 | 96 | $xpath = $this->getMetsXpath(); |
| 108 | 97 | |
| 109 | 98 | $xpath->registerNamespace("xlink", "http://www.w3.org/1999/xlink"); |