Skip to content

Commit 44f0137

Browse files
fix AbstractCitations
1 parent 81af5f8 commit 44f0137

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/Scopus/Response/AbstractCitations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getCompactInfo()
6767
$citeInfos = $this->getCiteInfos();
6868

6969
if (!$clmHeader || !$citeInfos) return null;
70-
if (!is_array($clmHeader)) $clmHeader = [$clmHeader];
70+
if (!is_array($clmHeader)) return [$citeInfos[0]->getScopusId() => [$clmHeader => $citeInfos[0]->getColumnCount()]];
7171

7272
$compactData = [];
7373
foreach ($citeInfos as $citeInfo) {

src/Scopus/Response/AuthorProfile.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ public function __construct(array $data)
2424
$this->data = $data;
2525
}
2626

27-
//to try
2827
public function getDataCreated()
2928
{
3029
if (isset($this->data['date-created'])) {
3130
$dateCreat = $this->data['date-created'];
32-
$date = new DateTime($dateCreat['@year'] . '-' . $dateCreat['@month'] . '-' . $dateCreat['@day']);
33-
return $date->format('d/m/Y');
31+
return $dateCreat['@year'] . '-' . $dateCreat['@month'] . '-' . $dateCreat['@day'];
3432
}
3533
return null;
3634
}
@@ -50,7 +48,6 @@ public function getNameVariants()
5048

5149
//getClassificationgroup
5250

53-
//to try
5451
public function getPublicationRange()
5552
{
5653
if (isset($this->data['publication-range'])) {

0 commit comments

Comments
 (0)