@@ -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) { |
@@ -1100,15 +1100,15 @@ discard block |
||
| 1100 | 1100 | foreach($changeList as $conceptInfo) { |
| 1101 | 1101 | if (array_key_exists('date', $conceptInfo)) { |
| 1102 | 1102 | $simpleChangeList[] = array( 'uri' => $conceptInfo['uri'], |
| 1103 | - 'prefLabel' => $conceptInfo['prefLabel'], |
|
| 1104 | - 'date' => $conceptInfo['date']->format("Y-m-d\TH:i:sO") ); |
|
| 1103 | + 'prefLabel' => $conceptInfo['prefLabel'], |
|
| 1104 | + 'date' => $conceptInfo['date']->format("Y-m-d\TH:i:sO") ); |
|
| 1105 | 1105 | } |
| 1106 | 1106 | } |
| 1107 | 1107 | return $this->returnJson(array_merge_recursive($this->context, |
| 1108 | 1108 | array('@context' => array( '@language' => $request->getLang(), |
| 1109 | - 'prefLabel' => 'skos:prefLabel', |
|
| 1110 | - 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
| 1111 | - 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') ) |
|
| 1109 | + 'prefLabel' => 'skos:prefLabel', |
|
| 1110 | + 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
| 1111 | + 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') ) |
|
| 1112 | 1112 | ), |
| 1113 | 1113 | array('changeList' => $simpleChangeList))); |
| 1114 | 1114 | |
@@ -590,11 +590,11 @@ |
||
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | /** |
| 593 | - * Formats the list of concepts as labels arranged by modification month |
|
| 594 | - * @param Request $request |
|
| 595 | - * @param string $prop the name of the property for a time stamp |
|
| 596 | - * @return Array list of concept labels |
|
| 597 | - */ |
|
| 593 | + * Formats the list of concepts as labels arranged by modification month |
|
| 594 | + * @param Request $request |
|
| 595 | + * @param string $prop the name of the property for a time stamp |
|
| 596 | + * @return Array list of concept labels |
|
| 597 | + */ |
|
| 598 | 598 | public function formatChangeList($request, $prop) |
| 599 | 599 | { |
| 600 | 600 | $offset = ($request->getQueryParam('offset') && is_numeric($request->getQueryParam('offset')) && $request->getQueryParam('offset') >= 0) ? $request->getQueryParam('offset') : 0; |