It would be nice if a patron could see which email notifications for new serial issues they have subscribed to in the OPAC. At the moment subscribing and unsubscribing is only possible from the detail screen and this makes it somewhat hard to find for patrons.
Just came up again as a question in training - would still be a nice addition :)
Created attachment 151550 [details] [review] Bug 28130: [WIP] Manage a patron's subscription alerts Patch in progress
Created attachment 151619 [details] [review] Bug 28130: Manage a patron's subscription alerts This enhancement adds an 'Alert subscriptions' page to a patron account to easily view or cancel email alerts the patron has subscribed to. To test: 1. Go to Cataloging. Create a biblio. 2. Go to Tools -> Notices & slips. Create a notice under the "Serials (new issue)" module, if you don't already have one. 3. Go to Serials. Create a subscription. Link the biblio you just created. Add info like the callnumber, location, library. Choose your notice under Patron notification. Fill out the remaining details and save your subscription. 4. Open this record in the OPAC. Under the Subscriptions tab, click the button to "Subscribe to email notification on new issues" 5. Go back to the staff interface. Go to your patron account. 6. Notice there is a new "Alert subscriptions" tab in the left sidebar menu. The number in brackets should say 1, for the subscription you just enabled email alerts. 7. Click into the page. Confirm your subscription shows in the table. 8. Click the button to unsubscribe. A confirmation should pop up. Confirm you can cancel the unsubscribe action. Then confirm you can unsubscribe using this button. 9. Confirm tests pass t/db_dependent/Koha/Patron.t Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg
An error occurs when trying to open a sandbox with the enhancement. Part of the error trace says: "Error trace Could not mkdir /tmp/cgi_compile_22068: No space left on device at /usr/share/perl5/CGI/Compile.pm line 195 1. in CGI::Compile::_eval at /usr/share/perl5/CGI/Compile.pm line 195 2. 192: $tmp_dir ||= File::Spec->catfile(File::Spec->tmpdir, "cgi_compile_$$"); 3. 193: 4. 194: if (! -d $tmp_dir) { 5. 195: mkdir $tmp_dir or die "Could not mkdir $tmp_dir: $!"; 6. 196: chmod 0700, $tmp_dir or die "Could not chmod 0700 $tmp_dir: $!"; 7. 197: } 8. 198: " I could send the complete error trace if needed.
I'm sorry that was a sandbox issue. The enhancement works fine. But it's for the staff client. First of all, we would like to have it for the patron itself, in hers or his account in the opac. Besides that, it looks fine to me.
Created attachment 151656 [details] [review] Bug 28130: Manage a patron's subscription alerts This enhancement adds an 'Alert subscriptions' page to a patron account to easily view or cancel email alerts the patron has subscribed to. To test: 1. Go to Cataloging. Create a biblio. 2. Go to Tools -> Notices & slips. Create a notice under the "Serials (new issue)" module, if you don't already have one. 3. Go to Serials. Create a subscription. Link the biblio you just created. Add info like the callnumber, location, library. Choose your notice under Patron notification. Fill out the remaining details and save your subscription. 4. Open this record in the OPAC. Under the Subscriptions tab, click the button to "Subscribe to email notification on new issues" 5. Go back to the staff interface. Go to your patron account. 6. Notice there is a new "Alert subscriptions" tab in the left sidebar menu. The number in brackets should say 1, for the subscription you just enabled email alerts. 7. Click into the page. Confirm your subscription shows in the table. 8. Click the button to unsubscribe. A confirmation should pop up. Confirm you can cancel the unsubscribe action. Then confirm you can unsubscribe using this button. 9. Confirm tests pass t/db_dependent/Koha/Patron.t Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg
Created attachment 151657 [details] [review] Bug 28130: Manage subscription alerts on OPAC This patch adds an 'Alert subscriptions' tab to the patron's account on the OPAC, so they can easily view or cancel email alerts they have subscribed to. To test: 1. Subscribe to email alerts for one or more subscriptions via the OPAC 2. Go to your account, notice the new 'Alert subscriptions' menu option, click here 3. Confirm your subscribed alerts show here. Confirm the table sorting works etc (JS enabled). 4. Test unsubscribing from email alerts, make sure the confirmation pop-up works as expected (JS enabled). 5. Confirm that, when unsubscribing, you are redirected back to this page. 6. Confirm the menu option disappears from the left sidebar navigation if you have no alert subscriptions. Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg
Created attachment 151658 [details] [review] Bug 28130: Manage a patron's subscription alerts This enhancement adds an 'Alert subscriptions' page to a patron account to easily view or cancel email alerts the patron has subscribed to. To test: 1. Go to Cataloging. Create a biblio. 2. Go to Tools -> Notices & slips. Create a notice under the "Serials (new issue)" module, if you don't already have one. 3. Go to Serials. Create a subscription. Link the biblio you just created. Add info like the callnumber, location, library. Choose your notice under Patron notification. Fill out the remaining details and save your subscription. 4. Open this record in the OPAC. Under the Subscriptions tab, click the button to "Subscribe to email notification on new issues" 5. Go back to the staff interface. Go to your patron account. 6. Notice there is a new "Alert subscriptions" tab in the left sidebar menu. The number in brackets should say 1, for the subscription you just enabled email alerts. 7. Click into the page. Confirm your subscription shows in the table. 8. Click the button to unsubscribe. A confirmation should pop up. Confirm you can cancel the unsubscribe action. Then confirm you can unsubscribe using this button. 9. Confirm tests pass t/db_dependent/Koha/Patron.t Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de>
Created attachment 151659 [details] [review] Bug 28130: Manage subscription alerts on OPAC This patch adds an 'Alert subscriptions' tab to the patron's account on the OPAC, so they can easily view or cancel email alerts they have subscribed to. To test: 1. Subscribe to email alerts for one or more subscriptions via the OPAC 2. Go to your account, notice the new 'Alert subscriptions' menu option, click here 3. Confirm your subscribed alerts show here. Confirm the table sorting works etc (JS enabled). 4. Test unsubscribing from email alerts, make sure the confirmation pop-up works as expected (JS enabled). 5. Confirm that, when unsubscribing, you are redirected back to this page. 6. Confirm the menu option disappears from the left sidebar navigation if you have no alert subscriptions. Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de>
Tested with alerts for two different subscriptions, looks good to me. Maybe someone else can have a look at it too to verify.
I'm not sure why this was set to Patch doesn't apply, it applies cleanly on main for me.
Created attachment 151814 [details] [review] Bug 28130: Manage a patron's subscription alerts This enhancement adds an 'Alert subscriptions' page to a patron account to easily view or cancel email alerts the patron has subscribed to. To test: 1. Go to Cataloging. Create a biblio. 2. Go to Tools -> Notices & slips. Create a notice under the "Serials (new issue)" module, if you don't already have one. 3. Go to Serials. Create a subscription. Link the biblio you just created. Add info like the callnumber, location, library. Choose your notice under Patron notification. Fill out the remaining details and save your subscription. 4. Open this record in the OPAC. Under the Subscriptions tab, click the button to "Subscribe to email notification on new issues" 5. Go back to the staff interface. Go to your patron account. 6. Notice there is a new "Alert subscriptions" tab in the left sidebar menu. The number in brackets should say 1, for the subscription you just enabled email alerts. 7. Click into the page. Confirm your subscription shows in the table. 8. Click the button to unsubscribe. A confirmation should pop up. Confirm you can cancel the unsubscribe action. Then confirm you can unsubscribe using this button. 9. Confirm tests pass t/db_dependent/Koha/Patron.t Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> Signed-off-by: Sam Lau <samalau@gmail.com>
Created attachment 151815 [details] [review] Bug 28130: Manage subscription alerts on OPAC This patch adds an 'Alert subscriptions' tab to the patron's account on the OPAC, so they can easily view or cancel email alerts they have subscribed to. To test: 1. Subscribe to email alerts for one or more subscriptions via the OPAC 2. Go to your account, notice the new 'Alert subscriptions' menu option, click here 3. Confirm your subscribed alerts show here. Confirm the table sorting works etc (JS enabled). 4. Test unsubscribing from email alerts, make sure the confirmation pop-up works as expected (JS enabled). 5. Confirm that, when unsubscribing, you are redirected back to this page. 6. Confirm the menu option disappears from the left sidebar navigation if you have no alert subscriptions. Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> Signed-off-by: Sam Lau <samalau@gmail.com>
Created attachment 153779 [details] [review] Bug 28130: Manage a patron's subscription alerts This enhancement adds an 'Alert subscriptions' page to a patron account to easily view or cancel email alerts the patron has subscribed to. To test: 1. Go to Cataloging. Create a biblio. 2. Go to Tools -> Notices & slips. Create a notice under the "Serials (new issue)" module, if you don't already have one. 3. Go to Serials. Create a subscription. Link the biblio you just created. Add info like the callnumber, location, library. Choose your notice under Patron notification. Fill out the remaining details and save your subscription. 4. Open this record in the OPAC. Under the Subscriptions tab, click the button to "Subscribe to email notification on new issues" 5. Go back to the staff interface. Go to your patron account. 6. Notice there is a new "Alert subscriptions" tab in the left sidebar menu. The number in brackets should say 1, for the subscription you just enabled email alerts. 7. Click into the page. Confirm your subscription shows in the table. 8. Click the button to unsubscribe. A confirmation should pop up. Confirm you can cancel the unsubscribe action. Then confirm you can unsubscribe using this button. 9. Confirm tests pass t/db_dependent/Koha/Patron.t Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 153780 [details] [review] Bug 28130: Manage subscription alerts on OPAC This patch adds an 'Alert subscriptions' tab to the patron's account on the OPAC, so they can easily view or cancel email alerts they have subscribed to. To test: 1. Subscribe to email alerts for one or more subscriptions via the OPAC 2. Go to your account, notice the new 'Alert subscriptions' menu option, click here 3. Confirm your subscribed alerts show here. Confirm the table sorting works etc (JS enabled). 4. Test unsubscribing from email alerts, make sure the confirmation pop-up works as expected (JS enabled). 5. Confirm that, when unsubscribing, you are redirected back to this page. 6. Confirm the menu option disappears from the left sidebar navigation if you have no alert subscriptions. Sponsored-by: Bibliotheksservice-Zentrum Baden-Wuerttemberg Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 153781 [details] [review] Bug 28130: (QA follow-up) Use schema result to fetch alerts to allow for prefetch Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 153782 [details] [review] Bug 28130: (QA follow-up) Tidy Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 23.11. Nice work everyone, thanks!
Enhancement not pushed to 23.05.x
*** Bug 25848 has been marked as a duplicate of this bug. ***
Nice addition! Thanks!
I found it a bit weird that staff need the serials permissions to see the patron's email subscriptions. I would think patrons could ask any circulation staff members to unsubscribe them, if they can't do it themselves from the OPAC for any reason... But if no one has asked for this in a year, I guess it's not that necessary.
(In reply to Caroline Cyr La Rose from comment #22) > I found it a bit weird that staff need the serials permissions to see the > patron's email subscriptions. I would think patrons could ask any > circulation staff members to unsubscribe them, if they can't do it > themselves from the OPAC for any reason... But if no one has asked for this > in a year, I guess it's not that necessary. I think you make a good point - what permission would you suggest? :)
(In reply to Katrin Fischer from comment #23) > (In reply to Caroline Cyr La Rose from comment #22) > > I found it a bit weird that staff need the serials permissions to see the > > patron's email subscriptions. I would think patrons could ask any > > circulation staff members to unsubscribe them, if they can't do it > > themselves from the OPAC for any reason... But if no one has asked for this > > in a year, I guess it's not that necessary. > > I think you make a good point - what permission would you suggest? :) I would have thought if the staff member can see the patron's account, they can see their subscriptions. If they can modify the patron's account, they can unsubscribe them. If they have access to serials, they can click the link to the serials subscription (if not, it links to the catalog?). list_borrowers : view the page edit_borrowers : view the page and unsubscribe anything in serial : click on serial subscription link Would that make sense? I can create a new bug report if you want.
> Would that make sense? I can create a new bug report if you want. Yes, or we can discuss it a bit further. I like the idea for the link. A bug would be great if you have a moment, I am about to log out for an early weekend.
Created Bug 38636, we can continue discussion there :)