Skip to content
Snippets Groups Projects
Commit 7c23ffae authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

hotline#157372 : Cyberlibris Ressources : Harvest Url Changed

parent be0694e4
Branches
Tags
1 merge request!4599hotline#157372 : Cyberlibris Ressources : Harvest Url Changed
Pipeline #19199 passed with stage
in 19 minutes and 47 seconds
- hotline#157372 : Ressources externes : L'url de moissonage Cyberlibris a changé.
\ No newline at end of file
......@@ -21,13 +21,12 @@
class Cyberlibris_Config extends Class_DigitalResource_Config {
const CYBERLIBRIS_HARVEST_URL = 'http://oai-bibliovox.cyberlibris.fr/oai.aspx',
const CYBERLIBRIS_HARVEST_URL = 'https://unr-ra.scholarvox.com/oai/',
CATEGORY_LABEL = 'CyberLibris';
protected function _getConfig() {
return ['Introduction' => $this->_('Cyberlibris'),
'HelpLink' => 'http://wiki.bokeh-library-portal.org/index.php/Cyberlibris',
'Url' => 'https://www.cyberlibris.com//',
'Icon' => 'https://www.unilim.fr/scd/wp-content/uploads/sites/6/2016/09/logo_cyberlibris_400x300-300x225.jpg',
'PermissionLabel' => $this->_('Bibliothèque numérique: accéder à la ressource Cyberlibris'),
......
library/digital_resources/Cyberlibris/images/icon.jpg

8.78 KiB

......@@ -26,6 +26,11 @@ abstract class CyberlibrisActivatedTestCase extends AbstractControllerTestCase {
parent::setUp();
Class_AdminVar::set('Cyberlibris_URL', 'https://bokeh-test-oai-bibliovox.cyberlibris.fr/oai.aspx');
}
public function tearDown() {
Class_AdminVar::set('Cyberlibris_URL', '');
parent::tearDown();
}
}
......@@ -66,6 +71,46 @@ class CyberlibrisDashboardUnactivatedTest extends AbstractControllerTestCase {
class CyberlibrisConfigUrlTest extends AbstractControllerTestCase {
protected $_config;
public function setUp() {
parent::setUp();
$this->_config = Cyberlibris_Config::getInstance();
}
/** @test */
public function withoutUrlSetconfigUrlShouldBeCyberlibrisHarvestUrl() {
$this->assertEquals('https://unr-ra.scholarvox.com/oai/', $this->_config->getHarvestUrl());
}
}
class CyberlibrisHarvestUrlTest extends AbstractControllerTestCase {
protected $_config;
public function setUp() {
parent::setUp();
Class_AdminVar::set('Cyberlibris_URL', 'http://bokeh.afi-sa.net');
$this->_config = Cyberlibris_Config::getInstance();
}
public function tearDown() {
Class_AdminVar::set('Cyberlibris_URL','');
parent::tearDown();
}
/** @test */
public function withoutUrlSetconfigUrlShouldBeCyberlibrisHarvestUrl() {
$this->assertEquals('http://bokeh.afi-sa.net', $this->_config->getHarvestUrl());
}
}
class CyberlibrisDashboardActivatedTest extends CyberlibrisActivatedTestCase {
public function setUp() {
......
......@@ -20,7 +20,6 @@ class Write_Log_In_Temp {
echo "\n\nWelcome to the oaiharvester Pro tool\n\n";
Class_AdminVar::set('CYBERLIBRIS_URL', Cyberlibris_Config::CYBERLIBRIS_HARVEST_URL);
Class_DigitalResource::getInstance()->getHarvesters();
(new CyberLibris_Harvester)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment