GetDKAN / dkan2

Deprecated: please use the 2.x branch of the dkan repo
https://github.com/GetDKAN/dkan
GNU General Public License v2.0
18 stars 16 forks source link

Catch exception when downloadURL is not present #316

Closed janette closed 4 years ago

janette commented 4 years ago

dkan_datastore

public function get($useFileFetcher = FALSE, $runFileFetcher = TRUE): ?R {
    $node = $this->entityRepository->loadEntityByUuid('node', $this->uuid);
    if (!$node) {
      return NULL;
    }

    if ($useFileFetcher == TRUE) {
      return $this->getResourceFromFileFetcher($node, $runFileFetcher);
    }
    else {
      return new R($node->id(), $this->getResourceFilePathFromNode($node));
    }
  }

Unable to harvest datasets that use the accessURL instead

harvest