From da4aaec0f5e3177ab321f317ce08ae25f4c53132 Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@afi-sa.fr>
Date: Wed, 15 Jul 2015 12:32:15 +0200
Subject: [PATCH] dev #24821 valence user notices

doc
---
 VERSIONS_WIP/24821                     |  1 +
 VERSION_DEV/24821.md                   | 37 ++++++++++++++++++++++++++
 library/Class/User/ILSSubscription.php |  3 ++-
 3 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 VERSIONS_WIP/24821
 create mode 100644 VERSION_DEV/24821.md

diff --git a/VERSIONS_WIP/24821 b/VERSIONS_WIP/24821
new file mode 100644
index 00000000000..99688c5debe
--- /dev/null
+++ b/VERSIONS_WIP/24821
@@ -0,0 +1 @@
+- ticket #24821 : notification de l'abonné à la connexion sur l'expiration de son abonnement, les prêts en retard et les réservations en attente de retrait
\ No newline at end of file
diff --git a/VERSION_DEV/24821.md b/VERSION_DEV/24821.md
new file mode 100644
index 00000000000..4d85a1def1b
--- /dev/null
+++ b/VERSION_DEV/24821.md
@@ -0,0 +1,37 @@
+# ticket #24821 
+
+## Notifications
+
+In controllers, notifcations can be rendered as popup instead of static bars:
+
+```php
+$this->getHelper('notify')->bePopup()
+```
+
+_ZendAfi\_Controller\_Action\_Helper\_FlashMessenger_ notifications now stored as array and can accept parameters:
+```php
+	public function addNotification($message, $options = []) {
+		$params = ['message' => $message] + $options;
+		$this->addMessage([ZendAfi_Controller_Action_Helper_FlashMessenger::NOTIFICATION => $params]);
+	}
+```
+
+
+and _FlashMessengerNotification_ represent a notification. For example to get all popups notifications:
+
+```php
+(new ZendAfi_Controller_Action_Helper_FlashMessenger())
+  ->getNotifications()
+  ->select(function($n) {return $n->isPopup();});
+  ```
+
+
+Users ILS subscription ('abonnement') related functions moved to new _Class\_User\_ILSSubscription_.
+
+
+See _Class\_Users>>registerNotificationsOn_ for notifications usage.
+
+
+## ILS Web services
+
+Add _Class\_WebService\_SIGB\_Reservation>>isWaitingToBePulled_ that returns _true_ when holded document is available in library. Works for: Nanook, Koha, Microbib, Aloes, Carthame, Orphée, Pergame.
diff --git a/library/Class/User/ILSSubscription.php b/library/Class/User/ILSSubscription.php
index 7bbc0395782..8b37966c7c5 100644
--- a/library/Class/User/ILSSubscription.php
+++ b/library/Class/User/ILSSubscription.php
@@ -75,7 +75,8 @@ class Class_User_ILSSubscription {
                  $this->_plural($this->ilsExpireIn(),
                                 'Votre abonnement expire aujourd\'hui.',
                                 'Votre abonnement arrivera à expiration demain.',
-                                'Votre abonnement arrivera à expiration dans %d jours.',																	$this->ilsExpireIn())
+                                'Votre abonnement arrivera à expiration dans %d jours.',
+																$this->ilsExpireIn())
         );
     return $this;
   }
-- 
GitLab