We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08bf5e3 commit 3c43d69Copy full SHA for 3c43d69
1 file changed
src/Scopus/Response/Source.php
@@ -14,7 +14,8 @@ public function __construct(array $data)
14
15
public function getTitle()
16
{
17
- return isset($this->data['sourcetitle']) ? $this->data['sourcetitle'] : null;
+ $sourcetitle = isset($this->data['sourcetitle']) ? $this->data['sourcetitle'] : null;
18
+ return is_array($sourcetitle) ? $sourcetitle['$'] : $sourcetitle;
19
}
20
21
public function getTitleAbbrev()
@@ -62,4 +63,4 @@ public function getVolume()
62
63
$volIss = $this->getVoliss();
64
return $volIss && isset($volIss['@volume']) ? $volIss['@volume'] : null;
65
-}
66
+}
0 commit comments