From c66ffeadf683c1e69aba993d76fc98dff61b7a64 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki <arthur.suzuki@biblibre.com> Date: Fri, 31 Jan 2020 01:07:52 +0100 Subject: [PATCH] hotline#101871 : SIGB Koha - patrons expired get explicit error messages when placing a hold while not being allowed to --- VERSIONS_HOTLINE/101871 | 1 + library/Class/WebService/SIGB/Koha/Service.php | 1 + tests/library/Class/WebService/SIGB/KohaTest.php | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 VERSIONS_HOTLINE/101871 diff --git a/VERSIONS_HOTLINE/101871 b/VERSIONS_HOTLINE/101871 new file mode 100644 index 00000000000..d07e2280516 --- /dev/null +++ b/VERSIONS_HOTLINE/101871 @@ -0,0 +1 @@ + - ticket #101871 : les adhérents expirés recoivent un message d'erreur explicite si la réservation est impossible dans koha \ No newline at end of file diff --git a/library/Class/WebService/SIGB/Koha/Service.php b/library/Class/WebService/SIGB/Koha/Service.php index 40f45ea9a98..de6d72b5539 100644 --- a/library/Class/WebService/SIGB/Koha/Service.php +++ b/library/Class/WebService/SIGB/Koha/Service.php @@ -59,6 +59,7 @@ class Class_WebService_SIGB_Koha_Service extends Class_WebService_SIGB_AbstractR 'debarred' => $this->_('compte bloqué'), 'PatronDebarred' => $this->_('compte bloqué'), 'expired' => $this->_('compte expiré'), + 'PatronExpired' => $this->_('compte expiré'), 'alreadyReserved' => $this->_('document déjà réservé sur votre compte'), 'none_available' => $this->_('aucun document n\'est disponible pour la réservation'), 'on_reserve' => $this->_('document réservé par un autre lecteur'), diff --git a/tests/library/Class/WebService/SIGB/KohaTest.php b/tests/library/Class/WebService/SIGB/KohaTest.php index 244216e848c..251fb60af1d 100644 --- a/tests/library/Class/WebService/SIGB/KohaTest.php +++ b/tests/library/Class/WebService/SIGB/KohaTest.php @@ -1702,7 +1702,9 @@ class KohaErrorMessagesOperationTest extends KohaTestCase { ['tooManyReserves' , 'nombre maximum de réservations atteint'], ['notReservable' , 'ce document ne peut normalement pas être réservé'], ['debarred' , 'compte bloqué'], + ['PatronDebarred' , 'compte bloqué'], ['expired' , 'compte expiré'], + ['PatronExpired' , 'compte expiré'], ['alreadyReserved' , 'document déjà réservé sur votre compte'], ['none_available' , 'aucun document n\'est disponible pour la réservation'] ]; -- GitLab