@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | * @subpackage dlf |
| 25 | 25 | * @access public |
| 26 | 26 | */ |
| 27 | -class TableOfContentsController extends AbstractController |
|
| 28 | -{ |
|
| 27 | +class TableOfContentsController extends AbstractController { |
|
| 29 | 28 | /** |
| 30 | 29 | * This holds the active entries according to the currently selected page |
| 31 | 30 | * |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | * |
| 40 | 39 | * @return void |
| 41 | 40 | */ |
| 42 | - public function mainAction() |
|
| 43 | - { |
|
| 41 | + public function mainAction() { |
|
| 44 | 42 | // Load current document. |
| 45 | 43 | $this->loadDocument($this->requestData); |
| 46 | 44 | if ( |
@@ -66,8 +64,7 @@ discard block |
||
| 66 | 64 | * @access protected |
| 67 | 65 | * @return array HMENU array |
| 68 | 66 | */ |
| 69 | - protected function makeMenuArray() |
|
| 70 | - { |
|
| 67 | + protected function makeMenuArray() { |
|
| 71 | 68 | // Set default values for page if not set. |
| 72 | 69 | // $this->requestData['page'] may be integer or string (physical structure @ID) |
| 73 | 70 | if ( |
@@ -143,8 +140,7 @@ discard block |
||
| 143 | 140 | * |
| 144 | 141 | * @return array HMENU array for menu entry |
| 145 | 142 | */ |
| 146 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
| 147 | - { |
|
| 143 | + protected function getMenuEntry(array $entry, $recursive = false) { |
|
| 148 | 144 | $entry = $this->resolveMenuEntry($entry); |
| 149 | 145 | |
| 150 | 146 | $entryArray = []; |
@@ -238,8 +234,7 @@ discard block |
||
| 238 | 234 | * @param array $entry |
| 239 | 235 | * @return array |
| 240 | 236 | */ |
| 241 | - protected function resolveMenuEntry($entry) |
|
| 242 | - { |
|
| 237 | + protected function resolveMenuEntry($entry) { |
|
| 243 | 238 | // If the menu entry points to the parent document, |
| 244 | 239 | // resolve to the parent UID set on indexation. |
| 245 | 240 | $doc = $this->document->getDoc(); |
@@ -32,8 +32,7 @@ discard block |
||
| 32 | 32 | * @subpackage dlf |
| 33 | 33 | * @access public |
| 34 | 34 | */ |
| 35 | -class SearchController extends AbstractController |
|
| 36 | -{ |
|
| 35 | +class SearchController extends AbstractController { |
|
| 37 | 36 | /** |
| 38 | 37 | * @var CollectionRepository |
| 39 | 38 | */ |
@@ -42,8 +41,7 @@ discard block |
||
| 42 | 41 | /** |
| 43 | 42 | * @param CollectionRepository $collectionRepository |
| 44 | 43 | */ |
| 45 | - public function injectCollectionRepository(CollectionRepository $collectionRepository) |
|
| 46 | - { |
|
| 44 | + public function injectCollectionRepository(CollectionRepository $collectionRepository) { |
|
| 47 | 45 | $this->collectionRepository = $collectionRepository; |
| 48 | 46 | } |
| 49 | 47 | |
@@ -55,8 +53,7 @@ discard block |
||
| 55 | 53 | /** |
| 56 | 54 | * @param MetadataRepository $metadataRepository |
| 57 | 55 | */ |
| 58 | - public function injectMetadataRepository(MetadataRepository $metadataRepository) |
|
| 59 | - { |
|
| 56 | + public function injectMetadataRepository(MetadataRepository $metadataRepository) { |
|
| 60 | 57 | $this->metadataRepository = $metadataRepository; |
| 61 | 58 | } |
| 62 | 59 | |
@@ -71,8 +68,7 @@ discard block |
||
| 71 | 68 | * |
| 72 | 69 | * @return void |
| 73 | 70 | */ |
| 74 | - public function searchAction() |
|
| 75 | - { |
|
| 71 | + public function searchAction() { |
|
| 76 | 72 | // if search was triggered, get search parameters from POST variables |
| 77 | 73 | $this->searchParams = $this->getParametersSafely('searchParameter'); |
| 78 | 74 | |
@@ -87,8 +83,7 @@ discard block |
||
| 87 | 83 | * |
| 88 | 84 | * @return void |
| 89 | 85 | */ |
| 90 | - public function mainAction() |
|
| 91 | - { |
|
| 86 | + public function mainAction() { |
|
| 92 | 87 | $listViewSearch = false; |
| 93 | 88 | // Quit without doing anything if required variables are not set. |
| 94 | 89 | if (empty($this->settings['solrcore'])) { |
@@ -188,8 +183,7 @@ discard block |
||
| 188 | 183 | * |
| 189 | 184 | * @return string HTML output of facets menu |
| 190 | 185 | */ |
| 191 | - protected function addFacetsMenu() |
|
| 192 | - { |
|
| 186 | + protected function addFacetsMenu() { |
|
| 193 | 187 | // Quit without doing anything if no facets are configured. |
| 194 | 188 | if (empty($this->settings['facets']) && empty($this->settings['facetCollections'])) { |
| 195 | 189 | return ''; |
@@ -214,8 +208,7 @@ discard block |
||
| 214 | 208 | * |
| 215 | 209 | * @return array HMENU array |
| 216 | 210 | */ |
| 217 | - public function makeFacetsMenuArray($facets) |
|
| 218 | - { |
|
| 211 | + public function makeFacetsMenuArray($facets) { |
|
| 219 | 212 | $menuArray = []; |
| 220 | 213 | // Set default value for facet search. |
| 221 | 214 | $search = [ |
@@ -271,8 +264,7 @@ discard block |
||
| 271 | 264 | // check for virtual collections query string |
| 272 | 265 | if($collectionEntry->getIndexSearch()) { |
| 273 | 266 | $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
| 274 | - } |
|
| 275 | - else { |
|
| 267 | + } else { |
|
| 276 | 268 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
| 277 | 269 | } |
| 278 | 270 | } |
@@ -421,8 +413,7 @@ discard block |
||
| 421 | 413 | * |
| 422 | 414 | * @return array The array for the facet's menu entry |
| 423 | 415 | */ |
| 424 | - protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) |
|
| 425 | - { |
|
| 416 | + protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) { |
|
| 426 | 417 | $entryArray = []; |
| 427 | 418 | // Translate value. |
| 428 | 419 | if ($field == 'owner_faceting') { |
@@ -473,8 +464,7 @@ discard block |
||
| 473 | 464 | * |
| 474 | 465 | * @return string The extended search form or an empty string |
| 475 | 466 | */ |
| 476 | - protected function addExtendedSearch() |
|
| 477 | - { |
|
| 467 | + protected function addExtendedSearch() { |
|
| 478 | 468 | // Quit without doing anything if no fields for extended search are selected. |
| 479 | 469 | if ( |
| 480 | 470 | empty($this->settings['extendedSlotCount']) |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | * @subpackage dlf |
| 30 | 30 | * @access public |
| 31 | 31 | */ |
| 32 | -class ListViewController extends AbstractController |
|
| 33 | -{ |
|
| 32 | +class ListViewController extends AbstractController { |
|
| 34 | 33 | /** |
| 35 | 34 | * @var CollectionRepository |
| 36 | 35 | */ |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | /** |
| 40 | 39 | * @param CollectionRepository $collectionRepository |
| 41 | 40 | */ |
| 42 | - public function injectCollectionRepository(CollectionRepository $collectionRepository) |
|
| 43 | - { |
|
| 41 | + public function injectCollectionRepository(CollectionRepository $collectionRepository) { |
|
| 44 | 42 | $this->collectionRepository = $collectionRepository; |
| 45 | 43 | } |
| 46 | 44 | |
@@ -52,8 +50,7 @@ discard block |
||
| 52 | 50 | /** |
| 53 | 51 | * @param MetadataRepository $metadataRepository |
| 54 | 52 | */ |
| 55 | - public function injectMetadataRepository(MetadataRepository $metadataRepository) |
|
| 56 | - { |
|
| 53 | + public function injectMetadataRepository(MetadataRepository $metadataRepository) { |
|
| 57 | 54 | $this->metadataRepository = $metadataRepository; |
| 58 | 55 | } |
| 59 | 56 | |
@@ -68,8 +65,7 @@ discard block |
||
| 68 | 65 | * |
| 69 | 66 | * @return void |
| 70 | 67 | */ |
| 71 | - public function mainAction() |
|
| 72 | - { |
|
| 68 | + public function mainAction() { |
|
| 73 | 69 | $this->searchParams = $this->getParametersSafely('searchParameter'); |
| 74 | 70 | |
| 75 | 71 | // extract collection(s) from collection parameter |