Skip to content
Snippets Groups Projects
Commit adefbc91 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #51334 : add user mail and user barcode in SSO link

parent 7692bca8
Branches
Tags
6 merge requests!2080Sandbox detach zf from storm,!2061Master,!1984Hotline master,!1981Master,!1980Hotline master,!1977hotline #51334 : add user mail and user barcode in SSO link
Pipeline #159 failed with stage
in 8 minutes and 52 seconds
- ticket #51334 : SIGB CDScript : Ajout du courriel et du numéro de carte dans le lien SSO
\ No newline at end of file
......@@ -74,11 +74,11 @@ class Class_Webservice_SIGB_CdScript_Service extends Class_WebService_SIGB_Abstr
protected function getUserInfo($user) {
return '&user='. implode(':', [$user->getIdSigb(),
return '&user='. implode(':', [$user->getIdabon(),
$user->getNom(),
$user->getPrenom(),
$user->getNaissance(),
'',
$user->getMail(),
$user->getDateFin()]);
}
......
......@@ -57,6 +57,7 @@ class CdScriptServiceTest extends CdScriptTestCase {
'nom' => 'Le Pollux',
'prenom' => 'Paul',
'id_sigb' => '654987',
'idabon' => '23901000323008',
'mail' => 'anemail@web.com',
'naissance' => '2002-12-14',
'password' => 'pollux',
......@@ -72,7 +73,8 @@ class CdScriptServiceTest extends CdScriptTestCase {
'id_bib' => 3,
'zone995' => 'a:3:{i:0;a:2:{s:4:"code";s:1:"a";s:6:"valeur";s:10:"Le Kiosque";}i:1;a:2:{s:4:"code";s:1:"b";s:6:"valeur";s:3:"kio";}i:2;a:2:{s:4:"code";s:1:"f";s:6:"valeur";s:3:"319";}}']);
$this->_sigb_le_kiosque = $this->_service->getNotice('456789')->getExemplaireByCodeBarre('456789');
$this->_sigb_le_kiosque = $this->_service->getNotice('456789')
->getExemplaireByCodeBarre('456789');
}
......@@ -90,7 +92,8 @@ class CdScriptServiceTest extends CdScriptTestCase {
/** @test */
public function ressourceUrlShouldBeJumelBib2UserPaulAnd12oclok() {
$this->assertEquals('www.jumel39.fr/docnum.php?bib=2&res=kio&lien=456789&time=1446019200&user=654987:Le Pollux:Paul:2002-12-14::2015-12-14', $this->_service->getRessourceUrl($this->_le_kiosque));
$this->assertEquals('www.jumel39.fr/docnum.php?bib=2&res=kio&lien=456789&time=1446019200&user=23901000323008:Le Pollux:Paul:2002-12-14:anemail@web.com:2015-12-14',
$this->_service->getRessourceUrl($this->_le_kiosque));
}
......@@ -102,7 +105,8 @@ class CdScriptServiceTest extends CdScriptTestCase {
/** @test */
public function leKiosqueItemUrlShouldBeJumelLink() {
$this->assertEquals('www.jumel39.fr/docnum.php?bib=2&res=kio&lien=456789&time=1446019200&user=654987:Le Pollux:Paul:2002-12-14::2015-12-14', $this->_le_kiosque->getUrl());
$this->assertEquals('www.jumel39.fr/docnum.php?bib=2&res=kio&lien=456789&time=1446019200&user=23901000323008:Le Pollux:Paul:2002-12-14:anemail@web.com:2015-12-14',
$this->_le_kiosque->getUrl());
}
......
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