@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if ($library) { |
72 | 72 | $feedMeta['copyright'] = $library->getLabel(); |
73 | 73 | } else { |
74 | - $this->logger->error('Failed to fetch label of selected library with "' . $this->settings['library'] . '"'); |
|
74 | + $this->logger->error('Failed to fetch label of selected library with "'.$this->settings['library'].'"'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | if ( |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | ) { |
92 | 92 | $superiorTitle = Doc::getTitle($document->getPartof(), true); |
93 | 93 | if (!empty($superiorTitle)) { |
94 | - $title .= '[' . $superiorTitle . ']'; |
|
94 | + $title .= '['.$superiorTitle.']'; |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | // Get title of document. |
98 | 98 | if (!empty($document->getTitle())) { |
99 | - $title .= ' ' . $document->getTitle(); |
|
99 | + $title .= ' '.$document->getTitle(); |
|
100 | 100 | } |
101 | 101 | // Set default title if empty. |
102 | 102 | if (empty($title)) { |
@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | } |
105 | 105 | // Append volume information. |
106 | 106 | if (!empty($document->getVolume())) { |
107 | - $title .= ', ' . LocalizationUtility::translate('volume', 'dlf') . ' ' . $document->getVolume(); |
|
107 | + $title .= ', '.LocalizationUtility::translate('volume', 'dlf').' '.$document->getVolume(); |
|
108 | 108 | } |
109 | 109 | // Is this document new or updated? |
110 | 110 | if ($document->getCrdate() == $document->getTstamp()) { |
111 | - $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf') . ' ' . trim($title); |
|
111 | + $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf').' '.trim($title); |
|
112 | 112 | } else { |
113 | - $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title); |
|
113 | + $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf').' '.trim($title); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | $document->setTitle($title); |
@@ -243,10 +243,10 @@ discard block |
||
243 | 243 | if ($root->item(0) instanceof \DOMNode) { |
244 | 244 | $mets = $xml->saveXML($root->item(0)); |
245 | 245 | } else { |
246 | - $this->logger->error('No METS part found in document with location "' . $record['location'] . '"'); |
|
246 | + $this->logger->error('No METS part found in document with location "'.$record['location'].'"'); |
|
247 | 247 | } |
248 | 248 | } else { |
249 | - $this->logger->error('Could not load XML file from "' . $record['location'] . '"'); |
|
249 | + $this->logger->error('Could not load XML file from "'.$record['location'].'"'); |
|
250 | 250 | } |
251 | 251 | return $mets; |
252 | 252 | } |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | $pageSettings = $this->configurationManager->getConfiguration($this->configurationManager::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); |
413 | 413 | $storagePid = $pageSettings["plugin."]["tx_dlf."]["persistence."]["storagePid"]; |
414 | 414 | if ($storagePid > 0) { |
415 | - $this->logger->notice('No records found with PID ' . $storagePid); |
|
415 | + $this->logger->notice('No records found with PID '.$storagePid); |
|
416 | 416 | } else { |
417 | 417 | $this->logger->notice('No records found'); |
418 | 418 | } |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | if (!empty($resArray)) { |
496 | 496 | // check, if all required fields are available for a given identifier |
497 | 497 | foreach ($details['requiredFields'] as $required) { |
498 | - $methodName = 'get' . GeneralUtility::underscoredToUpperCamelCase($required); |
|
498 | + $methodName = 'get'.GeneralUtility::underscoredToUpperCamelCase($required); |
|
499 | 499 | if (empty($resArray->$methodName())) { |
500 | 500 | // Skip metadata formats whose requirements are not met. |
501 | 501 | continue 2; |
@@ -600,9 +600,9 @@ discard block |
||
600 | 600 | |
601 | 601 | if ($resArray = $result->fetch()) { |
602 | 602 | if ($resArray['index_query'] != "") { |
603 | - $solr_query .= '(' . $resArray['index_query'] . ')'; |
|
603 | + $solr_query .= '('.$resArray['index_query'].')'; |
|
604 | 604 | } else { |
605 | - $solr_query .= 'collection:' . '"' . $resArray['index_name'] . '"'; |
|
605 | + $solr_query .= 'collection:'.'"'.$resArray['index_name'].'"'; |
|
606 | 606 | } |
607 | 607 | } else { |
608 | 608 | $this->error = 'noSetHierarchy'; |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | } |
615 | 615 | // Check for required fields. |
616 | 616 | foreach ($this->formats[$this->parameters['metadataPrefix']]['requiredFields'] as $required) { |
617 | - $solr_query .= ' NOT ' . $required . ':""'; |
|
617 | + $solr_query .= ' NOT '.$required.':""'; |
|
618 | 618 | } |
619 | 619 | // toplevel="true" is always required |
620 | 620 | $solr_query .= ' AND toplevel:true'; |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | ) { |
629 | 629 | $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], |
630 | 630 | $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900); |
631 | - $from = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.000Z'; |
|
631 | + $from = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.000Z'; |
|
632 | 632 | } else { |
633 | 633 | $this->error = 'badArgument'; |
634 | 634 | return; |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | ) { |
645 | 645 | $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], |
646 | 646 | $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900); |
647 | - $until = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.999Z'; |
|
647 | + $until = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.999Z'; |
|
648 | 648 | if ($from != "*" && $from > $until) { |
649 | 649 | $this->error = 'badArgument'; |
650 | 650 | } |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | $this->error = 'badArgument'; |
662 | 662 | } |
663 | 663 | } |
664 | - $solr_query .= ' AND timestamp:[' . $from . ' TO ' . $until . ']'; |
|
664 | + $solr_query .= ' AND timestamp:['.$from.' TO '.$until.']'; |
|
665 | 665 | $documentSet = []; |
666 | 666 | $solr = Solr::getInstance($this->settings['solrcore']); |
667 | 667 | if (!$solr->ready) { |
@@ -780,7 +780,7 @@ discard block |
||
780 | 780 | $resumptionTokenInfo['cursor'] = $currentCursor; |
781 | 781 | $resumptionTokenInfo['completeListSize'] = $documentListSet['metadata']['completeListSize']; |
782 | 782 | $expireDateTime = new \DateTime(); |
783 | - $expireDateTime->add(new \DateInterval('PT' . $this->settings['expired'] . 'S')); |
|
783 | + $expireDateTime->add(new \DateInterval('PT'.$this->settings['expired'].'S')); |
|
784 | 784 | $resumptionTokenInfo['expired'] = $expireDateTime; |
785 | 785 | |
786 | 786 | $omitResumptionToken = $currentCursor === 0 && $numShownDocuments >= $documentListSet['metadata']['completeListSize']; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | if ($this->document) { |
126 | 126 | $doc = Doc::getInstance($this->document->getLocation(), $this->settings, true); |
127 | 127 | } else { |
128 | - $this->logger->error('Invalid UID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); |
|
128 | + $this->logger->error('Invalid UID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading'); |
|
129 | 129 | } |
130 | 130 | } else if (GeneralUtility::isValidUrl($requestData['id'])) { |
131 | 131 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $this->document->setLocation($requestData['id']); |
145 | 145 | } else { |
146 | - $this->logger->error('Invalid location given "' . $requestData['id'] . '" for document loading'); |
|
146 | + $this->logger->error('Invalid location given "'.$requestData['id'].'" for document loading'); |
|
147 | 147 | } |
148 | 148 | } |
149 | 149 | |
@@ -160,11 +160,11 @@ discard block |
||
160 | 160 | if ($this->document !== null && $doc !== null) { |
161 | 161 | $this->document->setDoc($doc); |
162 | 162 | } else { |
163 | - $this->logger->error('Failed to load document with record ID "' . $requestData['recordId'] . '"'); |
|
163 | + $this->logger->error('Failed to load document with record ID "'.$requestData['recordId'].'"'); |
|
164 | 164 | } |
165 | 165 | } |
166 | 166 | } else { |
167 | - $this->logger->error('Invalid ID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); |
|
167 | + $this->logger->error('Invalid ID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading'); |
|
168 | 168 | } |
169 | 169 | } |
170 | 170 |
@@ -96,14 +96,14 @@ |
||
96 | 96 | foreach ($collections as $collection) { |
97 | 97 | $solr_query = ''; |
98 | 98 | if ($collection->getIndexSearch() != '') { |
99 | - $solr_query .= '(' . $collection->getIndexSearch() . ')'; |
|
99 | + $solr_query .= '('.$collection->getIndexSearch().')'; |
|
100 | 100 | } else { |
101 | - $solr_query .= 'collection:("' . Solr::escapeQuery($collection->getIndexName()) . '")'; |
|
101 | + $solr_query .= 'collection:("'.Solr::escapeQuery($collection->getIndexName()).'")'; |
|
102 | 102 | } |
103 | - $params['query'] = $solr_query . ' AND partof:0 AND toplevel:true'; |
|
103 | + $params['query'] = $solr_query.' AND partof:0 AND toplevel:true'; |
|
104 | 104 | $partOfNothing = $solr->search_raw($params); |
105 | 105 | |
106 | - $params['query'] = $solr_query . ' AND NOT partof:0 AND toplevel:true'; |
|
106 | + $params['query'] = $solr_query.' AND NOT partof:0 AND toplevel:true'; |
|
107 | 107 | $partOfSomething = $solr->search_raw($params); |
108 | 108 | // Titles are all documents that are "root" elements i.e. partof == 0 |
109 | 109 | $collectionInfo['titles'] = []; |
@@ -52,12 +52,12 @@ |
||
52 | 52 | $(document).ready(function() { |
53 | 53 | AudioPlayer = new dlfAudioPlayer({ |
54 | 54 | audio: { |
55 | - mimeType: "' . $this->audio['mimetype'] . '", |
|
56 | - title: "' . $this->audio['label'] . '", |
|
57 | - url: "' . $this->audio['url'] . '" |
|
55 | + mimeType: "' . $this->audio['mimetype'].'", |
|
56 | + title: "' . $this->audio['label'].'", |
|
57 | + url: "' . $this->audio['url'].'" |
|
58 | 58 | }, |
59 | 59 | parentElId: "tx-dlf-audio", |
60 | - swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')) . 'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf" |
|
60 | + swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')).'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf" |
|
61 | 61 | }); |
62 | 62 | }); |
63 | 63 | '; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | array_unshift($metadata, $data); |
156 | 156 | } |
157 | 157 | if (empty($metadata)) { |
158 | - $this->logger->warning('No metadata found for document with UID ' . $this->document->getUid()); |
|
158 | + $this->logger->warning('No metadata found for document with UID '.$this->document->getUid()); |
|
159 | 159 | return ''; |
160 | 160 | } |
161 | 161 | ksort($metadata); |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | if (empty($metadataValue) && $this->settings['getTitle'] && $this->document->getDoc()->parentId) { |
256 | 256 | $superiorTitle = Doc::getTitle($this->document->getPartof(), true); |
257 | 257 | if (!empty($superiorTitle)) { |
258 | - $metadataArray[$i][$metadataName] = ['[' . $superiorTitle . ']']; |
|
258 | + $metadataArray[$i][$metadataName] = ['['.$superiorTitle.']']; |
|
259 | 259 | } |
260 | 260 | } |
261 | 261 | if (!empty($metadataValue)) { |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | $image['mimetypeLabel'] = $mimetypeLabel; |
254 | 254 | break; |
255 | 255 | } else { |
256 | - $this->logger->warning('File not found in fileGrp "' . $fileGrp . '"'); |
|
256 | + $this->logger->warning('File not found in fileGrp "'.$fileGrp.'"'); |
|
257 | 257 | } |
258 | 258 | } |
259 | 259 | return $image; |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | empty($page1Link) |
345 | 345 | && empty($page2Link) |
346 | 346 | ) { |
347 | - $this->logger->warning('File not found in fileGrps "' . $this->extConf['fileGrpDownload'] . '"'); |
|
347 | + $this->logger->warning('File not found in fileGrps "'.$this->extConf['fileGrpDownload'].'"'); |
|
348 | 348 | } |
349 | 349 | |
350 | 350 | if (!empty($page1Link)) { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | if (!empty($workLink)) { |
384 | 384 | $workLink = $workLink; |
385 | 385 | } else { |
386 | - $this->logger->warning('File not found in fileGrps "' . $this->extConf['fileGrpDownload'] . '"'); |
|
386 | + $this->logger->warning('File not found in fileGrps "'.$this->extConf['fileGrpDownload'].'"'); |
|
387 | 387 | } |
388 | 388 | return $workLink; |
389 | 389 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $pageOptions = []; |
76 | 76 | for ($i = 1; $i <= $this->document->getDoc()->numPages; $i++) { |
77 | - $pageOptions[$i] = '[' . $i . ']' . ($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - ' . htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : ''); |
|
77 | + $pageOptions[$i] = '['.$i.']'.($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - '.htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : ''); |
|
78 | 78 | } |
79 | 79 | $this->view->assign('pageOptions', $pageOptions); |
80 | 80 |
@@ -140,7 +140,7 @@ |
||
140 | 140 | } |
141 | 141 | } |
142 | 142 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
143 | - $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB'); |
|
143 | + $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB'); |
|
144 | 144 | } |
145 | 145 | return $entryArray; |
146 | 146 | } |