Skip to content

Commit

Permalink
disseminations
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Nov 12, 2024
1 parent 07a5a1d commit 2fcd0bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/MetadataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@ public function get3dUrl(string $identifier): JsonResponse {

//download the file
$identifier = $this->repoDb->getBaseUrl().$identifier;
$identifier = 'https://arche-curation.acdh-dev.oeaw.ac.at/api/3110280';
$obj = new \Drupal\arche_core_gui\Object\ThreeDObject();
$fileObj = $obj->downloadFile($identifier, $tmpDir);
$fileUrl = ($fileObj['result']) ? $fileObj['result'] : "";

if(empty($fileUrl)) {
return new JsonResponse("No binary", 404, ['Content-Type' => 'application/json']);
}
Expand Down

0 comments on commit 2fcd0bf

Please sign in to comment.