We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 101 |
| Total Lines | 489 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like ListView often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ListView, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 29 | class ListView extends \Kitodo\Dlf\Common\AbstractPlugin { |
||
| 30 | public $scriptRelPath = 'Classes/Plugin/ListView.php'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * This holds the field wrap of the metadata |
||
| 34 | * |
||
| 35 | * @var array |
||
| 36 | * @access private |
||
| 37 | */ |
||
| 38 | private $fieldwrap = []; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * This holds the list |
||
| 42 | * |
||
| 43 | * @var \Kitodo\Dlf\Common\DocumentList |
||
| 44 | * @access protected |
||
| 45 | */ |
||
| 46 | protected $list; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Array of sorted metadata |
||
| 50 | * |
||
| 51 | * @var array |
||
| 52 | * @access protected |
||
| 53 | */ |
||
| 54 | protected $metadata = []; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Array of sortable metadata |
||
| 58 | * |
||
| 59 | * @var array |
||
| 60 | * @access protected |
||
| 61 | */ |
||
| 62 | protected $sortables = []; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Renders the page browser |
||
| 66 | * |
||
| 67 | * @access protected |
||
| 68 | * |
||
| 69 | * @return string The rendered page browser ready for output |
||
| 70 | */ |
||
| 71 | protected function getPageBrowser() { |
||
| 72 | // Get overall number of pages. |
||
| 73 | $maxPages = intval(ceil($this->list->metadata['options']['numberOfToplevelHits'] / $this->conf['limit'])); |
||
|
|
|||
| 74 | // Return empty pagebrowser if there is just one page. |
||
| 75 | if ($maxPages < 2) { |
||
| 76 | return ''; |
||
| 77 | } |
||
| 78 | // Get separator. |
||
| 79 | $separator = $this->pi_getLL('separator', ' - ', TRUE); |
||
| 80 | // Add link to previous page. |
||
| 81 | if ($this->piVars['pointer'] > 0) { |
||
| 82 | $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '<', TRUE), ['pointer' => $this->piVars['pointer'] - 1], TRUE).$separator; |
||
| 83 | } else { |
||
| 84 | $output = $this->pi_getLL('prevPage', '<', TRUE).$separator; |
||
| 85 | } |
||
| 86 | $i = 0; |
||
| 87 | $skip = NULL; |
||
| 88 | // Add links to pages. |
||
| 89 | while ($i < $maxPages) { |
||
| 90 | if ($i < 3 || ($i > $this->piVars['pointer'] - 3 && $i < $this->piVars['pointer'] + 3) || $i > $maxPages - 4) { |
||
| 91 | if ($this->piVars['pointer'] != $i) { |
||
| 92 | $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), ['pointer' => $i], TRUE).$separator; |
||
| 93 | } else { |
||
| 94 | $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator; |
||
| 95 | } |
||
| 96 | $skip = TRUE; |
||
| 97 | } elseif ($skip === TRUE) { |
||
| 98 | $output .= $this->pi_getLL('skip', '...', TRUE).$separator; |
||
| 99 | $skip = FALSE; |
||
| 100 | } |
||
| 101 | $i++; |
||
| 102 | } |
||
| 103 | // Add link to next page. |
||
| 104 | if ($this->piVars['pointer'] < $maxPages - 1) { |
||
| 105 | $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '>', TRUE), ['pointer' => $this->piVars['pointer'] + 1], TRUE); |
||
| 106 | } else { |
||
| 107 | $output .= $this->pi_getLL('nextPage', '>', TRUE); |
||
| 108 | } |
||
| 109 | return $output; |
||
| 110 | } |
||
| 111 | |||
| 112 | /** |
||
| 113 | * Renders one entry of the list |
||
| 114 | * |
||
| 115 | * @access protected |
||
| 116 | * |
||
| 117 | * @param integer $number: The number of the entry |
||
| 118 | * @param string $template: Parsed template subpart |
||
| 119 | * |
||
| 120 | * @return string The rendered entry ready for output |
||
| 121 | */ |
||
| 122 | protected function getEntry($number, $template) { |
||
| 123 | $markerArray['###NUMBER###'] = $number + 1; |
||
|
1 ignored issue
–
show
|
|||
| 124 | $markerArray['###METADATA###'] = ''; |
||
| 125 | $markerArray['###THUMBNAIL###'] = ''; |
||
| 126 | $markerArray['###PREVIEW###'] = ''; |
||
| 127 | $subpart = ''; |
||
| 128 | $imgAlt = ''; |
||
| 129 | $noTitle = $this->pi_getLL('noTitle'); |
||
| 130 | $metadata = $this->list[$number]['metadata']; |
||
| 131 | foreach ($this->metadata as $index_name => $metaConf) { |
||
| 132 | $parsedValue = ''; |
||
| 133 | $fieldwrap = $this->getFieldWrap($index_name, $metaConf['wrap']); |
||
| 134 | do { |
||
| 135 | $value = @array_shift($metadata[$index_name]); |
||
| 136 | // Link title to pageview. |
||
| 137 | if ($index_name == 'title') { |
||
| 138 | // Get title of parent document if needed. |
||
| 139 | if (empty($value) && $this->conf['getTitle']) { |
||
| 140 | $superiorTitle = Document::getTitle($this->list[$number]['uid'], TRUE); |
||
| 141 | if (!empty($superiorTitle)) { |
||
| 142 | $value = '['.$superiorTitle.']'; |
||
| 143 | } |
||
| 144 | } |
||
| 145 | // Set fake title if still not present. |
||
| 146 | if (empty($value)) { |
||
| 147 | $value = $noTitle; |
||
| 148 | } |
||
| 149 | $imgAlt = htmlspecialchars($value); |
||
| 150 | $additionalParams = [ |
||
| 151 | 'id' => $this->list[$number]['uid'], |
||
| 152 | 'page' => $this->list[$number]['page'] |
||
| 153 | ]; |
||
| 154 | if (!empty($this->piVars['logicalPage'])) { |
||
| 155 | $additionalParams['logicalPage'] = $this->piVars['logicalPage']; |
||
| 156 | } |
||
| 157 | $conf = [ |
||
| 158 | 'useCacheHash' => 1, |
||
| 159 | 'parameter' => $this->conf['targetPid'], |
||
| 160 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
||
| 161 | ]; |
||
| 162 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
||
| 163 | } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
||
| 164 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
||
| 165 | } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
||
| 166 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
||
| 167 | } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
||
| 168 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
||
| 169 | } elseif (!empty($value)) { |
||
| 170 | $value = htmlspecialchars($value); |
||
| 171 | } |
||
| 172 | $value = $this->cObj->stdWrap($value, $fieldwrap['value.']); |
||
| 173 | if (!empty($value)) { |
||
| 174 | $parsedValue .= $value; |
||
| 175 | } |
||
| 176 | } while (count($metadata[$index_name])); |
||
| 177 | if (!empty($parsedValue)) { |
||
| 178 | $field = $this->cObj->stdWrap(htmlspecialchars($metaConf['label']), $fieldwrap['key.']); |
||
| 179 | $field .= $parsedValue; |
||
| 180 | $markerArray['###METADATA###'] .= $this->cObj->stdWrap($field, $fieldwrap['all.']); |
||
| 181 | } |
||
| 182 | } |
||
| 183 | // Add thumbnail. |
||
| 184 | if (!empty($this->list[$number]['thumbnail'])) { |
||
| 185 | $markerArray['###THUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$this->list[$number]['thumbnail'].'" />'; |
||
| 186 | } |
||
| 187 | // Add preview. |
||
| 188 | if (!empty($this->list[$number]['preview'])) { |
||
| 189 | $markerArray['###PREVIEW###'] = $this->list[$number]['preview']; |
||
| 190 | } |
||
| 191 | if (!empty($this->list[$number]['subparts'])) { |
||
| 192 | $subpart = $this->getSubEntries($number, $template); |
||
| 193 | } |
||
| 194 | // Basket button. |
||
| 195 | $markerArray['###BASKETBUTTON###'] = ''; |
||
| 196 | if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) { |
||
| 197 | $additionalParams = ['id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list']; |
||
| 198 | $conf = [ |
||
| 199 | 'useCacheHash' => 1, |
||
| 200 | 'parameter' => $this->conf['targetBasket'], |
||
| 201 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
||
| 202 | ]; |
||
| 203 | $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', TRUE), $conf); |
||
| 204 | $markerArray['###BASKETBUTTON###'] = $link; |
||
| 205 | } |
||
| 206 | return $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($template['entry'], '###SUBTEMPLATE###', $subpart, TRUE), $markerArray); |
||
| 207 | } |
||
| 208 | |||
| 209 | /** |
||
| 210 | * Returns the parsed fieldwrap of a metadata |
||
| 211 | * |
||
| 212 | * @access private |
||
| 213 | * |
||
| 214 | * @param string $index_name: The index name of a metadata |
||
| 215 | * @param string $wrap: The configured metadata wrap |
||
| 216 | * |
||
| 217 | * @return array The parsed fieldwrap |
||
| 218 | */ |
||
| 219 | private function getFieldWrap($index_name, $wrap) { |
||
| 220 | if (isset($this->fieldwrap[$index_name])) { |
||
| 221 | return $this->fieldwrap[$index_name]; |
||
| 222 | } else { |
||
| 223 | return $this->fieldwrap[$index_name] = $this->parseTS($wrap); |
||
| 224 | } |
||
| 225 | } |
||
| 226 | |||
| 227 | /** |
||
| 228 | * Renders sorting dialog |
||
| 229 | * |
||
| 230 | * @access protected |
||
| 231 | * |
||
| 232 | * @return string The rendered sorting dialog ready for output |
||
| 233 | */ |
||
| 234 | protected function getSortingForm() { |
||
| 235 | // Return nothing if there are no sortable metadata fields. |
||
| 236 | if (!count($this->sortables)) { |
||
| 237 | return ''; |
||
| 238 | } |
||
| 239 | // Set class prefix. |
||
| 240 | $prefix = Helper::getUnqualifiedClassName(get_class($this)); |
||
| 241 | // Configure @action URL for form. |
||
| 242 | $linkConf = [ |
||
| 243 | 'parameter' => $GLOBALS['TSFE']->id |
||
| 244 | ]; |
||
| 245 | if (!empty($this->piVars['logicalPage'])) { |
||
| 246 | $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, ['logicalPage' => $this->piVars['logicalPage']], '', TRUE, FALSE); |
||
| 247 | } |
||
| 248 | // Build HTML form. |
||
| 249 | $sorting = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />'; |
||
| 250 | foreach ($this->piVars as $piVar => $value) { |
||
| 251 | if ($piVar != 'order' && $piVar != 'DATA' && !empty($value)) { |
||
| 252 | $sorting .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.$value.'" />'; |
||
| 253 | } |
||
| 254 | } |
||
| 255 | // Select sort field. |
||
| 256 | $uniqId = uniqid($prefix.'-'); |
||
| 257 | $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">'; |
||
| 258 | // Add relevance sorting if this is a search result list. |
||
| 259 | if ($this->list->metadata['options']['source'] == 'search') { |
||
| 260 | $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', TRUE).'</option>'; |
||
| 261 | } |
||
| 262 | foreach ($this->sortables as $index_name => $label) { |
||
| 263 | $sorting .= '<option value="'.$index_name.'"'.(($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '').'>'.htmlspecialchars($label).'</option>'; |
||
| 264 | } |
||
| 265 | $sorting .= '</select>'; |
||
| 266 | // Select sort direction. |
||
| 267 | $uniqId = uniqid($prefix.'-'); |
||
| 268 | $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">'; |
||
| 269 | $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', TRUE).'</option>'; |
||
| 270 | $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', TRUE).'</option>'; |
||
| 271 | $sorting .= '</select></div></form>'; |
||
| 272 | return $sorting; |
||
| 273 | } |
||
| 274 | |||
| 275 | /** |
||
| 276 | * Renders all sub-entries of one entry |
||
| 277 | * |
||
| 278 | * @access protected |
||
| 279 | * |
||
| 280 | * @param integer $number: The number of the entry |
||
| 281 | * @param string $template: Parsed template subpart |
||
| 282 | * |
||
| 283 | * @return string The rendered entries ready for output |
||
| 284 | */ |
||
| 285 | protected function getSubEntries($number, $template) { |
||
| 286 | $content = ''; |
||
| 287 | $noTitle = $this->pi_getLL('noTitle'); |
||
| 288 | $highlight_word = preg_replace('/\s\s+/', ';', $this->list->metadata['searchString']); |
||
| 289 | foreach ($this->list[$number]['subparts'] as $subpart) { |
||
| 290 | $markerArray['###SUBMETADATA###'] = ''; |
||
| 291 | $markerArray['###SUBTHUMBNAIL###'] = ''; |
||
| 292 | $markerArray['###SUBPREVIEW###'] = ''; |
||
| 293 | $imgAlt = ''; |
||
| 294 | foreach ($this->metadata as $index_name => $metaConf) { |
||
| 295 | $parsedValue = ''; |
||
| 296 | $fieldwrap = $this->getFieldWrap($index_name, $metaConf['wrap']); |
||
| 297 | do { |
||
| 298 | $value = @array_shift($subpart['metadata'][$index_name]); |
||
| 299 | // Link title to pageview. |
||
| 300 | if ($index_name == 'title') { |
||
| 301 | // Get title of parent document if needed. |
||
| 302 | if (empty($value) && $this->conf['getTitle']) { |
||
| 303 | $superiorTitle = Document::getTitle($subpart['uid'], TRUE); |
||
| 304 | if (!empty($superiorTitle)) { |
||
| 305 | $value = '['.$superiorTitle.']'; |
||
| 306 | } |
||
| 307 | } |
||
| 308 | // Set fake title if still not present. |
||
| 309 | if (empty($value)) { |
||
| 310 | $value = $noTitle; |
||
| 311 | } |
||
| 312 | $imgAlt = htmlspecialchars($value); |
||
| 313 | $additionalParams = [ |
||
| 314 | 'id' => $subpart['uid'], |
||
| 315 | 'page' => $subpart['page'], |
||
| 316 | 'highlight_word' => $highlight_word |
||
| 317 | ]; |
||
| 318 | if (!empty($this->piVars['logicalPage'])) { |
||
| 319 | $additionalParams['logicalPage'] = $this->piVars['logicalPage']; |
||
| 320 | } |
||
| 321 | $conf = [ |
||
| 322 | // we don't want cHash in case of search parameters |
||
| 323 | 'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0, |
||
| 324 | 'parameter' => $this->conf['targetPid'], |
||
| 325 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
||
| 326 | ]; |
||
| 327 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
||
| 328 | } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
||
| 329 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
||
| 330 | } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
||
| 331 | $_value = $value; |
||
| 332 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
||
| 333 | // Add page number for single pages. |
||
| 334 | if ($_value == 'page') { |
||
| 335 | $value .= ' '.intval($subpart['page']); |
||
| 336 | } |
||
| 337 | } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
||
| 338 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
||
| 339 | } elseif (!empty($value)) { |
||
| 340 | $value = htmlspecialchars($value); |
||
| 341 | } |
||
| 342 | $value = $this->cObj->stdWrap($value, $fieldwrap['value.']); |
||
| 343 | if (!empty($value)) { |
||
| 344 | $parsedValue .= $value; |
||
| 345 | } |
||
| 346 | } while (count($subpart['metadata'][$index_name])); |
||
| 347 | if (!empty($parsedValue)) { |
||
| 348 | $field = $this->cObj->stdWrap(htmlspecialchars($metaConf['label']), $fieldwrap['key.']); |
||
| 349 | $field .= $parsedValue; |
||
| 350 | $markerArray['###SUBMETADATA###'] .= $this->cObj->stdWrap($field, $fieldwrap['all.']); |
||
| 351 | } |
||
| 352 | } |
||
| 353 | // Add thumbnail. |
||
| 354 | if (!empty($subpart['thumbnail'])) { |
||
| 355 | $markerArray['###SUBTHUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$subpart['thumbnail'].'" />'; |
||
| 356 | } |
||
| 357 | // Add preview. |
||
| 358 | if (!empty($subpart['preview'])) { |
||
| 359 | $markerArray['###SUBPREVIEW###'] = $subpart['preview']; |
||
| 360 | } |
||
| 361 | // Basket button |
||
| 362 | $markerArray['###SUBBASKETBUTTON###'] = ''; |
||
| 363 | if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) { |
||
| 364 | $additionalParams = ['id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry']; |
||
| 365 | $conf = [ |
||
| 366 | 'useCacheHash' => 1, |
||
| 367 | 'parameter' => $this->conf['targetBasket'], |
||
| 368 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
||
| 369 | ]; |
||
| 370 | $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', TRUE), $conf); |
||
| 371 | $markerArray['###SUBBASKETBUTTON###'] = $link; |
||
| 372 | } |
||
| 373 | $content .= $this->cObj->substituteMarkerArray($template['subentry'], $markerArray); |
||
| 374 | } |
||
| 375 | return $this->cObj->substituteSubpart($this->cObj->getSubpart($this->template, '###SUBTEMPLATE###'), '###SUBENTRY###', $content, TRUE); |
||
| 376 | } |
||
| 377 | |||
| 378 | /** |
||
| 379 | * Get metadata configuration from database |
||
| 380 | * |
||
| 381 | * @access protected |
||
| 382 | * |
||
| 383 | * @return void |
||
| 384 | */ |
||
| 385 | protected function loadConfig() { |
||
| 386 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
||
| 387 | 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.wrap AS wrap,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.is_sortable AS is_sortable', |
||
| 388 | 'tx_dlf_metadata', |
||
| 389 | '(tx_dlf_metadata.is_listed=1 OR tx_dlf_metadata.is_sortable=1)' |
||
| 390 | .' AND tx_dlf_metadata.pid='.intval($this->conf['pages']) |
||
| 391 | .Helper::whereClause('tx_dlf_metadata'), |
||
| 392 | '', |
||
| 393 | 'tx_dlf_metadata.sorting ASC', |
||
| 394 | '' |
||
| 395 | ); |
||
| 396 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
||
| 397 | if ($resArray['is_listed']) { |
||
| 398 | $this->metadata[$resArray['index_name']] = [ |
||
| 399 | 'wrap' => $resArray['wrap'], |
||
| 400 | 'label' => Helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages']) |
||
| 401 | ]; |
||
| 402 | } |
||
| 403 | if ($resArray['is_sortable']) { |
||
| 404 | $this->sortables[$resArray['index_name']] = Helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages']); |
||
| 405 | } |
||
| 406 | } |
||
| 407 | } |
||
| 408 | |||
| 409 | /** |
||
| 410 | * The main method of the PlugIn |
||
| 411 | * |
||
| 412 | * @access public |
||
| 413 | * |
||
| 414 | * @param string $content: The PlugIn content |
||
| 415 | * @param array $conf: The PlugIn configuration |
||
| 416 | * |
||
| 417 | * @return string The content that is displayed on the website |
||
| 418 | */ |
||
| 419 | public function main($content, $conf) { |
||
| 518 | } |
||
| 519 | } |
||
| 520 |