From 342de7744bbfb025f3ccd8b23d8f2223693becab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 14:15:38 +0200 Subject: [PATCH] [ElsevierBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/ElsevierBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/ElsevierBridge.php b/bridges/ElsevierBridge.php index fa16c8e9..0444f63c 100644 --- a/bridges/ElsevierBridge.php +++ b/bridges/ElsevierBridge.php @@ -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){