@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | * @subpackage dlf |
| 32 | 32 | * @access public |
| 33 | 33 | */ |
| 34 | -class Search extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 35 | -{ |
|
| 34 | +class Search extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 36 | 35 | public $scriptRelPath = 'Classes/Plugin/Search.php'; |
| 37 | 36 | |
| 38 | 37 | /** |
@@ -42,8 +41,7 @@ discard block |
||
| 42 | 41 | * |
| 43 | 42 | * @return void |
| 44 | 43 | */ |
| 45 | - protected function addAutocompleteJS() |
|
| 46 | - { |
|
| 44 | + protected function addAutocompleteJS() { |
|
| 47 | 45 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 48 | 46 | ->getQueryBuilderForTable('tx_dlf_documents'); |
| 49 | 47 | |
@@ -74,8 +72,7 @@ discard block |
||
| 74 | 72 | * |
| 75 | 73 | * @return string HTML input fields with current document's UID and parent ID |
| 76 | 74 | */ |
| 77 | - protected function addCurrentCollection() |
|
| 78 | - { |
|
| 75 | + protected function addCurrentCollection() { |
|
| 79 | 76 | // Load current collection. |
| 80 | 77 | $list = GeneralUtility::makeInstance(DocumentList::class); |
| 81 | 78 | if ( |
@@ -107,8 +104,7 @@ discard block |
||
| 107 | 104 | * |
| 108 | 105 | * @return string HTML input fields with current document's UID |
| 109 | 106 | */ |
| 110 | - protected function addCurrentDocument() |
|
| 111 | - { |
|
| 107 | + protected function addCurrentDocument() { |
|
| 112 | 108 | // Load current list object. |
| 113 | 109 | $list = GeneralUtility::makeInstance(DocumentList::class); |
| 114 | 110 | // Load current document. |
@@ -147,8 +143,7 @@ discard block |
||
| 147 | 143 | * |
| 148 | 144 | * @return string HTML input fields with encrypted core name and hash |
| 149 | 145 | */ |
| 150 | - protected function addEncryptedCoreName() |
|
| 151 | - { |
|
| 146 | + protected function addEncryptedCoreName() { |
|
| 152 | 147 | // Get core name. |
| 153 | 148 | $name = Helper::getIndexNameFromUid($this->conf['solrcore'], 'tx_dlf_solrcores'); |
| 154 | 149 | // Encrypt core name. |
@@ -170,8 +165,7 @@ discard block |
||
| 170 | 165 | * |
| 171 | 166 | * @return string The extended search form or an empty string |
| 172 | 167 | */ |
| 173 | - protected function addExtendedSearch() |
|
| 174 | - { |
|
| 168 | + protected function addExtendedSearch() { |
|
| 175 | 169 | $extendedSearch = ''; |
| 176 | 170 | // Quit without doing anything if no fields for extended search are selected. |
| 177 | 171 | if ( |
@@ -209,8 +203,7 @@ discard block |
||
| 209 | 203 | * |
| 210 | 204 | * @return string HTML output of facets menu |
| 211 | 205 | */ |
| 212 | - protected function addFacetsMenu() |
|
| 213 | - { |
|
| 206 | + protected function addFacetsMenu() { |
|
| 214 | 207 | // Check for typoscript configuration to prevent fatal error. |
| 215 | 208 | if (empty($this->conf['facetsConf.'])) { |
| 216 | 209 | Helper::devLog('Incomplete plugin configuration', DEVLOG_SEVERITY_WARNING); |
@@ -244,8 +237,7 @@ discard block |
||
| 244 | 237 | * |
| 245 | 238 | * @return string HTML output of fulltext switch |
| 246 | 239 | */ |
| 247 | - protected function addFulltextSwitch($isFulltextSearch = 0) |
|
| 248 | - { |
|
| 240 | + protected function addFulltextSwitch($isFulltextSearch = 0) { |
|
| 249 | 241 | $output = ''; |
| 250 | 242 | // Check for plugin configuration. |
| 251 | 243 | if (!empty($this->conf['fulltext'])) { |
@@ -264,8 +256,7 @@ discard block |
||
| 264 | 256 | * |
| 265 | 257 | * @return string HTML output of logical page field |
| 266 | 258 | */ |
| 267 | - protected function addLogicalPage() |
|
| 268 | - { |
|
| 259 | + protected function addLogicalPage() { |
|
| 269 | 260 | $output = ''; |
| 270 | 261 | // Check for plugin configuration. |
| 271 | 262 | if (!empty($this->conf['showLogicalPageField'])) { |
@@ -288,8 +279,7 @@ discard block |
||
| 288 | 279 | * |
| 289 | 280 | * @return array The array for the facet's menu entry |
| 290 | 281 | */ |
| 291 | - protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) |
|
| 292 | - { |
|
| 282 | + protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) { |
|
| 293 | 283 | $entryArray = []; |
| 294 | 284 | // Translate value. |
| 295 | 285 | if ($field == 'owner_faceting') { |
@@ -345,8 +335,7 @@ discard block |
||
| 345 | 335 | * |
| 346 | 336 | * @return string The content that is displayed on the website |
| 347 | 337 | */ |
| 348 | - public function main($content, $conf) |
|
| 349 | - { |
|
| 338 | + public function main($content, $conf) { |
|
| 350 | 339 | $this->init($conf); |
| 351 | 340 | // Disable caching for this plugin. |
| 352 | 341 | $this->setCache(false); |
@@ -553,8 +542,7 @@ discard block |
||
| 553 | 542 | * |
| 554 | 543 | * @return array HMENU array |
| 555 | 544 | */ |
| 556 | - public function makeFacetsMenuArray($content, $conf) |
|
| 557 | - { |
|
| 545 | + public function makeFacetsMenuArray($content, $conf) { |
|
| 558 | 546 | $this->init($conf); |
| 559 | 547 | $menuArray = []; |
| 560 | 548 | // Set default value for facet search. |