diff --git a/library/digital_resources/CVS/Config.php b/library/digital_resources/CVS/Config.php index 73b8d35c2795a3842d73d21cb2abe26e33839505..fe8c4b5796bbfa498397de4616ad0c8a42e68da2 100644 --- a/library/digital_resources/CVS/Config.php +++ b/library/digital_resources/CVS/Config.php @@ -22,10 +22,21 @@ class CVS_Config extends Class_DigitalResource_Config { public function getConfig() { - return ['Introduction' => $this->_('CVS'), + return [ + 'Introduction' => $this->_('“ Spécialiste de la fourniture de produits audiovisuels aux collectivités depuis 1987. â€'), 'HelpLink' => 'http://wiki.bokeh-library-portal.org/index.php/CVS', - 'Url' => '', - 'Icon' => '', + 'Url' => 'http://www.cvs-mediatheques.com/', + 'Icon' => 'http://www.cvs-mediatheques.com/res/cvs/css/default/habillage/logo.png', + 'MailUrl' => 'http://www.cvs-mediatheques.com/?lnk=cgv', + 'Mail' => 'gerard@ruffin.fr', + 'ContactName' => 'Gérard Ruffin', + + 'MenuLabel' => $this->_('Lien vers CVS'), + 'PermissionLabel' => $this->_('Bibliothèque numérique: accéder à CVS'), + 'NotAllowedMessage' => $this->_('Votre abonnement ne permet pas l\'accès à cette ressource.'), + + 'SsoAction' => true, + 'AdminVars' => [ 'BMKEY' => Class_AdminVar_Meta::newDefault($this->_('Paramétrage CVS'))->bePrivate(), diff --git a/library/digital_resources/CVS/controllers/IndexController.php b/library/digital_resources/CVS/controllers/IndexController.php new file mode 100644 index 0000000000000000000000000000000000000000..d65827b28bdccf0b8f7c3c245e1adf505ff7965c --- /dev/null +++ b/library/digital_resources/CVS/controllers/IndexController.php @@ -0,0 +1,23 @@ +<?php +/** + * Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +class CVS_Plugin_IndexController extends Class_DigitalResource_Controller {} \ No newline at end of file diff --git a/public/opac/js/digital_connectors.js b/public/opac/js/digital_connectors.js index 1082e08ffce508dbbc54a4e07f114fb590e47ec8..bcd4101e698ad381ccf23635758bf0862756779b 100644 --- a/public/opac/js/digital_connectors.js +++ b/public/opac/js/digital_connectors.js @@ -74,17 +74,6 @@ "name" : "Jean-Pierre Degoulet", "url" : "http://www.bibliovox.com/contact/"} }, - "CVS": { - "label" : "CVS", - "enabled": "isCVSEnabled", - "url" : "http://www.cvs-mediatheques.com/", - "image_url" : "http://www.cvs-mediatheques.com/res/cvs/css/default/habillage/logo.png", - "desc": "“ Spécialiste de la fourniture de produits audiovisuels aux collectivités depuis 1987. â€", - "features": ["SSO"], - "sales_contact": {"mail" : "gerard@ruffin.fr", - "name" : "Gérard Ruffin", - "url" : "http://www.cvs-mediatheques.com/?lnk=cgv"} -}, "EUROPRESSE": { "label" : "Europresse", "enabled": "PROVIDER",