@@ -575,9 +575,9 @@ discard block |
||
| 575 | 575 | $vocid = $request->getVocab()->getId(); |
| 576 | 576 | return $this->returnError('404', 'Not Found', "No download source URL known for vocabulary $vocid in language $dataLang"); |
| 577 | 577 | } |
| 578 | - } else { |
|
| 578 | + } else { |
|
| 579 | 579 | header("Location: " . $urls[$format]); |
| 580 | - } |
|
| 580 | + } |
|
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | private function returnDataResults($results, $format) { |
@@ -1099,15 +1099,15 @@ discard block |
||
| 1099 | 1099 | foreach($changeList as $conceptInfo) { |
| 1100 | 1100 | if (array_key_exists('date', $conceptInfo)) { |
| 1101 | 1101 | $simpleChangeList[] = array( 'uri' => $conceptInfo['uri'], |
| 1102 | - 'prefLabel' => $conceptInfo['prefLabel'], |
|
| 1103 | - 'date' => $conceptInfo['date']->format(DateTimeInterface::ISO8601) ); |
|
| 1102 | + 'prefLabel' => $conceptInfo['prefLabel'], |
|
| 1103 | + 'date' => $conceptInfo['date']->format(DateTimeInterface::ISO8601) ); |
|
| 1104 | 1104 | } |
| 1105 | 1105 | } |
| 1106 | 1106 | return $this->returnJson(array_merge_recursive($this->context, |
| 1107 | 1107 | array('@context' => array( '@language' => $request->getLang(), |
| 1108 | - 'prefLabel' => 'skos:prefLabel', |
|
| 1109 | - 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
| 1110 | - 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') ) |
|
| 1108 | + 'prefLabel' => 'skos:prefLabel', |
|
| 1109 | + 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
| 1110 | + 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') ) |
|
| 1111 | 1111 | ), |
| 1112 | 1112 | array('changeList' => $simpleChangeList))); |
| 1113 | 1113 | |