Lines Matching refs:data
13 $data = $this->fetchCachedData($id);
16 $result['id'] = $data['DOI'];
17 $result['title'] = empty($data['title']) ? $id : $data['title'];
18 $result['url'] = $data['URL'] ?? 'https://doi.org/' . $id;
20 $result['type'] = $data['type'];
23 foreach ($data['author'] ?? $data['editor'] ?? [] as $author) {
27 $result['journal'] = $data['container-title'] ?? '';
28 $result['volume'] = $data['volume'] ?? '';
29 $result['issue'] = $data['issue'] ?? '';
30 $result['page'] = $data['page'] ?? '';
32 $result['published'] = $data['issued']['date-parts'][0][0] ?? '';
33 $result['publisher'] = $data['publisher'] ?? '';
44 if (!$json) throw new \Exception('Could not fetch data from doi.org. ' . $http->error);