@@ -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) { |
@@ -1120,9 +1120,9 @@ discard block |
||
1120 | 1120 | } |
1121 | 1121 | return $this->returnJson(array_merge_recursive($this->context, |
1122 | 1122 | array('@context' => array( '@language' => $request->getLang(), |
1123 | - 'prefLabel' => 'skos:prefLabel', |
|
1124 | - 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
1125 | - 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') ) |
|
1123 | + 'prefLabel' => 'skos:prefLabel', |
|
1124 | + 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
1125 | + 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') ) |
|
1126 | 1126 | ), |
1127 | 1127 | array('changeList' => $simpleChangeList))); |
1128 | 1128 |