@@ -37,15 +37,15 @@ discard block |
||
37 | 37 | { |
38 | 38 | parent::setUp(); |
39 | 39 | |
40 | - $this->oaiUrl = $this->baseUrl . '/index.php?id=' . $this->oaiPage; |
|
41 | - $this->oaiUrlNoStoragePid = $this->baseUrl . '/index.php?id=' . $this->oaiPageNoStoragePid; |
|
40 | + $this->oaiUrl = $this->baseUrl.'/index.php?id='.$this->oaiPage; |
|
41 | + $this->oaiUrlNoStoragePid = $this->baseUrl.'/index.php?id='.$this->oaiPageNoStoragePid; |
|
42 | 42 | |
43 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
44 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
45 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
46 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml'); |
|
47 | - $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/pages.xml'); |
|
48 | - $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/solrcores.xml'); |
|
43 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
44 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
45 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
46 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml'); |
|
47 | + $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/pages.xml'); |
|
48 | + $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/solrcores.xml'); |
|
49 | 49 | |
50 | 50 | $this->persistenceManager = $this->objectManager->get(PersistenceManager::class); |
51 | 51 | $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $coreName = Solr::createCore(); |
63 | 63 | $solr = Solr::getInstance($coreName); |
64 | 64 | |
65 | - $this->importSolrDocuments($solr, __DIR__ . '/../../Fixtures/Common/documents_1.solr.json'); |
|
65 | + $this->importSolrDocuments($solr, __DIR__.'/../../Fixtures/Common/documents_1.solr.json'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $oaiCoreModel = $this->solrCoreRepository->findByUid(11001); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $jsonDocuments = json_decode(file_get_contents($path), true); |
77 | 77 | |
78 | 78 | $updateQuery = $solr->service->createUpdate(); |
79 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
79 | + $documents = array_map(function($jsonDoc) use ($updateQuery) { |
|
80 | 80 | $document = $updateQuery->createDocument(); |
81 | 81 | foreach ($jsonDoc as $key => $value) { |
82 | 82 | $document->setField($key, $value); |
@@ -21,9 +21,9 @@ |
||
21 | 21 | |
22 | 22 | $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000); |
23 | 23 | |
24 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
25 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml'); |
|
26 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
24 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
25 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml'); |
|
26 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -37,9 +37,9 @@ |
||
37 | 37 | $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000); |
38 | 38 | $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000); |
39 | 39 | |
40 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
41 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
42 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
40 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
41 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
42 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -146,11 +146,11 @@ discard block |
||
146 | 146 | $fulltext['mimetype'] = $this->document->getDoc()->getFileMimeType($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$page]]['files'][$fileGrpFulltext]); |
147 | 147 | break; |
148 | 148 | } else { |
149 | - $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrp "' . $fileGrpFulltext . '"'); |
|
149 | + $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrp "'.$fileGrpFulltext.'"'); |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | if (empty($fulltext)) { |
153 | - $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrps "' . $this->settings['fileGrpFulltext'] . '"'); |
|
153 | + $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrps "'.$this->settings['fileGrpFulltext'].'"'); |
|
154 | 154 | } |
155 | 155 | return $fulltext; |
156 | 156 | } |
@@ -168,12 +168,12 @@ discard block |
||
168 | 168 | $viewerConfiguration = '$(document).ready(function() { |
169 | 169 | if (dlfUtils.exists(dlfViewer)) { |
170 | 170 | tx_dlf_viewer = new dlfViewer({ |
171 | - controls: ["' . implode('", "', $this->controls) . '"], |
|
172 | - div: "' . $this->settings['elementId'] . '", |
|
173 | - images: ' . json_encode($this->images) . ', |
|
174 | - fulltexts: ' . json_encode($this->fulltexts) . ', |
|
175 | - annotationContainers: ' . json_encode($this->annotationContainers) . ', |
|
176 | - useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0) . ' |
|
171 | + controls: ["' . implode('", "', $this->controls).'"], |
|
172 | + div: "' . $this->settings['elementId'].'", |
|
173 | + images: ' . json_encode($this->images).', |
|
174 | + fulltexts: ' . json_encode($this->fulltexts).', |
|
175 | + annotationContainers: ' . json_encode($this->annotationContainers).', |
|
176 | + useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0).' |
|
177 | 177 | }); |
178 | 178 | } |
179 | 179 | });'; |
@@ -274,11 +274,11 @@ discard block |
||
274 | 274 | } |
275 | 275 | break; |
276 | 276 | } else { |
277 | - $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"'); |
|
277 | + $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"'); |
|
278 | 278 | } |
279 | 279 | } |
280 | 280 | if (empty($image)) { |
281 | - $this->logger->warning('No image file found for page "' . $page . '" in fileGrps "' . $this->settings['fileGrpImages'] . '"'); |
|
281 | + $this->logger->warning('No image file found for page "'.$page.'" in fileGrps "'.$this->settings['fileGrpImages'].'"'); |
|
282 | 282 | } |
283 | 283 | return $image; |
284 | 284 | } |