[ElsevierBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
d4d635a7d2
commit
342de7744b
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
class ElsevierBridge extends BridgeAbstract{
|
||||
public $maintainer = 'Pierre Mazière';
|
||||
public $name = 'Elsevier journals recent articles';
|
||||
public $uri = 'http://www.journals.elsevier.com';
|
||||
public $uri = 'http://www.journals.elsevier.com/';
|
||||
public $description = 'Returns the recent articles published in Elsevier journals';
|
||||
|
||||
public $parameters = array( array(
|
||||
|
@ -56,7 +56,7 @@ class ElsevierBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
public function collectData(){
|
||||
$uri = 'http://www.journals.elsevier.com/' . $this->getInput('j') . '/recent-articles/';
|
||||
$uri = $this->uri . $this->getInput('j') . '/recent-articles/';
|
||||
$html = $this->getSimpleHTMLDOM($uri) or $this->returnServerError('No results for Elsevier journal '.$this->getInput('j'));
|
||||
|
||||
foreach($html->find('.pod-listing') as $article){
|
||||
|
|
Loading…
Reference in a new issue