[Bug 33260] New: Show message queue on staff interface and make notices printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Bug ID: 33260 Summary: Show message queue on staff interface and make notices printable Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: aleisha@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org Some Koha libraries need to get messages out to borrowers who do not have email addresses, so they need to be able to view generated notices, and optionally print them so they can be delivered offline. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Change sponsored?|--- |Sponsored Assignee|koha-bugs@lists.koha-commun |aleisha@catalyst.net.nz |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #1 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 148437 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148437&action=edit Bug 33260: Add view_generated_notices user permission -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #2 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 148438 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148438&action=edit Bug 33260: Add NoticesManagement system preference -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #3 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 148439 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148439&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #4 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 148440 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148440&action=edit Bug 33260: [WIP] Add Notice management tool -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 AspenCat Team <aspencatteam@clicweb.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aspencatteam@clicweb.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148440|0 |1 is obsolete| | --- Comment #5 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 148943 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148943&action=edit Bug 33260: [WIP] Add Notice management tool TODO: Get date filtering working, get Print going, add Print to members/notices.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148943|0 |1 is obsolete| | --- Comment #6 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 149009 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149009&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print individual sent notices. TODO: Print multiple notices at once. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Medium patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149009|0 |1 is obsolete| | --- Comment #7 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 149413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149413&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement makes it release notes| |easy for the library to | |view sent notices and | |filter by various search | |parameters. | | | |You can also | |print sent notices, | |individually or in a batch. | | | |This enhancement uses a | |new system preference | |NoticesManagement and a new | |view_generated_notices user | |permission. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Laura.escamilla@bywatersolu | |tions.com Status|Needs Signoff |Failed QA --- Comment #8 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Hi! Overall the new syspref and notices management page is working as expected. However, there are a few things I noticed that seem to be a little broken. 1. In the Notices Management page if you search for a patron and their name populates then clicking on the populated name will appropriately take you to their notice history. However, if you use the "Browse by last name" option or if you just search for a letter such as "K", then the table that is supposed to show the patron names is not displayed properly. It is askew to the left and mixes into the filter options. 2. The print notices work, but there is a lot of whitespace within the messages. This might be a separate bug, but having the messages more condensed and still separated by the horizontal line would be ideal. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |ASSIGNED --- Comment #9 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Thank you for testing Laura! (In reply to Laura Escamilla from comment #8)
Hi!
Overall the new syspref and notices management page is working as expected. However, there are a few things I noticed that seem to be a little broken.
1. In the Notices Management page if you search for a patron and their name populates then clicking on the populated name will appropriately take you to their notice history. However, if you use the "Browse by last name" option or if you just search for a letter such as "K", then the table that is supposed to show the patron names is not displayed properly. It is askew to the left and mixes into the filter options.
I'll work on fixing this.
2. The print notices work, but there is a lot of whitespace within the messages. This might be a separate bug, but having the messages more condensed and still separated by the horizontal line would be ideal.
This is just how the default HOLD print notice comes in Koha, it has heaps of line breaks in it. You can go to Notices & slips and delete the newlines from the template notice to remove that whitespace. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #10 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 149581 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149581&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149581|0 |1 is obsolete| | --- Comment #11 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149593 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149593&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148437|0 |1 is obsolete| | --- Comment #12 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149594 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149594&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148438|0 |1 is obsolete| | --- Comment #13 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149595 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149595&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148439|0 |1 is obsolete| | --- Comment #14 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149596 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149596&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149413|0 |1 is obsolete| | --- Comment #15 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149597 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149597&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. Sponsored-by: Colorado Library Consortium Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149593|0 |1 is obsolete| | --- Comment #16 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 149598 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149598&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #17 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Love the way the new setup looks for the notice management page! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrewfh@dubcolib.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrewfh@dubcolib.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff Depends on| |33478 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33478 [Bug 33478] Customise the format of notices when they are printed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149597|0 |1 is obsolete| | --- Comment #18 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 150346 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150346&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149598|0 |1 is obsolete| | --- Comment #19 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 150347 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150347&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #20 from Aleisha Amohia <aleisha@catalyst.net.nz> --- I've rebased this to build on top of Bug 33478 and use the format settings. Only the patch "Bug 33260: Add Notice management tool" needs to be re-tested and a new sign-off line added. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |emmi.takkinen@koha-suomi.fi --- Comment #21 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- I'm getting this error when trying to apply the patches: Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 33260: Add view_generated_notices user permission Applying: Bug 33260: Add NoticesManagement system preference Applying: Bug 33260: Add a patron getter method to Koha::Notice::Message Applying: Bug 33260: Add Notice management tool Using index info to reconstruct a base tree... M koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt M koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt A koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js Falling back to patching base and 3-way merge... CONFLICT (modify/delete): koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js deleted in HEAD and modified in Bug 33260: Add Notice management tool. Version Bug 33260: Add Notice management tool of koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js left in tree. Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt error: Failed to merge in the changes. Patch failed at 0001 Bug 33260: Add Notice management tool hint: Use 'git am --show-current-patch=diff' to see the failed patch When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-33260-Add-Notice-management-tool-wp4ViP.patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #150346|0 |1 is obsolete| | --- Comment #22 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 154927 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154927&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #150347|0 |1 is obsolete| | --- Comment #23 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 154928 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154928&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Status|Needs Signoff |Patch doesn't apply --- Comment #24 from David Nind <david@davidnind.com> --- Patch no longer applies 8-(... Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 33260: Add view_generated_notices user permission Applying: Bug 33260: Add NoticesManagement system preference Applying: Bug 33260: Add a patron getter method to Koha::Notice::Message Using index info to reconstruct a base tree... M t/db_dependent/Letters.t Falling back to patching base and 3-way merge... Auto-merging t/db_dependent/Letters.t CONFLICT (content): Merge conflict in t/db_dependent/Letters.t error: Failed to merge in the changes. Patch failed at 0001 Bug 33260: Add a patron getter method to Koha::Notice::Message -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Katie Bliss <kebliss@dmpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kebliss@dmpl.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149596|0 |1 is obsolete| | --- Comment #25 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 157383 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157383&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154927|0 |1 is obsolete| | --- Comment #26 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 157384 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157384&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154928|0 |1 is obsolete| | --- Comment #27 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 157385 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157385&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #28 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 157386 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157386&action=edit Bug 33260: Make styles apply per notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #29 from Aleisha Amohia <aleisha@catalyst.net.nz> --- The latest patch uses regex to replace all the CSS selectors when printing notices from the Notices Management page. It's not perfect, but it does the best job (that I could find) at applying notice-specific styles when printing a batch of notices. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Kelly McElligott <kelly@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kelly@bywatersolutions.com --- Comment #30 from Kelly McElligott <kelly@bywatersolutions.com> --- Upon testing this, I am getting, for every notice, I try to print, No Slip Template Found. Each notice that I have tested has a template created which include checkin, hold, checkout, welcome. Not sure why I am getting this message. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #31 from Kelly McElligott <kelly@bywatersolutions.com> --- Upon testing this, I am getting, for every notice, I try to print, No Slip Template Found. Each notice that I have tested has a template created which include checkin, hold, checkout, welcome. Not sure why I am getting this message. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #32 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Hi Kelly, I think you may have been seeing that message if you forgot to apply the patches from Bug 33478 first. Bug 33478 now needs to be rebased so will update when this patchset can be tested again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157383|0 |1 is obsolete| | --- Comment #33 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 158852 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158852&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157384|0 |1 is obsolete| | --- Comment #34 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 158853 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158853&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157385|0 |1 is obsolete| | --- Comment #35 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 158854 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158854&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157386|0 |1 is obsolete| | --- Comment #36 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 158855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158855&action=edit Bug 33260: Make styles apply per notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |34030 --- Comment #37 from Aleisha Amohia <aleisha@catalyst.net.nz> --- I have reworked this feature to apply on top of the new Preservation Module, which changed the markup for how most notices are sent. Please test that any formatting applies to all notices again, thank you! Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34030 [Bug 34030] Print slips in a batch from the preservation module -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|34030 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34030 [Bug 34030] Print slips in a batch from the preservation module -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=30287 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=35279 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #38 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Just starting to look here; just a couple of comments from initial testing so far * Could you take bug 30287 into account for the notice previews, please? * I used bug 35279 to test using the WELCOME message (it adds print fallback) Once I'd created a print type welcome notice for the ktd henry user, it displayed OK in print preview from the new notice management page, but the same print button on the patron notices tab yields 'No slip template found'. I must admit, I find the print process a little confusing at the moment, but need to test more before really commenting further. I do however like the idea of the feature overall.. will be watching it closeing during the next cycle. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #39 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Comment on attachment 158855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158855 Bug 33260: Make styles apply per notice Review of attachment 158855: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=33260&attachment=158855) ----------------------------------------------------------------- I think this patch belongs in bug 33478 personally.. it's a fix for that bug not this one after rebases. ::: koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ +39,5 @@
[% SET slips = [{content => slip, is_html => !plain, style => style }] %] [% END %] [% FOR slip IN slips %] +[% IF slip.style %]<style>[% slip.style.replace('[^{]+{', '#slip_' _ slip.id _ ' {') | $raw %]</style>[% END %] +<span id="slip_[% slip.id | html %]">
Also.. this should really be a block level element in my opinion rather than an inline level element.. Probably a 'div'. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |oleonard@myacpl.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|33478 |30287 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30287 [Bug 30287] Notices using HTML render differently in notices.pl https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33478 [Bug 33478] Customise the format of notices when they are printed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149594|0 |1 is obsolete| | Attachment #158855|0 |1 is obsolete| | --- Comment #40 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162570 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162570&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149595|0 |1 is obsolete| | --- Comment #41 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162571 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162571&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158852|0 |1 is obsolete| | --- Comment #42 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162572 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162572&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158853|0 |1 is obsolete| | --- Comment #43 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162573 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162573&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158854|0 |1 is obsolete| | --- Comment #44 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162574 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162574&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |33478 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33478 [Bug 33478] Customise the format of notices when they are printed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Kelly McElligott <kelly@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #45 from Kelly McElligott <kelly@bywatersolutions.com> --- When searching for a notice in the search filters within the Notice Management Tool, several notices appear multiple times. For example, there are 3 HOLD notices. In the sandbox I am testing in, there is only one HOLD notice within the Notices and Slips, so it shouldn't appear three times. In addition, there are two check-in digest and two checkout digest options in this drop-down menu. There are many that only appear once, but some appear more than once. I think that the notice should only appear once when the library only has one notice. This list becomes very long with duplicates and it is very confusing. Just testing, I did create a library-specific HOLD notice, which appeared in the dropdown menu as with all the others with no indication of it being a library-specific notice. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162573|0 |1 is obsolete| | --- Comment #46 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162624 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162624&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162574|0 |1 is obsolete| | --- Comment #47 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 162625 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162625&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #48 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Kelly McElligott from comment #45)
When searching for a notice in the search filters within the Notice Management Tool, several notices appear multiple times. For example, there are 3 HOLD notices. In the sandbox I am testing in, there is only one HOLD notice within the Notices and Slips, so it shouldn't appear three times. In addition, there are two check-in digest and two checkout digest options in this drop-down menu. There are many that only appear once, but some appear more than once. I think that the notice should only appear once when the library only has one notice. This list becomes very long with duplicates and it is very confusing.
Just testing, I did create a library-specific HOLD notice, which appeared in the dropdown menu as with all the others with no indication of it being a library-specific notice.
Good catch, this was because of the many message transport types that might be available for a notice. I've fixed that up in latest patches - please test again when you can. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162570|0 |1 is obsolete| | --- Comment #49 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 162677 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162677&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162571|0 |1 is obsolete| | --- Comment #50 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 162678 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162678&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162572|0 |1 is obsolete| | --- Comment #51 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 162679 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162679&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162624|0 |1 is obsolete| | --- Comment #52 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 162680 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162680&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162625|0 |1 is obsolete| | --- Comment #53 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 162681 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162681&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Kelly McElligott <kelly@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Status|Signed Off |Failed QA --- Comment #54 from Lucas Gass <lucas@bywatersolutions.com> --- Tests are failing here and the DBUpdates need to have their file permissions corrected. Otherwise looks good! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162677|0 |1 is obsolete| | --- Comment #55 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164783 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164783&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162678|0 |1 is obsolete| | --- Comment #56 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164784 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164784&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162679|0 |1 is obsolete| | --- Comment #57 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164785 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164785&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162680|0 |1 is obsolete| | --- Comment #58 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164786 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164786&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162681|0 |1 is obsolete| | --- Comment #59 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164787 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164787&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply --- Comment #60 from Lucas Gass <lucas@bywatersolutions.com> --- Needs rebased on top of Bug 36490 now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164786|0 |1 is obsolete| | --- Comment #61 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 165238 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165238&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164787|0 |1 is obsolete| | --- Comment #62 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 165239 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165239&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #63 from David Nind <david@davidnind.com> --- I could not test steps 5-13 (Tools > Notices management) because I get these errors (maybe partially related to Bug 34478 and Bug 36192 - CSRF protection) (other steps all work as expected): 1. Patron search: entering a partial name doesn't come up with the full name and card number to select (for example: start typing mary). Two errors in the console: jQuery.Deferred exception: Cannot set properties of undefined (setting '_renderItem') TypeError: Cannot set properties of undefined (setting '_renderItem') at patron_autocomplete (http://127.0.0.1:8081/intranet-tmpl/prog/js/staff-global_23.1200025.js:574:4...) at HTMLDocument.<anonymous> (http://127.0.0.1:8081/cgi-bin/koha/tools/notices.pl:2803:21) at e (http://127.0.0.1:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_23.1200025.j...) at t (http://127.0.0.1:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_23.1200025.j...) undefined Uncaught TypeError: Cannot set properties of undefined (setting '_renderItem') at patron_autocomplete (staff-global_23.1200025.js:574:46) at HTMLDocument.<anonymous> (notices.pl:2803:21) at e (jquery-3.6.0.min_23.1200025.js:2:30038) at t (jquery-3.6.0.min_23.1200025.js:2:30340) 2. Browse by last name: selecting any letter displays all patrons ("showing 1 to 20 of 53 entries"). 3. Selecting a patron (after choosing a letter) - nothing displays apart from the patrons search/browse by last name box) (for example: http://127.0.0.1:8081/cgi-bin/koha/tools/notices.pl?&borrowernumber=49) 4. Error when using the search filters. Click 'Search' (no need to change any filter options), error displayed: An error has occurred! Error 403 Programming error - op 'search' must start with 'cud-' for POST http://127.0.0.1:8081/intranet/tools/notices.pl (referer: http://127.0.0.1:8081/cgi-bin/koha/tools/notices.pl?&borrowernumber=49) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #64 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 165717 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165717&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #65 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to David Nind from comment #63)
I could not test steps 5-13 (Tools > Notices management) because I get these errors (maybe partially related to Bug 34478 and Bug 36192 - CSRF protection) (other steps all work as expected):
Thanks for testing David, I believe I have addressed these errors in the latest follow up. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #66 from David Nind <david@davidnind.com> --- (In reply to Aleisha Amohia from comment #65)
(In reply to David Nind from comment #63)
I could not test steps 5-13 (Tools > Notices management) because I get these errors (maybe partially related to Bug 34478 and Bug 36192 - CSRF protection) (other steps all work as expected):
Thanks for testing David, I believe I have addressed these errors in the latest follow up.
Thanks Aleisha for updating! The patron search block on the notices management tool page is now working. However, for the search filters on the left, I'm still getting an error when clicking on 'Search': An error has occurred! Error 403 Programming error - op 'search' must start with 'cud-' for POST http://127.0.0.1:8081/intranet/tools/notices.pl (referer: http://127.0.0.1:8081/cgi-bin/koha/tools/notices.pl) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165717|0 |1 is obsolete| | --- Comment #67 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 165939 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165939&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164783|0 |1 is obsolete| | --- Comment #68 from David Nind <david@davidnind.com> --- Created attachment 165946 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165946&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164784|0 |1 is obsolete| | --- Comment #69 from David Nind <david@davidnind.com> --- Created attachment 165947 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165947&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164785|0 |1 is obsolete| | --- Comment #70 from David Nind <david@davidnind.com> --- Created attachment 165948 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165948&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165238|0 |1 is obsolete| | --- Comment #71 from David Nind <david@davidnind.com> --- Created attachment 165949 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165949&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165239|0 |1 is obsolete| | --- Comment #72 from David Nind <david@davidnind.com> --- Created attachment 165950 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165950&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165939|0 |1 is obsolete| | --- Comment #73 from David Nind <david@davidnind.com> --- Created attachment 165951 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165951&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #74 from David Nind <david@davidnind.com> --- Thanks for fixing Aleisha! This looks great, and things worked as set out in the test plan. Some things I noticed and some suggestions (but not showstoppers for me): 1. Background for search results - I think this needs the white background div. 2. Step 13 - each notice was on a separate page, I didn't notice any horizontal lines. 3. Search filters: maybe this should also have a clear button or link beside the search button. 4. Search results display after printing selected notices. If you select multiple notices and click "Print selected notices", after you have saved the PDF and returned to the notices management screen, items are still selected, the print selected notices button is still selected, and the status stays as pending. Once you do another search or refresh the page, things display as expected. Is there a way to refresh the page once the selected notices are printed? Testing notes (using KTD): 1. I added an email address to the patron(s) I generated the notices for. 2. I updated the patron messaging preferences for the patron(s) I generated the notices for (I enabled item check-in and item checkout). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #75 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166020 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166020&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #76 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Still looking here.. must admit I'm a little disappointed to find it all coded in a style we've long since moved away from even though it's a very recent project in the grand scheme. I'm worried about performance.. that table fills up with notice quickly and we're not paging or using API's. Also, we now have non-template driven notices and those cause a spectacular error on attempting to print. It looks like you're generating the notice from scratch at print time rather than using the notice that exists.. that also feels odd.. it could lead to viewing the preview and then printing something entirely different to what you just previewed. Anyway.. I'll come back to this asap once I've dug a little further. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #77 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Martin Renvoize from comment #76)
Still looking here.. must admit I'm a little disappointed to find it all coded in a style we've long since moved away from even though it's a very recent project in the grand scheme.
It was an oversight, I started this development over a year ago but I know that standard has been in place for a while so my apologies. The API and datatables stuff has moved on quite a lot since we first started using it and it isn't documented well in the wiki, so unfortunately sometimes I do need to make mistakes and be corrected. I really appreciate any specific comments or feedback I can implement here, or links to the wiki which explains the standards for these things. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #78 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I'm a little worried about data privacy here I'm afraid.. I think I would expect to see use of Koha::Patrons->search_limited to limit results to patrons the logged-in user has the right to see. I'd be interested to get some feedback on that from a wider audience -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Nick Clemens (kidclamp) <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #79 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Our team looked here as well. I think the privacy concern is the hard block here - if search_limited was implemented here (similar to Koha::ArticleRequests::search_limited) to limit the messages to patrons who the user can view this could move ahead. Martin's comment about non-templated notices should be addressed as well. We agree too that we need to improve the documentation and guidelines for datatables/searching/API interactions and will add that to the next dev meeting agenda -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #80 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 166178 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166178&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #81 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Thanks for the comments, I've attached a new patch implementing Koha::Notice::Messages->search_limited. I'm not sure what you mean by non-templated notices - are you able to give me an example of this please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165946|0 |1 is obsolete| | --- Comment #82 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166335 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166335&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165947|0 |1 is obsolete| | --- Comment #83 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166336 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166336&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165948|0 |1 is obsolete| | --- Comment #84 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166337 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166337&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165949|0 |1 is obsolete| | --- Comment #85 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166338 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166338&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165950|0 |1 is obsolete| | --- Comment #86 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166339 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166339&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #165951|0 |1 is obsolete| | --- Comment #87 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166340 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166340&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166020|0 |1 is obsolete| | --- Comment #88 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166341 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166341&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166178|0 |1 is obsolete| | --- Comment #89 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166342&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #90 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166343 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166343&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #91 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166344 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166344&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #92 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166345 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166345&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@ptfs-europe |y.org |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |35285 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35285 [Bug 35285] Centralise notice content wrapping for HTML output -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #93 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I've added some follow-ups.. 1) Tidy the new unit test for search_limited 2) Add a relation (Still need to add a unit test for this) for 'template' from the Koha::Notice::Message class 3) To safely degrade rather than throw a nasty 500 error to screen when a notice doesn't have a corresponding template (Try the new 'Add message - email' functionality from the patron details page to see the 500) Still a little more to do here and I will continue tomorrow (It's 8pm here already). We need that unit test adding for the new relation I introduce.. but I also want to investigate how the styling works together with a mix of HTML and non-HTML notices.. also interested in seeing how SlipCSS works with this as I'm surprised to now see it using the circ/print-slip template.. I thought that was very much intended for slip printers where as I thought this particular feature was more about printing notices to a Letter/A4 size printer.. especially 'email' notices.. does it also work with other message transport type notices? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #94 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Maybe look into batch/print-notices.tt template instead of circ/print-slip.tt here.. though I still don't understand how the new CSS per template can possibly work here the way this is written. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |34030 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34030 [Bug 34030] Print slips in a batch from the preservation module -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #95 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to Martin Renvoize from comment #94)
Maybe look into batch/print-notices.tt template instead of circ/print-slip.tt here.. though I still don't understand how the new CSS per template can possibly work here the way this is written.
OK.. Whilst I think batch/print-notices.tt is better suited here, I do see that the localised CSS stuff is accounted for in circ/print-slip.tt and SlipCSS is seldom used in my experience. For now, I think this is OK as is but I would like to tidy up in the future as part of bug 36809 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |36809 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36809 [Bug 36809] DRY out notice and slip printing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #96 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Now I'm asking if the choice of columns/fields displayed and their order was a deliberate choice on the Notice management page.. I'd expect them to align with those displayed in the single patron display table.. especially the feedback for send failures etc. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166335|0 |1 is obsolete| | --- Comment #97 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166362&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166336|0 |1 is obsolete| | --- Comment #98 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166363&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166337|0 |1 is obsolete| | --- Comment #99 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166364 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166364&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166338|0 |1 is obsolete| | --- Comment #100 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166365 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166365&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166339|0 |1 is obsolete| | --- Comment #101 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166366 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166366&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166340|0 |1 is obsolete| | --- Comment #102 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166367 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166367&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166341|0 |1 is obsolete| | --- Comment #103 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166368 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166368&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166342|0 |1 is obsolete| | --- Comment #104 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166369 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166369&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166343|0 |1 is obsolete| | --- Comment #105 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166370 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166370&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166344|0 |1 is obsolete| | --- Comment #106 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166371 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166371&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166345|0 |1 is obsolete| | --- Comment #107 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166372 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166372&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #108 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 166373 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166373&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #109 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I've burnt through too much time here already but still don't feel this is quite ready and it's too close to hard feature freeze for this cycle in my opinion. # Notices management page * I don't understand why we start with a patron search up front and centre.. we already have a powerful patron search and replicating that code here seems to detract from the main purpose of the tool which is to display a list of notices filtered by things other than patron. * Once a notice search is performed, I think the table column order should match that from the synonymous page in the patron record. # Patron notices page # Both * Should print really appear for all transport types and message statuses? * Should print really print an email notice using the email template, especially when there might be a print template designed specifically for print? * Should we really be using the 'Slip' printing code rather than 'Notice' printing here? * Should the permissions not reflect that they expose access to printing functionality rather than view functionality? * I'm not sure that calling the print dialog should set the notice to 'sent'.. you can easily cancel before the print actually happens and so the updated status is a misrepresentation. With all those open questions and ongoing work elsewhere to try and clean up the notices and slips code I feel this still needs more work. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Bug 33260 depends on bug 35285, which changed state. Bug 35285 Summary: Centralise notice content wrapping for HTML output https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35285 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Sylvain Def. <s.deflache@ville-caluire.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |s.deflache@ville-caluire.fr --- Comment #110 from Sylvain Def. <s.deflache@ville-caluire.fr> --- CONFLICT (content): Merge conflict in t/db_dependent/Letters.t error: Failed to merge in the changes. Patch failed at 0001 Bug 33260: Add a patron getter method to Koha::Notice::Message -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Sylvain Def. <s.deflache@ville-caluire.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166362|0 |1 is obsolete| | --- Comment #111 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167909&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166363|0 |1 is obsolete| | --- Comment #112 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167910 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167910&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166364|0 |1 is obsolete| | --- Comment #113 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167911 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167911&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166365|0 |1 is obsolete| | --- Comment #114 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167912 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167912&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166366|0 |1 is obsolete| | --- Comment #115 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167913 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167913&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166367|0 |1 is obsolete| | --- Comment #116 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167914 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167914&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166368|0 |1 is obsolete| | --- Comment #117 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167915 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167915&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166369|0 |1 is obsolete| | --- Comment #118 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167916 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167916&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166370|0 |1 is obsolete| | --- Comment #119 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167917 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167917&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166371|0 |1 is obsolete| | --- Comment #120 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167918 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167918&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166372|0 |1 is obsolete| | --- Comment #121 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167919&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #166373|0 |1 is obsolete| | --- Comment #122 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167920 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167920&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|martin.renvoize@ptfs-europe | |.com | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Bug 33260 depends on bug 33478, which changed state. Bug 33478 Summary: Customise the format of notices when they are printed https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33478 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #123 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172247 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172247&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #124 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172248 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172248&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #125 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172303&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. WIP: The resend appears to be broken at the moment in both locations.. for some reason the 'form' element is dropped at the browser so the button does not appear. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #126 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Still working here.. I'm thinking the individual print may be more consistent to just have available from the modal display as we do in a few other places and that, to me, makes it clearer we're printing whats displayed as apposed to using the print notice (I'd love to see a 'convert to print' at a later date to handle adding address details etc to such notices) I need to work out why resend isn't working as expected.. I think that's a regression that predates this patchset somewhere however. We're much closer again now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172303|0 |1 is obsolete| | --- Comment #127 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172307 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172307&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167909|0 |1 is obsolete| | --- Comment #128 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172308 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172308&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167910|0 |1 is obsolete| | --- Comment #129 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172309 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172309&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167911|0 |1 is obsolete| | --- Comment #130 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172310&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167912|0 |1 is obsolete| | --- Comment #131 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172311 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172311&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167913|0 |1 is obsolete| | --- Comment #132 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172312 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172312&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167914|0 |1 is obsolete| | --- Comment #133 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172313 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172313&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167915|0 |1 is obsolete| | --- Comment #134 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172314 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172314&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167916|0 |1 is obsolete| | --- Comment #135 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172315 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172315&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167917|0 |1 is obsolete| | --- Comment #136 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172316 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172316&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167918|0 |1 is obsolete| | --- Comment #137 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172317 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172317&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167919|0 |1 is obsolete| | --- Comment #138 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172318 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172318&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167920|0 |1 is obsolete| | --- Comment #139 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172319&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172247|0 |1 is obsolete| | --- Comment #140 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172320 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172320&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172248|0 |1 is obsolete| | --- Comment #141 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172321 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172321&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172307|0 |1 is obsolete| | --- Comment #142 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172322 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172322&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #143 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- OK.. I think I've handled all the issues I was worried about bar one.. I still think setting the status to 'sent' doesn't feel right.. I'd rather not set that and allow printing as it's own distinct action. It might be nice to have a 'printed' record somewhere, but I think it's misleading to set an SMS or email to 'sent' when it's in fact failed to send and has instead been printed or printed as an extra action after already having been sent... maybe adding to the delivery note could help there as an alternative. Finally.. I'm wondering if dropping the 'Actions' column and having the print button inside the preview modal would be cleaner given we already have the option to 'Resend' embedded inside that.. if not maybe we could have both Print and Resent as options in the Actions column. Anywho.. I'll continue here tomorrow. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #144 from AspenCat Team <aspencatteam@clicweb.org> --- The idea of marking things sent was to have a way to distinguish what had been printed and what had not. So duplicate notices are not printed and delivered. If there is a better way of noting that printing has taken place, that doesn't mislead as "sent" that would cover the functionality that is needed. - Bob -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=7638 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #145 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Thanks Martin, Nick and Bob! If I can be of any help let me know. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #146 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- (In reply to Martin Renvoize (ashimema) from comment #143)
I still think setting the status to 'sent' doesn't feel right.. I'd rather not set that and allow printing as it's own distinct action. It might be nice to have a 'printed' record somewhere, but I think it's misleading to set an SMS or email to 'sent' when it's in fact failed to send and has instead been printed or printed as an extra action after already having been sent... maybe adding to the delivery note could help there as an alternative.
I think 'sent' can be the low bar here, making it optional would be nice, but like Bob said, having a way to know what was printed is good. Marking print as 'sent' mirrors the gather print notices, and allows this tool as a drop in replacement, staff accessible, for that cron. I think a followup bug for adding 'printed' to the status enum would be excellent -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #147 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Thanks for the replies everyone. I'm sold in the marking as sent, that makes sense, especially when a notice is coming from 'pending' and is a 'print' type notice in the first place. The query comes from those notices that appear in these two pages that are already in another state and especially those that are not 'print' type. Makeing them sent when they were pending will prevent emails from going out for example.. though I suppose it does make sense if they're in a failure state and you want to use print as a fallback. Anyway, I'm happy to accept 'sent' for all. I do have another couple of questions however. In the bulk select and print process, each notice is printed without any additional spacing between, all on one page one after the other. Should we not add page breaks between notices so you have a notice per page (gather_print_notices appears to have lost this page breaking functionality somewhere along the line :( ) Do we also need to consider including headers here with address details etc. For print type notices we usually include physical address details right in the notice, but when printing an email type notice you currently won't get any addressee detail.. for a bulk print this would get confusing quickly I think. (This could be done in a follow-up bug perhaps.. or we could limit to print type notices for the print functionality at first?) The thing I'm finding hard to fully understand here is the mix of notice transport types all in this one print option. If the transport type was 'print' it makes a fair bit of sense because you usually have address details as part of the notice itself.. if it was an email then you won't get any addressee details at all in most notices with this print option. I can see it being nice to individually print a copy of an email notice upon request or when email has failed. Again, adding this header support could perhaps be a follow-up bug a this stage. Finally, I've been trying to dry out our printing code, but this itbeoduces yet another printslip controller that's almost a copy paste of the 6+ existing scripts.. why not use members/printnotice.pl which I was trying to keep as a simple single place for printing slips so we stop adding new functionality and then forgetting to replicated I. The 6+ clones of code? I'll look at doing that here to save me the job of later removing that scriot again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #148 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Thanks Martin for your questions! (In reply to Martin Renvoize (ashimema) from comment #147)
I do have another couple of questions however.
In the bulk select and print process, each notice is printed without any additional spacing between, all on one page one after the other.
Should we not add page breaks between notices so you have a notice per page (gather_print_notices appears to have lost this page breaking functionality somewhere along the line :( )
That would be great. I remember finding it hard to make that work but I can't remember why - please feel free to give it a go!
Do we also need to consider including headers here with address details etc. For print type notices we usually include physical address details right in the notice, but when printing an email type notice you currently won't get any addressee detail.. for a bulk print this would get confusing quickly I think. (This could be done in a follow-up bug perhaps.. or we could limit to print type notices for the print functionality at first?)
Perhaps for email type notices we could include something like the patron-title.inc at the top?
The thing I'm finding hard to fully understand here is the mix of notice transport types all in this one print option. If the transport type was 'print' it makes a fair bit of sense because you usually have address details as part of the notice itself.. if it was an email then you won't get any addressee details at all in most notices with this print option. I can see it being nice to individually print a copy of an email notice upon request or when email has failed. Again, adding this header support could perhaps be a follow-up bug a this stage.
Email type notices were included here because in the case of CLiC, Koha is being used for libraries where patrons don't have email addresses but still want to generate notices that Koha defaults to email for.
Finally, I've been trying to dry out our printing code, but this itbeoduces yet another printslip controller that's almost a copy paste of the 6+ existing scripts.. why not use members/printnotice.pl which I was trying to keep as a simple single place for printing slips so we stop adding new functionality and then forgetting to replicated I. The 6+ clones of code? I'll look at doing that here to save me the job of later removing that scriot again.
I can't remember why I did this - maybe to allow for printing multiple at once, or to include updating the status of the notice, without breaking existing behaviour. Really happy for you to squash the scripts. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172308|0 |1 is obsolete| | --- Comment #149 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172342&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172309|0 |1 is obsolete| | --- Comment #150 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172343 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172343&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172310|0 |1 is obsolete| | --- Comment #151 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172344 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172344&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172311|0 |1 is obsolete| | --- Comment #152 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172345 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172345&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172312|0 |1 is obsolete| | --- Comment #153 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172346 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172346&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172313|0 |1 is obsolete| | --- Comment #154 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172347 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172347&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172314|0 |1 is obsolete| | --- Comment #155 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172348 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172348&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172315|0 |1 is obsolete| | --- Comment #156 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172349 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172349&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172316|0 |1 is obsolete| | --- Comment #157 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172350 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172350&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172317|0 |1 is obsolete| | --- Comment #158 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172351 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172351&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172318|0 |1 is obsolete| | --- Comment #159 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172352 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172352&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172319|0 |1 is obsolete| | --- Comment #160 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172353 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172353&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172320|0 |1 is obsolete| | --- Comment #161 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172354 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172354&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172321|0 |1 is obsolete| | --- Comment #162 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172355 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172355&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172322|0 |1 is obsolete| | --- Comment #163 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172356 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172356&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #164 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172357 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172357&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #165 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172358 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172358&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #166 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172359 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172359&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|martin.renvoize@ptfs-europe |nick@bywatersolutions.com |.com | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |38072 CC| |martin.renvoize@ptfs-europe | |.com Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38072 [Bug 38072] Regression with modalPrint -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38078 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38078 [Bug 38078] Merge /batch/printnotice.tt and /circ/printslip.tt -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |melia@bywatersolutions.com --- Comment #167 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- *** Bug 7638 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |38089 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38089 [Bug 38089] Fix incorrect regular expression from bug 33478 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #168 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172379 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172379&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35267 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35267 [Bug 35267] Clarify CSS options for Notices -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|38078 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38078 [Bug 38078] Merge /batch/printnotice.tt and /members/print_notice.tt -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|38072 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38072 [Bug 38072] Regression with modalPrint -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@gmail.com Status|Signed Off |Failed QA --- Comment #169 from Jonathan Druart <jonathan.druart@gmail.com> --- Very quick code review and testing: 1. Koha::Notice::Message->patron + return unless $patron_rs; This is not tested 2. Koha::Notice::Message->template + return unless $template_rs; Same 3. QA script failures FAIL koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt FAIL tt_valid lines 75 FAIL koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt FAIL spelling noice ==> noise, nice, notice 4. <th class="nosort"> </th> + "aoColumnDefs": [ + { 'bSortable': false, 'aTargets': [ 'nosort' ] } + ], You should use .NoSort on the th and don't need the aoColumnDefs. 5. members/notices.pl?borrowernumber=5 Without entry we should not show the table but "There are no notices for this patron" instead. 6. "Pending" notices have their checkbox disabled, we should display a onmouseover tooltip. 7. if you print a notice that was "failed", it's then "sent" but the "delivery note" failure is still displayed on the template. Does it make sense? 8. Is it expected to print using "email" mtt, shouldn't we use the "print" template instead? 9. 2 different outputs: * Using "Print" from the actions column http://localhost:8081/cgi-bin/koha/tools/print_notice.pl?message_ids=73 Using CHECKIN, all on one line "The following items have been checked out: E Street shuffle Thank you for visiting Centerville." * Using "Print" from the modal http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=5 "Checkouts The following items have been checked out: E Street shuffle Thank you for visiting Centerville." Also the name of the pdf in the second example is "notices.pl.pdf" 10. "Resend" - Shouldn't we actually enqueue another message in order to keep track of what have been failed/sent? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172342|0 |1 is obsolete| | --- Comment #170 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175501 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175501&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172343|0 |1 is obsolete| | --- Comment #171 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175502 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175502&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172344|0 |1 is obsolete| | --- Comment #172 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175503 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175503&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172345|0 |1 is obsolete| | --- Comment #173 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175504 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175504&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172346|0 |1 is obsolete| | --- Comment #174 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175505 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175505&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172347|0 |1 is obsolete| | --- Comment #175 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175506 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175506&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172348|0 |1 is obsolete| | --- Comment #176 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175507 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175507&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172349|0 |1 is obsolete| | --- Comment #177 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175508 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175508&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172350|0 |1 is obsolete| | --- Comment #178 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175509 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175509&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172351|0 |1 is obsolete| | --- Comment #179 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175510 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175510&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172352|0 |1 is obsolete| | --- Comment #180 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175511 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175511&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172353|0 |1 is obsolete| | --- Comment #181 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175512 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175512&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172354|0 |1 is obsolete| | --- Comment #182 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175513 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175513&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172355|0 |1 is obsolete| | --- Comment #183 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175514 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175514&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172356|0 |1 is obsolete| | --- Comment #184 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175515 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175515&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172357|0 |1 is obsolete| | --- Comment #185 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175516 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175516&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172358|0 |1 is obsolete| | --- Comment #186 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175517 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175517&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172359|0 |1 is obsolete| | --- Comment #187 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175518 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175518&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172379|0 |1 is obsolete| | --- Comment #188 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175519 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175519&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #189 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175520 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175520&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #190 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175521 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175521&action=edit Bug 33260: (follow-up) More comprehensively test template accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #191 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175522 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175522&action=edit Bug 33260: Fix typo noice -> notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #192 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175523 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175523&action=edit Bug 33260: Fix TT syntax failure -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #193 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175524&action=edit Bug 33260: Replace nosort with NoSort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #194 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175525 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175525&action=edit Bug 33260: Add hint to disabled select checkbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #195 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175530 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175530&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #196 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #169)
Very quick code review and testing: 1. Koha::Notice::Message->patron + return unless $patron_rs; This is not tested
Fixed in yet another follow-up
2. Koha::Notice::Message->template + return unless $template_rs;
Also fixed in yet another follow-up
3. QA script failures FAIL koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt FAIL tt_valid lines 75 FAIL koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt FAIL spelling
noice ==> noise, nice, notice
Also fixed in a follow-up
4. <th class="nosort"> </th>
+ "aoColumnDefs": [ + { 'bSortable': false, 'aTargets': [ 'nosort' ] } + ],
You should use .NoSort on the th and don't need the aoColumnDefs.
Also fixed in a follow-up
5. members/notices.pl?borrowernumber=5 Without entry we should not show the table but "There are no notices for this patron" instead.
This is already the case
6. "Pending" notices have their checkbox disabled, we should display a onmouseover tooltip.
Fixed in a follow-up
7. if you print a notice that was "failed", it's then "sent" but the "delivery note" failure is still displayed on the template. Does it make sense?
I raise this earlier in the thread of discussion and agree but I also don't really know what the answer is... I think we aught to handle print and other transports independently.. if it's print and it's printed yes, see it to sent.. if it's anything else perhaps add 'printed' to either the status or the delivery notes
8. Is it expected to print using "email" mtt, shouldn't we use the "print" template instead?
Also raised above in discussion.. the objective I think was to allow printing existing notices already queued.. it's hard to 'convert to print' as we don't have the original objects data to hand after a message has been queued.
9. 2 different outputs: * Using "Print" from the actions column http://localhost:8081/cgi-bin/koha/tools/print_notice.pl?message_ids=73 Using CHECKIN, all on one line "The following items have been checked out: E Street shuffle Thank you for visiting Centerville." * Using "Print" from the modal http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=5 "Checkouts The following items have been checked out: E Street shuffle Thank you for visiting Centerville."
I asked about this above.. they use different printing methods.. the modal preview applies CSS and then you print the modal content.. the print from the actions hits a print controller on the server to load a whole new page.
Also the name of the pdf in the second example is "notices.pl.pdf"
I'd missed this
10. "Resend" - Shouldn't we actually enqueue another message in order to keep track of what have been failed/sent?
Resend predates all this work.. I don't know the answer but I think that should be dealt with in a distinct bug.. personally I think this should have been two bugs at least already.. one for display and a second for print handling.. the recent additions to notices and template handling with CSS and things have really complicated and confused matters for end users in my opinion and I'm just trying to work through and clarify those in the bug tree beyond this bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|35267 | Depends on| |35267 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35267 [Bug 35267] Clarify CSS options for Notices -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175501|0 |1 is obsolete| | --- Comment #197 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175537 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175537&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175502|0 |1 is obsolete| | --- Comment #198 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175538 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175538&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175503|0 |1 is obsolete| | --- Comment #199 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175539 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175539&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175504|0 |1 is obsolete| | --- Comment #200 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175540 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175540&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175505|0 |1 is obsolete| | --- Comment #201 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175541 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175541&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175506|0 |1 is obsolete| | --- Comment #202 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175542 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175542&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175507|0 |1 is obsolete| | --- Comment #203 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175543 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175543&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175508|0 |1 is obsolete| | --- Comment #204 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175544 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175544&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175509|0 |1 is obsolete| | --- Comment #205 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175545 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175545&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175510|0 |1 is obsolete| | --- Comment #206 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175546 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175546&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175511|0 |1 is obsolete| | --- Comment #207 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175547 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175547&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175512|0 |1 is obsolete| | --- Comment #208 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175548 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175548&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175513|0 |1 is obsolete| | --- Comment #209 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175549 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175549&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175514|0 |1 is obsolete| | --- Comment #210 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175550 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175550&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175515|0 |1 is obsolete| | --- Comment #211 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175551 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175551&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175516|0 |1 is obsolete| | --- Comment #212 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175552 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175552&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175517|0 |1 is obsolete| | --- Comment #213 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175553 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175553&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175518|0 |1 is obsolete| | --- Comment #214 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175554 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175554&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175519|0 |1 is obsolete| | --- Comment #215 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175555 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175555&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175520|0 |1 is obsolete| | --- Comment #216 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175556 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175556&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175521|0 |1 is obsolete| | --- Comment #217 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175557 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175557&action=edit Bug 33260: (follow-up) More comprehensively test template accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175522|0 |1 is obsolete| | --- Comment #218 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175558 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175558&action=edit Bug 33260: Fix typo noice -> notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175523|0 |1 is obsolete| | --- Comment #219 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175559 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175559&action=edit Bug 33260: Fix TT syntax failure -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175524|0 |1 is obsolete| | --- Comment #220 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175560 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175560&action=edit Bug 33260: Replace nosort with NoSort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175525|0 |1 is obsolete| | --- Comment #221 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175561 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175561&action=edit Bug 33260: Add hint to disabled select checkbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175530|0 |1 is obsolete| | --- Comment #222 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175562 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175562&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #223 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175563 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175563&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #224 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Re-order bugs so we aren't holding up an important CSS preferences clarification bug and in the hopes that gets this one moving again too.. it should make some of the testing of style output clearer in this bug having the other bug apply first instead of second. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175537|0 |1 is obsolete| | --- Comment #225 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175730&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175538|0 |1 is obsolete| | --- Comment #226 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175731&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175539|0 |1 is obsolete| | --- Comment #227 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175732&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175540|0 |1 is obsolete| | --- Comment #228 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175733&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175541|0 |1 is obsolete| | --- Comment #229 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175734&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175542|0 |1 is obsolete| | --- Comment #230 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175735&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175543|0 |1 is obsolete| | --- Comment #231 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175736&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175544|0 |1 is obsolete| | --- Comment #232 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175737&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175545|0 |1 is obsolete| | --- Comment #233 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175738&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175546|0 |1 is obsolete| | --- Comment #234 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175739&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175547|0 |1 is obsolete| | --- Comment #235 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175740&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175548|0 |1 is obsolete| | --- Comment #236 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175741 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175741&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175549|0 |1 is obsolete| | --- Comment #237 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175742&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175550|0 |1 is obsolete| | --- Comment #238 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175743&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175551|0 |1 is obsolete| | --- Comment #239 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175744&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175552|0 |1 is obsolete| | --- Comment #240 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175745&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175553|0 |1 is obsolete| | --- Comment #241 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175746&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175554|0 |1 is obsolete| | --- Comment #242 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175747 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175747&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175555|0 |1 is obsolete| | --- Comment #243 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175748&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175556|0 |1 is obsolete| | --- Comment #244 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175749&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175557|0 |1 is obsolete| | --- Comment #245 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175750&action=edit Bug 33260: (follow-up) More comprehensively test template accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175558|0 |1 is obsolete| | --- Comment #246 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175751&action=edit Bug 33260: Fix typo noice -> notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175559|0 |1 is obsolete| | --- Comment #247 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175752&action=edit Bug 33260: Fix TT syntax failure -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175560|0 |1 is obsolete| | --- Comment #248 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175753 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175753&action=edit Bug 33260: Replace nosort with NoSort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175561|0 |1 is obsolete| | --- Comment #249 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175754 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175754&action=edit Bug 33260: Add hint to disabled select checkbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175562|0 |1 is obsolete| | --- Comment #250 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175755 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175755&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175563|0 |1 is obsolete| | --- Comment #251 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 175756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175756&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|aleisha@catalyst.net.nz |martin.renvoize@ptfs-europe | |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175730|0 |1 is obsolete| | --- Comment #252 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178733&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175731|0 |1 is obsolete| | --- Comment #253 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178734&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175732|0 |1 is obsolete| | --- Comment #254 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178735&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175733|0 |1 is obsolete| | --- Comment #255 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178736&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175734|0 |1 is obsolete| | --- Comment #256 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178737&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175735|0 |1 is obsolete| | --- Comment #257 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178738&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175736|0 |1 is obsolete| | --- Comment #258 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178739&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175737|0 |1 is obsolete| | --- Comment #259 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178740&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175738|0 |1 is obsolete| | --- Comment #260 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178741 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178741&action=edit Bug 33260: Tidy unit test Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175739|0 |1 is obsolete| | --- Comment #261 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178742&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175740|0 |1 is obsolete| | --- Comment #262 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178743&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175741|0 |1 is obsolete| | --- Comment #263 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178744&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175742|0 |1 is obsolete| | --- Comment #264 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178745&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175743|0 |1 is obsolete| | --- Comment #265 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178746&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175744|0 |1 is obsolete| | --- Comment #266 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178747 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178747&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175745|0 |1 is obsolete| | --- Comment #267 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178748&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175746|0 |1 is obsolete| | --- Comment #268 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178749&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175747|0 |1 is obsolete| | --- Comment #269 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178750&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175748|0 |1 is obsolete| | --- Comment #270 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178751&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175749|0 |1 is obsolete| | --- Comment #271 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178752&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175750|0 |1 is obsolete| | --- Comment #272 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178753 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178753&action=edit Bug 33260: (follow-up) More comprehensively test template accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175751|0 |1 is obsolete| | --- Comment #273 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178754 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178754&action=edit Bug 33260: Fix typo noice -> notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175752|0 |1 is obsolete| | --- Comment #274 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178755 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178755&action=edit Bug 33260: Fix TT syntax failure -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175753|0 |1 is obsolete| | --- Comment #275 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178756&action=edit Bug 33260: Replace nosort with NoSort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175754|0 |1 is obsolete| | --- Comment #276 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178757 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178757&action=edit Bug 33260: Add hint to disabled select checkbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175755|0 |1 is obsolete| | --- Comment #277 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178758 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178758&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175756|0 |1 is obsolete| | --- Comment #278 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 178759 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178759&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #279 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Just another rebase to keep it applying -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Hackfest -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Michael Adamyk <michael.adamyk@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michael.adamyk@bywatersolut | |ions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Bug 33260 depends on bug 38089, which changed state. Bug 38089 Summary: Fix incorrect regular expression from bug 33478 and move styles to head https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38089 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blawlor@clamsnet.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Bug 33260 depends on bug 30287, which changed state. Bug 30287 Summary: Notices using HTML render differently in notices.pl https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30287 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to oldstable |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marion.durand@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply --- Comment #280 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Removing from the QA queue.. patch doesn't apply and it's a non-trivial rebase as this stage.. lets wait for some of the other bugs to get through before attempting to come back to this.. it's a shame.. so much work done and time gone. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|Medium patch |Large patch Comma delimited| |Colorado Library Consortium list of Sponsors| | Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178733|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178734|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178735|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178736|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178737|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178738|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178739|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178740|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178741|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178742|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178743|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178744|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178745|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178746|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178747|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178748|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178749|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178750|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178751|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178752|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178753|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178754|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178755|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178756|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178757|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178758|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178759|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #281 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193220 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193220&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #282 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193221 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193221&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #283 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193222 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193222&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #284 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193223 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193223&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #285 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193224 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193224&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #286 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193225 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193225&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #287 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193226 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193226&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #288 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193227 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193227&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #289 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193228 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193228&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #290 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193229 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193229&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #291 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193230 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193230&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #292 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193231 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193231&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Patch from commit ffb0842 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #293 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193232 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193232&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #294 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193233 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193233&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #295 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193234 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193234&action=edit Bug 33260: (follow-up) Add correct page title to print Patch from commit 894cb99 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #296 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193235 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193235&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #297 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193236 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193236&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #298 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193237 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193237&action=edit Bug 33260: (follow-up) Correct call to 'style' Patch from commit c3abb9e -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #299 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193238 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193238&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Patch from commit 6f5be67 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #300 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193239 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193239&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Patch from commit e5a0e17 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #301 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193240 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193240&action=edit Bug 33260: Fix typo noice -> notice Patch from commit 3dbea3b -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #302 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193241 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193241&action=edit Bug 33260: Fix TT syntax failure Patch from commit 7bd4805 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #303 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193242&action=edit Bug 33260: Replace nosort with NoSort Patch from commit b6106d5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #304 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193243 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193243&action=edit Bug 33260: Add hint to disabled select checkbox Patch from commit 27882ea -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #305 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193244 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193244&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Patch from commit 2f59624 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #306 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193245 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193245&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #307 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193246 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193246&action=edit Bug 38072: Fix regression in modal_printer This patch updates the JS for the modal printer to make it more reliable. I found that in recent versions of chrome the print dialog failed to open and instead you were just faced with a flash of white before the new tab autoclosed and no print takes place. Test plan 1) Enable cash registers and point of sale preferences 2) Add a debit type and mark it as 'Can be sold' 3) Add a cash register 4) Use 'Point of sale' to sell one of the above item for cash against the register you just created. 5) Navigate to the register and 'cashup' 6) Click the 'summary' link to display a modal 7) User the 'Print' option in the modal and confirm you face a print dialog and can print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #308 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- I rebased.. but I honestly have no idea if any of it still works.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Emmanuel Bétemps <e.betemps@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |e.betemps@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193220|0 |1 is obsolete| | Attachment #193221|0 |1 is obsolete| | Attachment #193222|0 |1 is obsolete| | Attachment #193223|0 |1 is obsolete| | Attachment #193224|0 |1 is obsolete| | Attachment #193225|0 |1 is obsolete| | Attachment #193226|0 |1 is obsolete| | Attachment #193227|0 |1 is obsolete| | Attachment #193228|0 |1 is obsolete| | Attachment #193229|0 |1 is obsolete| | Attachment #193230|0 |1 is obsolete| | Attachment #193231|0 |1 is obsolete| | Attachment #193232|0 |1 is obsolete| | Attachment #193233|0 |1 is obsolete| | Attachment #193234|0 |1 is obsolete| | Attachment #193235|0 |1 is obsolete| | Attachment #193236|0 |1 is obsolete| | Attachment #193237|0 |1 is obsolete| | Attachment #193238|0 |1 is obsolete| | Attachment #193239|0 |1 is obsolete| | Attachment #193240|0 |1 is obsolete| | Attachment #193241|0 |1 is obsolete| | Attachment #193242|0 |1 is obsolete| | Attachment #193243|0 |1 is obsolete| | Attachment #193244|0 |1 is obsolete| | Attachment #193245|0 |1 is obsolete| | Attachment #193246|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #309 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196240 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196240&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #310 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196241 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196241&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #311 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196242&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #312 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196243 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196243&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #313 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196244 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196244&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #314 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196245 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196245&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #315 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196246 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196246&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #316 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196247 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196247&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #317 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196248 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196248&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #318 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196249 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196249&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #319 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196250 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196250&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #320 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196251 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196251&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Patch from commit 2466687 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #321 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196252 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196252&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #322 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196253 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196253&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #323 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196254 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196254&action=edit Bug 33260: (follow-up) Add correct page title to print Patch from commit fe1b6c5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #324 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196255 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196255&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #325 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196256 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196256&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #326 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196257 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196257&action=edit Bug 33260: (follow-up) Correct call to 'style' Patch from commit 705c4e3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #327 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196258 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196258&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Patch from commit fe0e683 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #328 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196259 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196259&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Patch from commit 85f7008 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #329 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196260 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196260&action=edit Bug 33260: Fix typo noice -> notice Patch from commit 24ce7b0 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #330 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196261 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196261&action=edit Bug 33260: Fix TT syntax failure Patch from commit d7c3194 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #331 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196262 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196262&action=edit Bug 33260: Replace nosort with NoSort Patch from commit a937d76 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #332 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196263 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196263&action=edit Bug 33260: Add hint to disabled select checkbox Patch from commit dc87e0f -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #333 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196264 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196264&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Patch from commit 8e4563b -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #334 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196265 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196265&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #335 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196266 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196266&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Patch from commit 6e481c9 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #336 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 196267 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196267&action=edit Bug 38072: Fix regression in modal_printer This patch updates the JS for the modal printer to make it more reliable. I found that in recent versions of chrome the print dialog failed to open and instead you were just faced with a flash of white before the new tab autoclosed and no print takes place. Test plan 1) Enable cash registers and point of sale preferences 2) Add a debit type and mark it as 'Can be sold' 3) Add a cash register 4) Use 'Point of sale' to sell one of the above item for cash against the register you just created. 5) Navigate to the register and 'cashup' 6) Click the 'summary' link to display a modal 7) User the 'Print' option in the modal and confirm you face a print dialog and can print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #337 from Marion Durand <marion.durand@biblibre.com> --- Testing notes : Step 6 : There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. => The search filter I tested are working well but I could not find the patron search (was it removed during the life of the patch but not from the test plan ?) Also the very last patch is : Bug 38072: Fix regression in modal_printer It's not the same bug and does not seem related, is it a mistake ? Other than that, I'll be pretty happy to sign of this one once I have my answers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196267|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #338 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- (In reply to Marion Durand from comment #337)
Testing notes :
Step 6 : There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. => The search filter I tested are working well but I could not find the patron search (was it removed during the life of the patch but not from the test plan ?)
Correct, that other search was removed during the life of this bug, so that part of the test plan is outdated.
Also the very last patch is : Bug 38072: Fix regression in modal_printer It's not the same bug and does not seem related, is it a mistake ?
Oops, I've obsoleted that now. It was at the end of my branch as I was struggling to test without that bug.. but I think that's a local issue to my browser settings.
Other than that, I'll be pretty happy to sign of this one once I have my answers.
Thankyou so much for all the testing, it'll be great to see this get over the line :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|nick@bywatersolutions.com |domm@plix.at -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196240|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196241|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196242|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196243|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196244|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196245|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196246|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196247|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196248|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196249|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196250|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196251|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196252|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196253|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196254|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196255|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196256|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196257|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196258|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196259|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196260|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196261|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196262|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196263|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196264|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196265|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196266|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #339 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196403 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196403&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #340 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196404 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196404&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #341 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196405 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196405&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #342 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196406 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196406&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #343 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196407 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196407&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #344 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196408 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196408&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #345 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196409 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196409&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #346 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196410 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196410&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #347 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196411 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196411&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #348 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196412 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196412&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #349 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196413&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #350 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196414&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #351 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196415&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #352 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196416 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196416&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #353 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196417 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196417&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #354 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196418 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196418&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #355 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196419 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196419&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #356 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196420 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196420&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #357 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196421 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196421&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #358 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196422&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #359 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196423 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196423&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #360 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196424 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196424&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #361 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196425 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196425&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #362 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196426 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196426&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #363 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196427 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196427&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #364 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196428 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196428&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #365 from Marion Durand <marion.durand@biblibre.com> --- Created attachment 196429 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196429&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #366 from Marion Durand <marion.durand@biblibre.com> --- Happy to sign-off everything then :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |42212 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42212 [Bug 42212] Add a resend button to the Notices Management interface -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |42213 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42213 [Bug 42213] Add a button to clear all filter in notice management module -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #367 from Marion Durand <marion.durand@biblibre.com> --- I just tested again (to create bug report 42212 and 42213 with enhancement) and the status of the notification did not change and clicking the print button (it stays in status "pending". Martin, can you have a look ? (can it be linked to the patch that we removed ? should we add this bug a dependency to be pushed before ?) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply CC| |lisette@bywatersolutions.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #196403|0 |1 is obsolete| | Attachment #196404|0 |1 is obsolete| | Attachment #196405|0 |1 is obsolete| | Attachment #196406|0 |1 is obsolete| | Attachment #196407|0 |1 is obsolete| | Attachment #196408|0 |1 is obsolete| | Attachment #196409|0 |1 is obsolete| | Attachment #196410|0 |1 is obsolete| | Attachment #196411|0 |1 is obsolete| | Attachment #196412|0 |1 is obsolete| | Attachment #196413|0 |1 is obsolete| | Attachment #196414|0 |1 is obsolete| | Attachment #196415|0 |1 is obsolete| | Attachment #196416|0 |1 is obsolete| | Attachment #196417|0 |1 is obsolete| | Attachment #196418|0 |1 is obsolete| | Attachment #196419|0 |1 is obsolete| | Attachment #196420|0 |1 is obsolete| | Attachment #196421|0 |1 is obsolete| | Attachment #196422|0 |1 is obsolete| | Attachment #196423|0 |1 is obsolete| | Attachment #196424|0 |1 is obsolete| | Attachment #196425|0 |1 is obsolete| | Attachment #196426|0 |1 is obsolete| | Attachment #196427|0 |1 is obsolete| | Attachment #196428|0 |1 is obsolete| | Attachment #196429|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #368 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202286 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202286&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #369 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202287 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202287&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #370 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202288 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202288&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #371 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202289 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202289&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #372 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202290 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202290&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #373 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202291 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202291&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #374 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202292 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202292&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #375 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202293 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202293&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #376 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202294 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202294&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #377 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202295 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202295&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #378 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202296 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202296&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #379 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202297 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202297&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #380 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202298 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202298&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #381 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202299 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202299&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #382 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202300&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #383 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202301&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #384 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202302&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #385 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202303&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #386 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202304 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202304&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #387 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202305 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202305&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #388 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202306 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202306&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #389 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202307 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202307&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #390 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202308 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202308&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #391 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202309 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202309&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #392 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202310&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #393 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202311 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202311&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #394 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 202312 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202312&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #202286|0 |1 is obsolete| | Attachment #202287|0 |1 is obsolete| | Attachment #202288|0 |1 is obsolete| | Attachment #202289|0 |1 is obsolete| | Attachment #202290|0 |1 is obsolete| | Attachment #202291|0 |1 is obsolete| | Attachment #202292|0 |1 is obsolete| | Attachment #202293|0 |1 is obsolete| | Attachment #202294|0 |1 is obsolete| | Attachment #202295|0 |1 is obsolete| | Attachment #202296|0 |1 is obsolete| | Attachment #202297|0 |1 is obsolete| | Attachment #202298|0 |1 is obsolete| | Attachment #202299|0 |1 is obsolete| | Attachment #202300|0 |1 is obsolete| | Attachment #202301|0 |1 is obsolete| | Attachment #202302|0 |1 is obsolete| | Attachment #202303|0 |1 is obsolete| | Attachment #202304|0 |1 is obsolete| | Attachment #202305|0 |1 is obsolete| | Attachment #202306|0 |1 is obsolete| | Attachment #202307|0 |1 is obsolete| | Attachment #202308|0 |1 is obsolete| | Attachment #202309|0 |1 is obsolete| | Attachment #202310|0 |1 is obsolete| | Attachment #202311|0 |1 is obsolete| | Attachment #202312|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #395 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209050 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209050&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #396 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209051 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209051&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #397 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209052 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209052&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #398 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209053 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209053&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #399 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209054 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209054&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: kelly <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #400 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209055 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209055&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #401 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209056 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209056&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #402 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209057 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209057&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #403 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209058 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209058&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #404 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209059 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209059&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #405 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209060 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209060&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #406 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209061 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209061&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #407 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209062 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209062&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #408 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209063 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209063&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #409 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209064 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209064&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #410 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209065 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209065&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #411 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209066 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209066&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #412 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209067 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209067&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #413 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209068 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209068&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #414 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209069 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209069&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #415 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209070 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209070&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #416 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209071 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209071&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #417 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209072 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209072&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #418 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209073 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209073&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #419 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209074 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209074&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #420 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209075&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #421 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209076 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209076&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #422 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209077 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209077&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and copes with a user that cannot be found. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists and nested at-rules, and does not warn when no styles are defined for the transport type. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #423 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209078 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209078&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * Use the patron of the notice in delivery notes, __() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #424 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209079 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209079&action=edit Bug 33260: (QA follow-up) Second review fixes * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * tools/notices.pl listed every notice in the queue, and the page renders each one, so a search without filters on a busy system could not be displayed. List the most recent 1000 matches and say so when there are more. * The per-template styles in the print page were scoped with a regular expression that dropped @media blocks. Scope them in Koha::Notice::Message->scoped_template_style with the same CSS scoper as the transport styles, which now also scopes the rules of @layer and @container, splits selector lists on their top level commas only and maps html, body and :root to the notice container. * Koha::Notice::Messages->search_limited returns nothing when the logged in patron cannot be found instead of everything. * Give the notice frames a title, translate the messages of the print page, drop an unused template parameter, end userpermissions.sql with a newline. * Tests: cover the above, and the missing 'use' lines; the "no logged in user" test used a mocked user number that could exist. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Set a style such as @media print { p { color: blue; } } body { background: #eee; } on a notice template that has been used to generate a print notice, print that notice from Tools > Notices management and confirm in the page source that the rules are scoped to the notice and the @media block is intact. 3. Confirm Tools > Notices management loads without content security policy errors in the browser console. 4. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #425 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- I have rebased the patchset on current main (it no longer applied: bug 10190 changed the tools menu and permissions), carrying the existing sign-offs over, and added three QA follow-ups on top (the last three attachments), after a QA review of the whole series. The new follow-ups need sign-off. What the follow-ups fix: * Privacy: members/print_notice.pl looked messages up by id with no check, so a staff member limited to some libraries' patrons could print any patron's notice by guessing an id, and an unknown id gave a 500. It now uses search_limited, ignores unknown/unauthorised/non-numeric ids and honours NoticesManagement. * Printing no longer changes anything on a GET: marking as sent needs a POST with a CSRF token and op=cud-print, from the row, modal and bulk Print buttons alike (so the modal Print now also matches the "printing marks it as sent" banner). * Notice content in the lists and modal preview is shown in sandboxed frames, so nothing in a notice runs in the staff session. * Koha::Notice::Messages->search_limited: no longer modifies its arguments, ANDs the library restriction with the caller's library filter instead of replacing it, returns nothing if the logged in patron can't be found. * Koha::Notice::Message->scoped_style produced broken CSS (the scope landed inside declarations with more than one rule, @media content was lost); replaced with a small CSS scoper, also used for the per-template styles. * tools/notices.pl: stop after the preference redirect, inclusive "To" date, most recent 1000 results with a message when there are more. * Templates: the status filter always selected "sent", wrong default sort and visible frames on the patron tab, NoSort -> no-sort, tools page missing the Koha plugin (empty CSP nonce), print/resend controls only for staff who can use them. * members/notices.pl: resend compared the patron with an assignment, so any message id could be resent from any patron's page. * Tests: Letters.t and Message.t plans, search_limited test updated for Bug 20133 (library groups need ft_hide_patron_info) and extended, scoped_style tests; file modes, newlines, tidy, POD. Not addressed here, for follow-up bugs: HTML notice content is still printed raw in the print page (same as slips; the real fix is escaping substituted values in C4::Letters), printing sets any status to "sent" as agreed earlier in the thread, and the removal of members/printnotice.pl may deserve a release note. I tested it in KTD, including with a staff user restricted to one library group who has only the view_generated_notices permission. koha-qa passes, apart from a git_manipulation warning for tools/print_notice.pl, which an earlier patch adds and a later one moves. Setting back to Needs Signoff for the new follow-ups. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209050|0 |1 is obsolete| | Attachment #209051|0 |1 is obsolete| | Attachment #209052|0 |1 is obsolete| | Attachment #209053|0 |1 is obsolete| | Attachment #209054|0 |1 is obsolete| | Attachment #209055|0 |1 is obsolete| | Attachment #209056|0 |1 is obsolete| | Attachment #209057|0 |1 is obsolete| | Attachment #209058|0 |1 is obsolete| | Attachment #209059|0 |1 is obsolete| | Attachment #209060|0 |1 is obsolete| | Attachment #209061|0 |1 is obsolete| | Attachment #209062|0 |1 is obsolete| | Attachment #209063|0 |1 is obsolete| | Attachment #209064|0 |1 is obsolete| | Attachment #209065|0 |1 is obsolete| | Attachment #209066|0 |1 is obsolete| | Attachment #209067|0 |1 is obsolete| | Attachment #209068|0 |1 is obsolete| | Attachment #209069|0 |1 is obsolete| | Attachment #209070|0 |1 is obsolete| | Attachment #209071|0 |1 is obsolete| | Attachment #209072|0 |1 is obsolete| | Attachment #209073|0 |1 is obsolete| | Attachment #209074|0 |1 is obsolete| | Attachment #209075|0 |1 is obsolete| | Attachment #209076|0 |1 is obsolete| | Attachment #209077|0 |1 is obsolete| | Attachment #209078|0 |1 is obsolete| | Attachment #209079|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #426 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209080 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209080&action=edit Bug 33260: Add view_generated_notices user permission -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #427 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209081 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209081&action=edit Bug 33260: Add NoticesManagement system preference -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #428 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209082 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209082&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #429 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209083 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209083&action=edit Bug 33260: Add Notice management tool -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #430 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209084 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209084&action=edit Bug 33260: Move patron search into main body of page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #431 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209085 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209085&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #432 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209086 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209086&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #433 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209087 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209087&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #434 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209088 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209088&action=edit Bug 33260: (QA follow-up) Add template relation -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #435 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209089 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209089&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #436 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209090 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209090&action=edit Bug 33260: (QA follow-up) Add missing page-section -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #437 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209091 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209091&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #438 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209092 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209092&action=edit Bug 33260: (follow-up) Remove patron search as primary action -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #439 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209093 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209093&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #440 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209094 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209094&action=edit Bug 33260: (follow-up) Add correct page title to print -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #441 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209095 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209095&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #442 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209096 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209096&action=edit Bug 33260: (follow-up) Alternative print button in modal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #443 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209097 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209097&action=edit Bug 33260: (follow-up) Correct call to 'style' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #444 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209098 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209098&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #445 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209099 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209099&action=edit Bug 33260: (follow-up) More comprehensively test template accessor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #446 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209100 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209100&action=edit Bug 33260: Fix typo noice -> notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #447 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209101 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209101&action=edit Bug 33260: Fix TT syntax failure -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #448 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209102 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209102&action=edit Bug 33260: Replace nosort with NoSort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #449 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209103 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209103&action=edit Bug 33260: Add hint to disabled select checkbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #450 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209104 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209104&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #451 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209105 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209105&action=edit Bug 33260: Migrate notice printing to members/print_notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #452 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209106 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209106&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #453 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209107 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209107&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #454 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209108 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209108&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #455 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209109 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209109&action=edit Bug 33260: (QA follow-up) Second review fixes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #456 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Re-attached the series with the Signed-off-by lines of everyone who has tested this over the years (Laura Escamilla, Kelly McElligott, David Nind, Brendan Lawlor, Marion Durand and Martin Renvoize) on the original patches. No code changes since the previous upload. The three QA follow-ups at the end still need sign-off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|domm@plix.at |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #457 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Setting the status of "sent" for a notice that has been printed seems misleading/confusing, especially for a notice in a transport type other than Print. How is the user to tell the difference between an email notice that was actually sent vs one that was printed? This issue is exacerbated by the fact that printing an Email notice adds a delivery note of the from: address that would have been used to email it. A delivery note recording that this notice was manually printed would be more useful. Updating the notice status as soon as a print interface is opened also seems problematic. What if the user clicks Print but then closes the print interface without actually printing the notice? In the search interface, the Library filter looks like it should be filtering based on which library a notice is from, but actually filters based on the home library of the patron. We should either: 1 - add a column to message_queue to record the from: branch (Bug 43928) and filter on that 2 - relabel the filter here to "Patron library" I'm glad to see a user without view_borrower_infos_from_any_libraries permission can only see notices for users at their own library or other libraries in a patron data library group. It would make sense to hide the Library filter in this case, since only one library will return results. On the patron notices tab, I am not given the option to print any Pending notices. I am allowed to print Sent, Failed, and Deleted notice. Is this the intent for the Notices Management page as well? I can print Pending notices from Notices Management. Claude points out: Password-reset links and 2FA codes are visible with a low permission. tools.view_generated_notices alone lets someone read any visible patron’s notice content, including STAFF_PASSWORD_RESET (which contains <<passwordreseturl>>) and 2FA_OTP_TOKEN. That could include a superlibrarian’s reset link. Before this patch, reading notice content needed borrowers.edit_borrowers. Fix: exclude those letter codes, or require edit_borrowers as well. QA tool complaint: [FAIL] tools/print_notice.pl FAIL git_manipulation The file has been added and deleted or renamed in the same patchset -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209080|0 |1 is obsolete| | Attachment #209081|0 |1 is obsolete| | Attachment #209082|0 |1 is obsolete| | Attachment #209083|0 |1 is obsolete| | Attachment #209084|0 |1 is obsolete| | Attachment #209085|0 |1 is obsolete| | Attachment #209086|0 |1 is obsolete| | Attachment #209087|0 |1 is obsolete| | Attachment #209088|0 |1 is obsolete| | Attachment #209089|0 |1 is obsolete| | Attachment #209090|0 |1 is obsolete| | Attachment #209091|0 |1 is obsolete| | Attachment #209092|0 |1 is obsolete| | Attachment #209093|0 |1 is obsolete| | Attachment #209094|0 |1 is obsolete| | Attachment #209095|0 |1 is obsolete| | Attachment #209096|0 |1 is obsolete| | Attachment #209097|0 |1 is obsolete| | Attachment #209098|0 |1 is obsolete| | Attachment #209099|0 |1 is obsolete| | Attachment #209100|0 |1 is obsolete| | Attachment #209101|0 |1 is obsolete| | Attachment #209102|0 |1 is obsolete| | Attachment #209103|0 |1 is obsolete| | Attachment #209104|0 |1 is obsolete| | Attachment #209105|0 |1 is obsolete| | Attachment #209106|0 |1 is obsolete| | Attachment #209107|0 |1 is obsolete| | Attachment #209108|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #458 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209297 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209297&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #459 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209298 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209298&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #460 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209299 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209299&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #461 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209300&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #462 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209301&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #463 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209302&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #464 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209303&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #465 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209304 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209304&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #466 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209305 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209305&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #467 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209306 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209306&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #468 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209307 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209307&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #469 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209308 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209308&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #470 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209309 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209309&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #471 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209310&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #472 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209311 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209311&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #473 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209312 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209312&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #474 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209313 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209313&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #475 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209314 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209314&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #476 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209315 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209315&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #477 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209316 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209316&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #478 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209317 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209317&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #479 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209318 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209318&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #480 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209319&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #481 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209320 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209320&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #482 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209321 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209321&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #483 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209322 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209322&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #484 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209323 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209323&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #485 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209324 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209324&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #486 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209325 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209325&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #487 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209326 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209326&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #488 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209327 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209327&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #489 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209328 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209328&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #490 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209329 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209329&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #491 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209330 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209330&action=edit Bug 33260: (QA follow-up) Ask for confirmation before marking notices as printed This changes the workflow, and can be left out without affecting the other patches: without it, notices are marked as printed when the print page is opened, as before. Marking a notice as printed as soon as the print window is opened is wrong if the librarian then cancels the print dialog. There is no browser API to tell the difference: the 'afterprint' event is fired after the print dialog is closed whether the notices were printed or not, and there is nothing to say which. The only way to know is to ask, so this adds a confirmation step to the workflow: 1. press Print (in the modal, the actions column or for the selection), 2. press Print in the print dialog of the browser, 3. confirm that the notices were printed ("Yes, mark as printed"), or print again, or close without marking. Displaying the notices no longer changes anything, so the print buttons become plain GETs. Only the explicit confirmation, a POST with a CSRF token and the 'cud-mark_printed' operation, marks the notices as printed. Libraries that print with their own script (IntranetSlipPrinterJS) are asked for the confirmation straight away. The page the librarian came from is reloaded to show the new status, and the notices that cannot be printed are listed as skipped. To test: 1. Enable NoticesManagement and NoticesLog and queue some notices. 2. In Tools > Notices management, print a sent notice. Cancel the print dialog and click "Close without marking": the notice is still 'sent'. 3. Print it again and click "Yes, mark as printed" after the print dialog: it is now 'printed', and logged (module Notices, action PRINT). 4. Open /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a notice in the browser: the notice is displayed but its status does not change. 5. Select notices that include one that cannot be printed (a pending email) and print the selection: the others are printed and the page says one was skipped. 6. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209109|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #492 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks Andrew, very helpful. I have re-attached the whole series with new follow-ups for your points: * Printed notices now get a new `printed` status (also set by gather_print_notices), the from/to delivery note is no longer shown for them, and printing is logged under Notices/PRINT when NoticesLog is on. * Both interfaces use the same rule for what can be printed; the Library filter is relabelled "Patron library" and hidden when only one library's patrons can be seen. Recording the sending library stays with bug 43928. * Notices with password reset links or security codes stay listed with their status, but their content isn't shown or printable. On marking as printed when the print window opens: there is no browser API to tell the difference between printing and cancelling (`afterprint` fires either way). The only way to get what you ask for is an extra confirmation step: press Print, press Print in the browser's print dialog, then press "Yes, mark as printed". That is a real workflow change that librarians may well dislike, so it is in a separate last patch that can be dropped without affecting the rest, which keeps the original behaviour. Opinions welcome. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209327|0 |1 is obsolete| | Attachment #209330|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #493 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209353 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209353&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #494 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209354 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209354&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #495 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209355 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209355&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #496 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209356 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209356&action=edit Bug 33260: (QA follow-up) Ask for confirmation before marking notices as printed This changes the workflow, and can be left out without affecting the other patches: without it, notices are marked as printed when the print page is opened, as before. Marking a notice as printed as soon as the print window is opened is wrong if the librarian then cancels the print dialog. There is no browser API to tell the difference: the 'afterprint' event is fired after the print dialog is closed whether the notices were printed or not, and there is nothing to say which. The only way to know is to ask, so this adds a confirmation step to the workflow: 1. press Print (in the modal, the actions column or for the selection), 2. press Print in the print dialog of the browser, 3. confirm that the notices were printed ("Yes, mark as printed"), or print again, or close without marking. Displaying the notices no longer changes anything, so the print buttons become plain GETs. Only the explicit confirmation, a POST with a CSRF token and the 'cud-mark_printed' operation, marks the notices as printed. Libraries that print with their own script (IntranetSlipPrinterJS) are asked for the confirmation straight away. The page the librarian came from is reloaded to show the new status, and the notices that cannot be printed are listed as skipped. To test: 1. Enable NoticesManagement and NoticesLog and queue some notices. 2. In Tools > Notices management, print a sent notice. Cancel the print dialog and click "Close without marking": the notice is still 'sent'. 3. Print it again and click "Yes, mark as printed" after the print dialog: it is now 'printed', and logged (module Notices, action PRINT). 4. Open /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a notice in the browser: the notice is displayed but its status does not change. 5. Select notices that include one that cannot be printed (a pending email) and print the selection: the others are printed and the page says one was skipped. 6. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209327|1 |0 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #497 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- I have also added a follow-up that takes a different approach to printing notices that were sent by email or sms: "Convert to print" (in the actions column and the modal, on the Notices management page and on the patron's Notices tab) queues a new pending print notice from a new notice, CONVERTED_TO_PRINT. It adds the patron's and the library's address and a note saying the original was sent, or could not be sent, by email or sms, before the original content, and marks the original as `converted` (a new status). We can't regenerate the notice from its original variables, as they aren't kept, so the wrapper reuses the stored content. Libraries can edit the notice in Notices and slips. The "Print" action is kept as well, for example to hand a notice to a patron who is at the library. Andrew, would you prefer this flow? If so, we could limit the direct Print to print notices. The patches are the "converted status", "Automated Schema Update" and "Convert notices to print notices" attachments at the end of the series. The patch asking for confirmation before marking as printed has been re-attached, rebased on top of them, and is still the last one so it can be dropped on its own. Aside: 'print' as a notice transport type is arguably misnamed, it means mail or snail-mail. Renaming it would be a much bigger change than this bug, so I'm just noting it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209297|0 |1 is obsolete| | Attachment #209298|0 |1 is obsolete| | Attachment #209299|0 |1 is obsolete| | Attachment #209300|0 |1 is obsolete| | Attachment #209301|0 |1 is obsolete| | Attachment #209302|0 |1 is obsolete| | Attachment #209303|0 |1 is obsolete| | Attachment #209304|0 |1 is obsolete| | Attachment #209305|0 |1 is obsolete| | Attachment #209306|0 |1 is obsolete| | Attachment #209307|0 |1 is obsolete| | Attachment #209308|0 |1 is obsolete| | Attachment #209309|0 |1 is obsolete| | Attachment #209310|0 |1 is obsolete| | Attachment #209311|0 |1 is obsolete| | Attachment #209312|0 |1 is obsolete| | Attachment #209313|0 |1 is obsolete| | Attachment #209314|0 |1 is obsolete| | Attachment #209315|0 |1 is obsolete| | Attachment #209316|0 |1 is obsolete| | Attachment #209317|0 |1 is obsolete| | Attachment #209318|0 |1 is obsolete| | Attachment #209319|0 |1 is obsolete| | Attachment #209320|0 |1 is obsolete| | Attachment #209321|0 |1 is obsolete| | Attachment #209322|0 |1 is obsolete| | Attachment #209323|0 |1 is obsolete| | Attachment #209324|0 |1 is obsolete| | Attachment #209325|0 |1 is obsolete| | Attachment #209326|0 |1 is obsolete| | Attachment #209327|0 |1 is obsolete| | Attachment #209328|0 |1 is obsolete| | Attachment #209329|0 |1 is obsolete| | Attachment #209353|0 |1 is obsolete| | Attachment #209354|0 |1 is obsolete| | Attachment #209355|0 |1 is obsolete| | Attachment #209356|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #498 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209430 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209430&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #499 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209431 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209431&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #500 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209432 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209432&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #501 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209433 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209433&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #502 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209434 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209434&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #503 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209435 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209435&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #504 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209436 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209436&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #505 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209437 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209437&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #506 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209438 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209438&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #507 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209439 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209439&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #508 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209440 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209440&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #509 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209441 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209441&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #510 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209442 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209442&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #511 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209443 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209443&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #512 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209444 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209444&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #513 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209445 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209445&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #514 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209446 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209446&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #515 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209447 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209447&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #516 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209448 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209448&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #517 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209449 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209449&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #518 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209450 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209450&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #519 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209451 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209451&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #520 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209452 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209452&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #521 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209453 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209453&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #522 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209454 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209454&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #523 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209455 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209455&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #524 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209456 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209456&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #525 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209457 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209457&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #526 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209458 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209458&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #527 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209459 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209459&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #528 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209460 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209460&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #529 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209461 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209461&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #530 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209462 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209462&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #531 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209463 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209463&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #532 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209464 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209464&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #533 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209465 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209465&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #534 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209466 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209466&action=edit Bug 33260: (QA follow-up) Ask for confirmation before marking notices as printed This changes the workflow, and can be left out without affecting the other patches: without it, notices are marked as printed when the print page is opened, as before. Marking a notice as printed as soon as the print window is opened is wrong if the librarian then cancels the print dialog. There is no browser API to tell the difference: the 'afterprint' event is fired after the print dialog is closed whether the notices were printed or not, and there is nothing to say which. The only way to know is to ask, so this adds a confirmation step to the workflow: 1. press Print (in the modal, the actions column or for the selection), 2. press Print in the print dialog of the browser, 3. confirm that the notices were printed ("Yes, mark as printed"), or print again, or close without marking. Displaying the notices no longer changes anything, so the print buttons become plain GETs. Only the explicit confirmation, a POST with a CSRF token and the 'cud-mark_printed' operation, marks the notices as printed. Libraries that print with their own script (IntranetSlipPrinterJS) are asked for the confirmation straight away. The page the librarian came from is reloaded to show the new status, and the notices that cannot be printed are listed as skipped. To test: 1. Enable NoticesManagement and NoticesLog and queue some notices. 2. In Tools > Notices management, print a sent notice. Cancel the print dialog and click "Close without marking": the notice is still 'sent'. 3. Print it again and click "Yes, mark as printed" after the print dialog: it is now 'printed', and logged (module Notices, action PRINT). 4. Open /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a notice in the browser: the notice is displayed but its status does not change. 5. Select notices that include one that cannot be printed (a pending email) and print the selection: the others are printed and the page says one was skipped. 6. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off --- Comment #535 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Rebased the full patchset onto current main (2712fc37080); previous patches obsoleted. Conflicts resolved in installer/data/mysql/mandatory/userpermissions.sql and koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt. Upstream's recent DOMPurify/shadow-DOM change to members/notices.tt is superseded by the sandboxed-iframe preview already in this series (both notice pages now use sandbox="" iframes). Re-ran t/Koha/Auth/Permissions.t, t/db_dependent/Koha/Notice/Message.t, t/db_dependent/Letters.t and t/db_dependent/Koha/Notice/Template.t: all pass. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #536 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Convert to Print dies when attempted by a user with view_borrower_infos_from_any_libraries permission: DBI Exception: DBD::mysql::st execute failed: Column 'borrowernumber' in WHERE is ambiguous at /usr/share/perl5/Exception/Class/Base.pm line 88 Otherwise your follow-ups are looking good! Noting some changes made here that really need to go in the release notes as they are not clearly suggested by the bug title/summary: - gather_print will update notices to Printed rather than Sent - staff will no longer be able to see content of PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN notices in the patron record -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This enhancement makes it |This enhancement adds a release notes|easy for the library to |Notices management tool to |view sent notices and |view the notices Koha has |filter by various search |generated (the message |parameters. |queue), filter them and | |print them. |You can also print sent | |notices, individually or in |Tools > Notices management |a batch. |lists the notices of the | |patrons the staff member is |This enhancement uses a new |allowed to see, newest |system preference |first (up to 1000 are |NoticesManagement and a new |listed). They can be |view_generated_notices user |filtered by notice type, |permission. |status, patron category, | |patron library and queue | |date (from and to, both | |inclusive). The content of | |a notice can be previewed, | |a notice can be resent, and | |notices can be printed one | |by one or in a batch with | |"Print selected notices". | |The patron's Notices tab | |offers the same actions for | |that patron's notices. | | | |It needs the new | |NoticesManagement system | |preference (disabled by | |default) and the new tools | |> view_generated_notices | |permission. | | | |Printing notices: | |* Notices that have been | |printed get a new status, | |"printed", instead of | |"sent", so a printed email | |or SMS notice can be told | |from one that was | |delivered. The | |gather_print_notices.pl | |cronjob now also marks the | |print notices it gathers as | |"printed" rather than | |"sent". Printing is logged | |when NoticesLog is enabled. | |* Browsers cannot tell | |whether a notice was | |printed or the print dialog | |was cancelled, so after the | |print window has been used, | |staff are asked to confirm | |that the notices were | |printed, and only then are | |they marked as printed. | |* Pending notices can only | |be printed if they are | |print notices, the same on | |the patron's Notices tab | |and on the Notices | |management page. Notices | |converted to print notices | |are not printed themselves, | |their print notice is. | | | |Convert to print: | |* An email or SMS notice | |that was sent, failed, or | |was deleted can be | |converted to a print | |notice, for example for a | |patron without a working | |email address. A new | |pending print notice is | |queued from the new | |CONVERTED_TO_PRINT notice | |(Tools > Notices and slips, | |which libraries can edit). | |It shows the patron's and | |the library's address and a | |note that the original was | |sent, or could not be sent, | |by email or SMS, followed | |by the original content. | |The original notice gets | |the new status "converted". | |* The direct Print action | |is kept, for example to | |hand a notice to a patron | |at the library. | | | |Privacy and security: | |* The notices a staff | |member can see, print, | |convert and resend are | |limited to those of patrons | |of the libraries whose | |patron information they can | |see (patron data library | |groups and | |IndependentBranches are | |respected). | |* The content of notices | |that contain a secret is | |not shown or printable, on | |the new page or on the | |patron's Notices tab, | |although the notices are | |still listed with their | |status: PASSWORD_RESET, | |STAFF_PASSWORD_RESET, | |OPAC_REG_VERIFY and | |2FA_OTP_TOKEN. Staff with | |this permission could | |otherwise read password | |reset links and security | |codes. | |* Notice content is shown | |in sandboxed frames. | |Printing, converting, | |resending and marking | |notices as printed are done | |with POST requests | |protected against CSRF. | | | |Upgrade notes: | |* message_queue.status has | |two new values, "printed" | |and "converted". | |* members/printnotice.pl | |and its template are | |replaced by | |members/print_notice.pl, | |which takes notice ids. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209430|0 |1 is obsolete| | Attachment #209431|0 |1 is obsolete| | Attachment #209432|0 |1 is obsolete| | Attachment #209433|0 |1 is obsolete| | Attachment #209434|0 |1 is obsolete| | Attachment #209435|0 |1 is obsolete| | Attachment #209436|0 |1 is obsolete| | Attachment #209437|0 |1 is obsolete| | Attachment #209438|0 |1 is obsolete| | Attachment #209439|0 |1 is obsolete| | Attachment #209440|0 |1 is obsolete| | Attachment #209441|0 |1 is obsolete| | Attachment #209442|0 |1 is obsolete| | Attachment #209443|0 |1 is obsolete| | Attachment #209444|0 |1 is obsolete| | Attachment #209445|0 |1 is obsolete| | Attachment #209446|0 |1 is obsolete| | Attachment #209447|0 |1 is obsolete| | Attachment #209448|0 |1 is obsolete| | Attachment #209449|0 |1 is obsolete| | Attachment #209450|0 |1 is obsolete| | Attachment #209451|0 |1 is obsolete| | Attachment #209452|0 |1 is obsolete| | Attachment #209453|0 |1 is obsolete| | Attachment #209454|0 |1 is obsolete| | Attachment #209455|0 |1 is obsolete| | Attachment #209456|0 |1 is obsolete| | Attachment #209457|0 |1 is obsolete| | Attachment #209458|0 |1 is obsolete| | Attachment #209459|0 |1 is obsolete| | Attachment #209460|0 |1 is obsolete| | Attachment #209461|0 |1 is obsolete| | Attachment #209462|0 |1 is obsolete| | Attachment #209463|0 |1 is obsolete| | Attachment #209464|0 |1 is obsolete| | Attachment #209465|0 |1 is obsolete| | Attachment #209466|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #537 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209676 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209676&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #538 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209677 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209677&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #539 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209678 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209678&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #540 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209679 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209679&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #541 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209680 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209680&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #542 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209681 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209681&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #543 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209682 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209682&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #544 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209683 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209683&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #545 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209684 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209684&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #546 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209685 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209685&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #547 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209686 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209686&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #548 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209687 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209687&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #549 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209688 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209688&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #550 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209689 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209689&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #551 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209690&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #552 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209691 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209691&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #553 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209692 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209692&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #554 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209693 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209693&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #555 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209694 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209694&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #556 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209695 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209695&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #557 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209696&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #558 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209697 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209697&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #559 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209698 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209698&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #560 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209699 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209699&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #561 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209700 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209700&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #562 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209701 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209701&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #563 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209702 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209702&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #564 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209703 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209703&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #565 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209704 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209704&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #566 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209705 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209705&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #567 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209706 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209706&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #568 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209707 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209707&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #569 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209708 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209708&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #570 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209709 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209709&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #571 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209710 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209710&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #572 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209711 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209711&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #573 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209712&action=edit Bug 33260: (QA follow-up) Fix ambiguous column when searching limited notices Converting a notice to print from the patron's Notices tab died with 'Column borrowernumber in WHERE is ambiguous' for a staff member whose notices are restricted to some libraries (for example with IndependentBranches, also with view_borrower_infos_from_any_libraries): search_limited joins the patron to restrict the notices to the libraries, and borrowernumber is a column of both tables. It only worked without a restriction because the unused join is then dropped. * search_limited now adds the name of the table to the columns of the notices that are passed without it, so callers cannot trip over the join. * The conversion on the patron's Notices tab says me.borrowernumber, which is clearer anyway. To test: 1. Apply the patches, enable NoticesManagement and IndependentBranches 2. Queue a sent email notice for a patron of your library 3. As a staff member with only the view_generated_notices and edit_borrowers permissions, go to the patron's Notices tab and click 'Convert to print' on the notice => The notice is converted. Before, the page died with the error above 4. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #574 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209713 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209713&action=edit Bug 33260: (QA follow-up) Ask for confirmation before marking notices as printed This changes the workflow, and can be left out without affecting the other patches: without it, notices are marked as printed when the print page is opened, as before. Marking a notice as printed as soon as the print window is opened is wrong if the librarian then cancels the print dialog. There is no browser API to tell the difference: the 'afterprint' event is fired after the print dialog is closed whether the notices were printed or not, and there is nothing to say which. The only way to know is to ask, so this adds a confirmation step to the workflow: 1. press Print (in the modal, the actions column or for the selection), 2. press Print in the print dialog of the browser, 3. confirm that the notices were printed ("Yes, mark as printed"), or print again, or close without marking. Displaying the notices no longer changes anything, so the print buttons become plain GETs. Only the explicit confirmation, a POST with a CSRF token and the 'cud-mark_printed' operation, marks the notices as printed. Libraries that print with their own script (IntranetSlipPrinterJS) are asked for the confirmation straight away. The page the librarian came from is reloaded to show the new status, and the notices that cannot be printed are listed as skipped. To test: 1. Enable NoticesManagement and NoticesLog and queue some notices. 2. In Tools > Notices management, print a sent notice. Cancel the print dialog and click "Close without marking": the notice is still 'sent'. 3. Print it again and click "Yes, mark as printed" after the print dialog: it is now 'printed', and logged (module Notices, action PRINT). 4. Open /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a notice in the browser: the notice is displayed but its status does not change. 5. Select notices that include one that cannot be printed (a pending email) and print the selection: the others are printed and the page says one was skipped. 6. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #575 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks Andrew, good catch on the Convert to print crash. Cause: Koha::Notice::Messages->search_limited joins the patron table to restrict the notices to the libraries the staff member can see, and borrowernumber is a column of both tables. The Convert to print action on the patron's Notices tab passed a bare borrowernumber, so for any staff member whose notices are restricted to some libraries (including a user with view_borrower_infos_from_any_libraries when IndependentBranches is enabled) the query was ambiguous. Without a restriction the unused join is dropped, which is why it only showed up for some users. Fix, in a new follow-up patch before the last one (the optional 'confirm printed' patch is still last, so it can be dropped on its own): search_limited now adds the table name to the columns of the notices that are passed without it, so callers can't trip over the join, and the patron tab uses me.borrowernumber explicitly. There are tests for it, including the view_borrower_infos_from_any_libraries with IndependentBranches case. I also made the atomic update that adds the 'printed' status skip when the status exists already, so re-running the database updates on a development database with converted notices no longer errors. The whole series is re-attached, rebased on current main, with the sign-offs carried over. The previous patches are obsolete. Thank you for the notes for the release notes: I have updated the release notes of this bug to describe the whole series as it is now, including gather_print_notices setting 'printed' rather than 'sent', the content of password reset, registration verification and 2FA notices no longer being shown or printable, Convert to print, and the new permission, preference and statuses. Setting to Signed Off for another look at the new follow-ups. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #576 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Further QA thoughts/issues: - I think we can drop the confirmation patch, since you've blocked the printing of Pending non-print notices. - Claude points out that the print_notice page doesn't scrub or sanitize the notice content at all and so could allow a script in the notice content to run. This appears to be true, but I haven't gone so far as to put a script into a notice to test. - Claude also complained that t/db_dependent/Koha/Notice/Message.t passes regardless of what IndependentBranches is set to. I confirmed that the test still passes if I switch line 772 to "mock_preference( 'IndependentBranches', 0 );" - If the CONVERTED_TO_PRINT notice is deleted, Koha gives the error "The notice could not be converted to a print notice." when one clicks Convert To Print. I suggest removing the Convert button if the notice doesn't exist. If not that, the error message should direct the user to create the notice. - When logging conversion, you're not recording a diff of the changes to the converted notice (status and updated_on change) and the log viewer displays the action in all caps rather than sentence case ("Converted"). - More conceptually/structurally, you're logging notice conversion in the Notices log, which is otherwise only used for edits to notice templates -- the system preference reads "(Don't) Log changes to notice templates." I don't know that this is a blocker, but it's uncomfortable. It would be great to have a separate log module for recording changes to notices in the message_queue, which would want to be a separate enhancement. I wouldn't mind dropping notice conversion logging from these patches with the general expectation of creating a new logging module in the future. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #577 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- (In reply to Andrew Fuerste-Henry from comment #576)
- If the CONVERTED_TO_PRINT notice is deleted, Koha gives the error "The notice could not be converted to a print notice." when one clicks Convert To Print. I suggest removing the Convert button if the notice doesn't exist. If not that, the error message should direct the user to create the notice.
Expanding on this a bit: If the CONVERTED_TO_PRINT notice contains malformed TT (like a missing [% END %]) or an incorrect variable (like [% borrower.biblio.title %]) the conversion will fail and only give the error "The notice could not be converted to a print notice." It would be helpful to tell the user there's an issue with their template and/or record the error to the plack-intranet-error.log -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209676|0 |1 is obsolete| | Attachment #209677|0 |1 is obsolete| | Attachment #209678|0 |1 is obsolete| | Attachment #209679|0 |1 is obsolete| | Attachment #209680|0 |1 is obsolete| | Attachment #209681|0 |1 is obsolete| | Attachment #209682|0 |1 is obsolete| | Attachment #209683|0 |1 is obsolete| | Attachment #209684|0 |1 is obsolete| | Attachment #209685|0 |1 is obsolete| | Attachment #209686|0 |1 is obsolete| | Attachment #209687|0 |1 is obsolete| | Attachment #209688|0 |1 is obsolete| | Attachment #209689|0 |1 is obsolete| | Attachment #209690|0 |1 is obsolete| | Attachment #209691|0 |1 is obsolete| | Attachment #209692|0 |1 is obsolete| | Attachment #209693|0 |1 is obsolete| | Attachment #209694|0 |1 is obsolete| | Attachment #209695|0 |1 is obsolete| | Attachment #209696|0 |1 is obsolete| | Attachment #209697|0 |1 is obsolete| | Attachment #209698|0 |1 is obsolete| | Attachment #209699|0 |1 is obsolete| | Attachment #209700|0 |1 is obsolete| | Attachment #209701|0 |1 is obsolete| | Attachment #209702|0 |1 is obsolete| | Attachment #209703|0 |1 is obsolete| | Attachment #209704|0 |1 is obsolete| | Attachment #209705|0 |1 is obsolete| | Attachment #209706|0 |1 is obsolete| | Attachment #209707|0 |1 is obsolete| | Attachment #209708|0 |1 is obsolete| | Attachment #209709|0 |1 is obsolete| | Attachment #209710|0 |1 is obsolete| | Attachment #209711|0 |1 is obsolete| | Attachment #209712|0 |1 is obsolete| | Attachment #209713|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #578 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209885 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209885&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #579 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209886 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209886&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #580 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209887 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209887&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #581 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209888 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209888&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #582 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209889 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209889&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #583 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209890 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209890&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #584 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209891 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209891&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #585 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209892 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209892&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #586 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209893 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209893&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #587 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209894 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209894&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #588 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209895 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209895&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #589 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209896 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209896&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #590 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209897 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209897&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #591 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209898 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209898&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #592 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209899 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209899&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #593 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209900 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209900&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #594 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209901 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209901&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #595 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209902 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209902&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #596 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209903 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209903&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #597 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209904 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209904&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #598 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209905 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209905&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #599 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209906&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #600 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209907 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209907&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #601 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209908 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209908&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #602 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209909&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #603 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209910 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209910&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #604 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209911 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209911&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #605 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209912 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209912&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #606 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209913 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209913&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #607 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209914 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209914&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #608 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209915 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209915&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #609 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209916 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209916&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #610 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209917 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209917&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #611 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209918 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209918&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #612 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209919&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #613 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209920 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209920&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #614 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209921&action=edit Bug 33260: (QA follow-up) Fix ambiguous column when searching limited notices Converting a notice to print from the patron's Notices tab died with 'Column borrowernumber in WHERE is ambiguous' for a staff member whose notices are restricted to some libraries (for example with IndependentBranches, also with view_borrower_infos_from_any_libraries): search_limited joins the patron to restrict the notices to the libraries, and borrowernumber is a column of both tables. It only worked without a restriction because the unused join is then dropped. * search_limited now adds the name of the table to the columns of the notices that are passed without it, so callers cannot trip over the join. * The conversion on the patron's Notices tab says me.borrowernumber, which is clearer anyway. To test: 1. Apply the patches, enable NoticesManagement and IndependentBranches 2. Queue a sent email notice for a patron of your library 3. As a staff member with only the view_generated_notices and edit_borrowers permissions, go to the patron's Notices tab and click 'Convert to print' on the notice => The notice is converted. Before, the page died with the error above 4. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #615 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209922&action=edit Bug 33260: (QA follow-up) Print notices in sandboxed frames The content of a notice was printed as part of the page of the staff interface, so a script in a notice (the content of notices is not always under the control of the library, it can contain what a patron entered) would run in the session of the staff member printing it. Show each notice in a frame, as the notices management page and the Notices tab of a patron do for the preview: its sandbox does not allow scripts, forms or navigating the page, it is only the same origin so the frame can be sized to its content, which is needed to print it whole. * The notice is shown by html_content, which has the stylesheets, so the scoping of the styles of the notices to the page, which a regular expression got wrong more than once, is no longer needed and is removed. The style of the template of the notice is part of html_content. * The content of a plain text notice is escaped by html_content, as what looks like markup in it was interpreted. To test: 1. Apply the patches, enable NoticesManagement 2. Create an HTML notice for a patron, with a script in its content, for example <script>alert(1)</script><p>Hello</p> and set its status to sent 3. In Tools > Notices management, or the Notices tab of the patron, print it => The notice is printed with no alert, and the browser console says that the script was blocked. Before there was an alert 4. Print a few notices together and confirm the print preview shows all of them in full, separated by page breaks 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #616 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209923 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209923&action=edit Bug 33260: (QA follow-up) Do not log printing and converting notices Printing and converting notices were logged under the Notices module, which is otherwise only used for the changes to the notice templates, as its preference says: 'Log changes to notice templates'. The log did not record the changes made to the notice either, and the action was displayed in capitals by the log viewer. Changes to the notices of the message queue need a log of their own, which is a piece of work of its own, so do not log them here. To test: 1. Apply the patches, enable NoticesManagement and NoticesLog 2. Print a notice and convert another one to print => Nothing is added to the Notices log, in Tools > Log viewer 3. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #617 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209924 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209924&action=edit Bug 33260: (QA follow-up) Make converting to print clearer when it cannot work * Do not offer to convert notices when there is no CONVERTED_TO_PRINT notice, and when asked to anyway say that the notice does not exist and where to create it, instead of the notice could not be converted. * When the CONVERTED_TO_PRINT notice has an error, such as a missing [% END %] or an unknown variable, say so, and put the error in the error log. The notice that was to be converted is not changed. * Link the two notices, in the delivery note of each, which show 'Converted to print notice 123' and 'Converted from notice 122' on the notices management page and the Notices tab of the patron. To test: 1. Apply the patches, enable NoticesManagement 2. Queue a sent email notice for a patron, and convert it to print on the patron's Notices tab => The delivery note of the original says it was converted to the print notice, and that of the print notice says it was converted from the original 3. In Tools > Notices and slips, edit the CONVERTED_TO_PRINT notice (Patrons module, print) and add [% IF 1 %] without closing it. Try to convert another notice => It says the notice has an error, which is in the plack-intranet-error.log 4. Delete the CONVERTED_TO_PRINT notice => There are no Convert to print buttons. Going to the Notices tab with ?conversion=no_template says what is missing 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #618 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 209925 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209925&action=edit Bug 33260: (follow-up) Add Cypress tests for the notices pages Cover the notices management page, the Notices tab of a patron and the print page: * The access to the page: the preference, the permission. * The filters: status, notice type, patron category, patron library and the dates, which are inclusive, alone and together, and with the search form. * What staff members who cannot see all the patrons see and can do, with IndependentBranches: only the notices of their library, which they cannot print or convert for another one, and no filter for the library. * Printing: each notice is shown in a frame that cannot run scripts, with a script and an event handler in the content that do not run, and that is shown in full; the notices that contain a secret, the pending notices that are not print notices and the converted notices are not printed; showing a notice does not change it, printing it does. * Converting to print: the print notice that is queued, the link between the two notices, the notices that can be converted, what is shown when the CONVERTED_TO_PRINT notice does not exist and when it has an error, and that the original is then not changed. The preferences and the CONVERTED_TO_PRINT notice that are changed are restored afterwards, and the patrons and staff members created are removed. To test: 1. Apply the patches 2. Run $ ktd --shell k$ yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts => SUCCESS: Tests pass! 3. Sign off :-D Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This enhancement adds a |This enhancement adds a release notes|Notices management tool to |Notices management tool to |view the notices Koha has |view the notices Koha has |generated (the message |generated (the message |queue), filter them and |queue), filter them and |print them. |print them. | | |Tools > Notices management |Tools > Notices management |lists the notices of the |lists the notices of the |patrons the staff member is |patrons the staff member is |allowed to see, newest |allowed to see, newest |first (up to 1000 are |first (up to 1000 are |listed). They can be |listed). They can be |filtered by notice type, |filtered by notice type, |status, patron category, |status, patron category, |patron library and queue |patron library and queue |date (from and to, both |date (from and to, both |inclusive). The content of |inclusive). The content of |a notice can be previewed, |a notice can be previewed, |a notice can be resent, and |a notice can be resent, and |notices can be printed one |notices can be printed one |by one or in a batch with |by one or in a batch with |"Print selected notices". |"Print selected notices". |The patron's Notices tab |The patron's Notices tab |offers the same actions for |offers the same actions for |that patron's notices. |that patron's notices. | | |It needs the new |It needs the new |NoticesManagement system |NoticesManagement system |preference (disabled by |preference (disabled by |default) and the new tools |default) and the new tools |> view_generated_notices |> view_generated_notices |permission. |permission. | | |Printing notices: |Printing notices: |* Notices that have been |* Notices that have been |printed get a new status, |printed get a new status, |"printed", instead of |"printed", instead of |"sent", so a printed email |"sent", so a printed email |or SMS notice can be told |or SMS notice can be told |from one that was |from one that was |delivered. The |delivered. The |gather_print_notices.pl |gather_print_notices.pl |cronjob now also marks the |cronjob now also marks the |print notices it gathers as |print notices it gathers as |"printed" rather than |"printed" rather than |"sent". Printing is logged |"sent". |when NoticesLog is enabled. |* Pending notices can only |* Browsers cannot tell |be printed if they are |whether a notice was |print notices, the same on |printed or the print dialog |the patron's Notices tab |was cancelled, so after the |and on the Notices |print window has been used, |management page. Notices |staff are asked to confirm |converted to print notices |that the notices were |are not printed themselves, |printed, and only then are |their print notice is. |they marked as printed. |* The notices are shown in |* Pending notices can only |the print window in frames |be printed if they are |that cannot run scripts, so |print notices, the same on |the content of a notice |the patron's Notices tab |cannot do anything in the |and on the Notices |staff interface. |management page. Notices | |converted to print notices |Convert to print: |are not printed themselves, |* An email or SMS notice |their print notice is. |that was sent, failed, or | |was deleted can be |Convert to print: |converted to a print |* An email or SMS notice |notice, for example for a |that was sent, failed, or |patron without a working |was deleted can be |email address. A new |converted to a print |pending print notice is |notice, for example for a |queued from the new |patron without a working |CONVERTED_TO_PRINT notice |email address. A new |(Tools > Notices and slips, |pending print notice is |which libraries can edit). |queued from the new |It shows the patron's and |CONVERTED_TO_PRINT notice |the library's address and a |(Tools > Notices and slips, |note that the original was |which libraries can edit). |sent, or could not be sent, |It shows the patron's and |by email or SMS, followed |the library's address and a |by the original content. |note that the original was |The original notice gets |sent, or could not be sent, |the new status "converted". |by email or SMS, followed |* The two notices are |by the original content. |linked: the delivery note |The original notice gets |of the original says |the new status "converted". |"Converted to print notice |* The direct Print action |123", and that of the print |is kept, for example to |notice says "Converted from |hand a notice to a patron |notice 122". |at the library. |* Converting is not offered | |when the CONVERTED_TO_PRINT |Privacy and security: |notice does not exist, and |* The notices a staff |when it has an error the |member can see, print, |staff member is told so and |convert and resend are |the error is in the error |limited to those of patrons |log, the notice that was to |of the libraries whose |be converted is not |patron information they can |changed. |see (patron data library |* The direct Print action |groups and |is kept, for example to |IndependentBranches are |hand a notice to a patron |respected). |at the library. |* The content of notices | |that contain a secret is |Privacy and security: |not shown or printable, on |* The notices a staff |the new page or on the |member can see, print, |patron's Notices tab, |convert and resend are |although the notices are |limited to those of patrons |still listed with their |of the libraries whose |status: PASSWORD_RESET, |patron information they can |STAFF_PASSWORD_RESET, |see (patron data library |OPAC_REG_VERIFY and |groups and |2FA_OTP_TOKEN. Staff with |IndependentBranches are |this permission could |respected). |otherwise read password |* The content of notices |reset links and security |that contain a secret is |codes. |not shown or printable, on |* Notice content is shown |the new page or on the |in sandboxed frames. |patron's Notices tab, |Printing, converting, |although the notices are |resending and marking |still listed with their |notices as printed are done |status: PASSWORD_RESET, |with POST requests |STAFF_PASSWORD_RESET, |protected against CSRF. |OPAC_REG_VERIFY and | |2FA_OTP_TOKEN. Staff with |Upgrade notes: |this permission could |* message_queue.status has |otherwise read password |two new values, "printed" |reset links and security |and "converted". |codes. |* members/printnotice.pl |* Notice content is shown, |and its template are |and printed, in sandboxed |replaced by |frames. Printing, |members/print_notice.pl, |converting, resending and |which takes notice ids. |marking notices as printed | |are done with POST requests | |protected against CSRF. | | | |Upgrade notes: | |* message_queue.status has | |two new values, "printed" | |and "converted". | |* members/printnotice.pl | |and its template are | |replaced by | |members/print_notice.pl, | |which takes notice ids. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |43950 Status|Failed QA |Signed Off --- Comment #619 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks Andrew, all of that makes sense. Going through your points: * Confirmation patch: dropped, and its attachment is obsolete. The release notes no longer mention it. * Notice content on the print page: the notices are now printed in sandboxed frames (no scripts, forms or navigation allowed), as the notices management page and the patron's Notices tab already do for the previews, so a script in a notice cannot run in the staff session. I tried it with a script and an onerror handler in a notice: nothing runs, the browser console says the script was blocked, and the notice is printed in full. Because each notice is now in its own frame, the CSS scoping code (which had already needed several fixes) is gone, and the style of the notice template is part of the notice. The content of plain text notices is now escaped too, as it was interpreted as markup. * The IndependentBranches test: you were right, it passed whatever the preference was. It is rewritten: a patron with view_borrower_infos_from_any_libraries is restricted to their library by IndependentBranches, and does not see the notices of other libraries even when asking for them, and the ambiguous column case now forces the join so it fails without the fix. I checked both by removing the fix and by flipping the preference, and the tests fail. * CONVERTED_TO_PRINT: the Convert to print buttons are not shown when the notice does not exist, and a direct request says which notice is missing and where to create it. When the notice has an error (a missing [% END %], an unknown variable) the staff member is told it has an error, the error is logged as an error in the plack-intranet-error.log, and the notice that was to be converted is not changed. * Link between the notices: there was none, good question. The delivery note of the original now says 'Converted to print notice 123' and the one of the print notice says 'Converted from notice 122', on the notices management page and on the patron's Notices tab. * Logging: dropped from this bug, for printing as well as converting, as the Notices log does not fit. I filed bug 43950 to add a proper log module for the changes to the notices of the message queue, with the diff and the actions in sentence case, and it depends on this one. There is also a new patch with Cypress tests for the notices management page, the print page and the patron's Notices tab: the filters, what a staff member limited to their library can see and do, printing (including a script in a notice, and notices with a secret), and converting (including the two error cases). The whole series is re-attached, rebased on current main, with the sign-offs carried over, and the release notes are updated for all of this. Setting to Signed Off for another look at the new follow-ups. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43950 [Bug 43950] Add a log module for changes to the notices of the message queue -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209885|0 |1 is obsolete| | Attachment #209886|0 |1 is obsolete| | Attachment #209887|0 |1 is obsolete| | Attachment #209888|0 |1 is obsolete| | Attachment #209889|0 |1 is obsolete| | Attachment #209890|0 |1 is obsolete| | Attachment #209891|0 |1 is obsolete| | Attachment #209892|0 |1 is obsolete| | Attachment #209893|0 |1 is obsolete| | Attachment #209894|0 |1 is obsolete| | Attachment #209895|0 |1 is obsolete| | Attachment #209896|0 |1 is obsolete| | Attachment #209897|0 |1 is obsolete| | Attachment #209898|0 |1 is obsolete| | Attachment #209899|0 |1 is obsolete| | Attachment #209900|0 |1 is obsolete| | Attachment #209901|0 |1 is obsolete| | Attachment #209902|0 |1 is obsolete| | Attachment #209903|0 |1 is obsolete| | Attachment #209904|0 |1 is obsolete| | Attachment #209905|0 |1 is obsolete| | Attachment #209906|0 |1 is obsolete| | Attachment #209907|0 |1 is obsolete| | Attachment #209908|0 |1 is obsolete| | Attachment #209909|0 |1 is obsolete| | Attachment #209910|0 |1 is obsolete| | Attachment #209911|0 |1 is obsolete| | Attachment #209912|0 |1 is obsolete| | Attachment #209913|0 |1 is obsolete| | Attachment #209914|0 |1 is obsolete| | Attachment #209915|0 |1 is obsolete| | Attachment #209916|0 |1 is obsolete| | Attachment #209917|0 |1 is obsolete| | Attachment #209918|0 |1 is obsolete| | Attachment #209919|0 |1 is obsolete| | Attachment #209920|0 |1 is obsolete| | Attachment #209921|0 |1 is obsolete| | Attachment #209922|0 |1 is obsolete| | Attachment #209923|0 |1 is obsolete| | Attachment #209924|0 |1 is obsolete| | Attachment #209925|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #620 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209930 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209930&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #621 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209931 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209931&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #622 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209932 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209932&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #623 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209933 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209933&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #624 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209934 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209934&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #625 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209935 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209935&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #626 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209936 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209936&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #627 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209937 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209937&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #628 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209938 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209938&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #629 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209939 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209939&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #630 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209940 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209940&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #631 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209941 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209941&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #632 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209942 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209942&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #633 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209943 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209943&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #634 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209944 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209944&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #635 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209945 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209945&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #636 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209946 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209946&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #637 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209947 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209947&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #638 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209948 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209948&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #639 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209949 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209949&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #640 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209950 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209950&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #641 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209951 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209951&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #642 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209952 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209952&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #643 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209953 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209953&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #644 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209954 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209954&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #645 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209955 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209955&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #646 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209956 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209956&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #647 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209957 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209957&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #648 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209958 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209958&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #649 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209959 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209959&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #650 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209960 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209960&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #651 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209961 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209961&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #652 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209962 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209962&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #653 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209963 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209963&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #654 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209964 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209964&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #655 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209965 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209965&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #656 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209966 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209966&action=edit Bug 33260: (QA follow-up) Fix ambiguous column when searching limited notices Converting a notice to print from the patron's Notices tab died with 'Column borrowernumber in WHERE is ambiguous' for a staff member whose notices are restricted to some libraries (for example with IndependentBranches, also with view_borrower_infos_from_any_libraries): search_limited joins the patron to restrict the notices to the libraries, and borrowernumber is a column of both tables. It only worked without a restriction because the unused join is then dropped. * search_limited now adds the name of the table to the columns of the notices that are passed without it, so callers cannot trip over the join. * The conversion on the patron's Notices tab says me.borrowernumber, which is clearer anyway. To test: 1. Apply the patches, enable NoticesManagement and IndependentBranches 2. Queue a sent email notice for a patron of your library 3. As a staff member with only the view_generated_notices and edit_borrowers permissions, go to the patron's Notices tab and click 'Convert to print' on the notice => The notice is converted. Before, the page died with the error above 4. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #657 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209967 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209967&action=edit Bug 33260: (QA follow-up) Print notices in sandboxed frames The content of a notice was printed as part of the page of the staff interface, so a script in a notice (the content of notices is not always under the control of the library, it can contain what a patron entered) would run in the session of the staff member printing it. Show each notice in a frame, as the notices management page and the Notices tab of a patron do for the preview: its sandbox does not allow scripts, forms or navigating the page, it is only the same origin so the frame can be sized to its content, which is needed to print it whole. * The notice is shown by html_content, which has the stylesheets, so the scoping of the styles of the notices to the page, which a regular expression got wrong more than once, is no longer needed and is removed. The style of the template of the notice is part of html_content. * The content of a plain text notice is escaped by html_content, as what looks like markup in it was interpreted. To test: 1. Apply the patches, enable NoticesManagement 2. Create an HTML notice for a patron, with a script in its content, for example <script>alert(1)</script><p>Hello</p> and set its status to sent 3. In Tools > Notices management, or the Notices tab of the patron, print it => The notice is printed with no alert, and the browser console says that the script was blocked. Before there was an alert 4. Print a few notices together and confirm the print preview shows all of them in full, separated by page breaks 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #658 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209968 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209968&action=edit Bug 33260: (QA follow-up) Do not log printing and converting notices Printing and converting notices were logged under the Notices module, which is otherwise only used for the changes to the notice templates, as its preference says: 'Log changes to notice templates'. The log did not record the changes made to the notice either, and the action was displayed in capitals by the log viewer. Changes to the notices of the message queue need a log of their own, which is a piece of work of its own, so do not log them here. To test: 1. Apply the patches, enable NoticesManagement and NoticesLog 2. Print a notice and convert another one to print => Nothing is added to the Notices log, in Tools > Log viewer 3. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #659 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209969 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209969&action=edit Bug 33260: (QA follow-up) Make converting to print clearer when it cannot work * Do not offer to convert notices when there is no CONVERTED_TO_PRINT notice, and when asked to anyway say that the notice does not exist and where to create it, instead of the notice could not be converted. * When the CONVERTED_TO_PRINT notice has an error, such as a missing [% END %] or an unknown variable, say so, and put the error in the error log. The notice that was to be converted is not changed. * Link the two notices, in the delivery note of each, which show 'Converted to print notice 123' and 'Converted from notice 122' on the notices management page and the Notices tab of the patron. To test: 1. Apply the patches, enable NoticesManagement 2. Queue a sent email notice for a patron, and convert it to print on the patron's Notices tab => The delivery note of the original says it was converted to the print notice, and that of the print notice says it was converted from the original 3. In Tools > Notices and slips, edit the CONVERTED_TO_PRINT notice (Patrons module, print) and add [% IF 1 %] without closing it. Try to convert another notice => It says the notice has an error, which is in the plack-intranet-error.log 4. Delete the CONVERTED_TO_PRINT notice => There are no Convert to print buttons. Going to the Notices tab with ?conversion=no_template says what is missing 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #660 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 209970 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209970&action=edit Bug 33260: (follow-up) Add Cypress tests for the notices pages Cover the notices management page, the Notices tab of a patron and the print page: * The access to the page: the preference, the permission. * The filters: status, notice type, patron category, patron library and the dates, which are inclusive, alone and together, and with the search form. * What staff members who cannot see all the patrons see and can do, with IndependentBranches: only the notices of their library, which they cannot print or convert for another one, and no filter for the library. * Printing: each notice is shown in a frame that cannot run scripts, with a script and an event handler in the content that do not run, and that is shown in full; the notices that contain a secret, the pending notices that are not print notices and the converted notices are not printed; showing a notice does not change it, printing it does. * Converting to print: the print notice that is queued, the link between the two notices, the notices that can be converted, what is shown when the CONVERTED_TO_PRINT notice does not exist and when it has an error, and that the original is then not changed. The preferences and the CONVERTED_TO_PRINT notice that are changed are restored afterwards, and the patrons and staff members created are removed. To test: 1. Apply the patches 2. Run $ ktd --shell k$ yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts => SUCCESS: Tests pass! 3. Sign off :-D Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k Status|Passed QA |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209930|0 |1 is obsolete| | Attachment #209931|0 |1 is obsolete| | Attachment #209932|0 |1 is obsolete| | Attachment #209933|0 |1 is obsolete| | Attachment #209934|0 |1 is obsolete| | Attachment #209935|0 |1 is obsolete| | Attachment #209936|0 |1 is obsolete| | Attachment #209937|0 |1 is obsolete| | Attachment #209938|0 |1 is obsolete| | Attachment #209939|0 |1 is obsolete| | Attachment #209940|0 |1 is obsolete| | Attachment #209941|0 |1 is obsolete| | Attachment #209942|0 |1 is obsolete| | Attachment #209943|0 |1 is obsolete| | Attachment #209944|0 |1 is obsolete| | Attachment #209945|0 |1 is obsolete| | Attachment #209946|0 |1 is obsolete| | Attachment #209947|0 |1 is obsolete| | Attachment #209948|0 |1 is obsolete| | Attachment #209949|0 |1 is obsolete| | Attachment #209950|0 |1 is obsolete| | Attachment #209951|0 |1 is obsolete| | Attachment #209952|0 |1 is obsolete| | Attachment #209953|0 |1 is obsolete| | Attachment #209954|0 |1 is obsolete| | Attachment #209955|0 |1 is obsolete| | Attachment #209956|0 |1 is obsolete| | Attachment #209957|0 |1 is obsolete| | Attachment #209958|0 |1 is obsolete| | Attachment #209959|0 |1 is obsolete| | Attachment #209960|0 |1 is obsolete| | Attachment #209961|0 |1 is obsolete| | Attachment #209962|0 |1 is obsolete| | Attachment #209963|0 |1 is obsolete| | Attachment #209964|0 |1 is obsolete| | Attachment #209965|0 |1 is obsolete| | Attachment #209966|0 |1 is obsolete| | Attachment #209967|0 |1 is obsolete| | Attachment #209968|0 |1 is obsolete| | Attachment #209969|0 |1 is obsolete| | Attachment #209970|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #661 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211290 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211290&action=edit Bug 33260: Add view_generated_notices user permission Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #662 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211291 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211291&action=edit Bug 33260: Add NoticesManagement system preference Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #663 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211292 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211292&action=edit Bug 33260: Add a patron getter method to Koha::Notice::Message Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #664 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211293 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211293&action=edit Bug 33260: Add Notice management tool This enhancement makes it easy for the library to view sent notices and filter by various search parameters. You can also print sent notices, individually or in a batch. This enhancement uses a new system preference NoticesManagement and a new view_generated_notices user permission. This enhancement has been built on top of Bug 33478 so print format settings are taken into account when printing notices. To test: 1. Apply patches, install database updates, restart services 2. Make sure your logged in user has the view_generated_notices permission checked 3. Enable the NoticesManagement system preference 4. Generate a few notices. There are a few ways to do this including: - place holds, check in items and confirm the holds - place recalls, check in items and confirm the recalls 5. Go to Tools -> Notices management 6. There are two search functions on the left navigation. Confirm the patron search box works by searching for one of the patrons you generated a notice for, you should be redirected to their Notice history. 7. Go back to Notices management. Use the set of search filters to search for notices. Leaving the search filters empty will return all notices generated. Confirm the filters work as expected by using different combinations of filters. 8. Conduct a search so your notices show in a table. Confirm the information fetched about the notices is correct. 9. Click on a notice title. Confirm the contents of the notice show in a pop-up box. 10. Click one of the Print buttons next to a notice. Confirm the notice is opened to be printed. 11. Redo your notices search. Confirm the status of the notice you just printed has now been updated to 'sent'. 12. Use the 'Select all' and 'Clear all' buttons to select or clear the checkboxes. 13. Select a few checkboxes and click the button at the bottom of the table to 'Print selected notices'. Confirm the notices have been collated into one document, separated by horizontal lines, and prints successfully. The statuses for the notices should all be updated to 'sent'. 14. Confirm the Notices management page is not visible without the view_generated_notices permission 15. Confirm the Notices management page is not visible without the NoticesManagement system preference being enabled. 16. Go to a patron's Notices history. If the view_generated_notices user permission is checked for your logged in patron, you should see a Print button for each notice. Confirm this works. Confirm this button doesn't show if your logged in patron does not have the view_generated_notices user permission. It does not require the NoticesManagement system preference. 17. Go to Tools -> Notices & slips 18. Edit the format settings of a few different notices i.e. HOLD and WELCOME 19. Generate these notices by filling a hold for a patron and sending a welcome email 20. Search for all notices under Tools -> Notices management 21. Select all notices and print selected notices 22. Confirm the notices different format settings are taken into account in the printed PDF Sponsored-by: Colorado Library Consortium Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #665 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211294 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211294&action=edit Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #666 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211295 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211295&action=edit Bug 33260: (follow-up) Fix search forms on notices mgmt page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #667 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211296 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211296&action=edit Bug 33260: (QA follow-up) Correct relation accessor and add unit test We were missing unit tests for the patron relation accessor added to Koha::Notice::Message and once I looked at adding the test I spotted the accessor was also using a rather outdated form. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #668 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211297 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211297&action=edit Bug 33260: Use search_limited to protect message privacy, and unit test This patch adds a Koha::Notice::Messages->search_limited sub to allow better control over which patron's notices the user can see. Test added to t/db_dependent/Koha/Notice/Message.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #669 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211298 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211298&action=edit Bug 33260: (QA follow-up) Add template relation This patch add the 'template' relation to the Koha::Notice::Message object to fetch the Koha::Notice::Template object that may have been used to generate the notice. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #670 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211299 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211299&action=edit Bug 33260: (QA follow-up) Safely continue for non-templated notices The 'letter_id'/'letter_code' field in the message queue table is a NULLable foreign key as is indeed NULL in certain circustances. We need to gracefully degrade when there isn't a template for the notice in question. Tihs patch uses the newly introduced 'template' accessor and when that returns undefined we pass 'style' as an empty string. We also use the 'is_html' method introduced in bug 35285 to set the html flag. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #671 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211300&action=edit Bug 33260: (QA follow-up) Add missing page-section Add the missing page-section div to the new page and include required messages.inc include as is now standard. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #672 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211301&action=edit Bug 33260: (follow-up) Rebase for bootstrap 5 Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #673 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211302&action=edit Bug 33260: (follow-up) Remove patron search as primary action This is a 'Notices' display tool, it doesn't make sense to me to replicate the 'Patrons' search interface as the primary action of the tool. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #674 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211303&action=edit Bug 33260: (follow-up) Sync functionality and ordering of display This patch syncs up the functionality and order of the notice displays. We allow for resending of notices via the modal in the new tools page and we add print in bulk to the members notices page. We also fix the modal on the tools page to work with bootstrap 5 correctly. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #675 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211304 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211304&action=edit Bug 33260: (follow-up) Add correct page title to print Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #676 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211305 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211305&action=edit Bug 33260: (follow-up) Limit printing to non-pending on members page This patch prevent printing of notices in the 'pending' state. This ensures that email notices will not be skipped by process message queue at it's next run as we set the 'sent' status on print with this patchset. It still allows for printing of sent and failed messages which I believe is the purpose of the original patchset. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #677 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211306 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211306&action=edit Bug 33260: (follow-up) Alternative print button in modal This adds a simple print option to the modal preview display on the members page. It simply prints the content of the display modal and doesn't set the status change. This might be useful to allow pending notices to still be printed. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #678 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211307 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211307&action=edit Bug 33260: (follow-up) Correct call to 'style' Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #679 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211308 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211308&action=edit Bug 33260: (follow-up) More comprehensively test patron accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #680 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211309 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211309&action=edit Bug 33260: (follow-up) More comprehensively test template accessor Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #681 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211310&action=edit Bug 33260: Fix typo noice -> notice Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #682 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211311 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211311&action=edit Bug 33260: Fix TT syntax failure Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #683 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211312 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211312&action=edit Bug 33260: Replace nosort with NoSort Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #684 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211313 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211313&action=edit Bug 33260: Add hint to disabled select checkbox Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #685 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211314 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211314&action=edit Bug 33260: (follow-up) Also add 'print' option to modal on tools Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #686 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211315 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211315&action=edit Bug 33260: Migrate notice printing to members/print_notice This migrates the bulk notice printing from tools/print_notice.pl using circ/printslip.tt to members/print_notice.pl using members/print_notice.tt This clarified that we are working on pre-existing notices in the message queue and as such should be applying relevant print/email notice styling and not slip styling. Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #687 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211316 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211316&action=edit Bug 33260: Add missing CSP nonces to inline style and script tags Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #688 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211317 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211317&action=edit Bug 33260: (QA follow-up) Repair the tests and notice classes after rebase Bring the patchset up to date with main and fix what QA found: * Koha::Notice::Messages->search_limited no longer modifies the passed conditions, ANDs its library restriction with any condition on the patron's library instead of replacing it, keeps a join passed by the caller, and returns nothing when the logged in patron cannot be found instead of everything. POD documents the behaviour, including that notices without a patron are only returned when there is no restriction. * Koha::Notice::Message->scoped_style produced broken CSS: the scope was inserted in the middle of declarations as soon as there was more than one rule, and rules inside @media and similar at-rules were lost. Replace the regular expressions by a small CSS scoper that handles comments, selector lists (split on their top level commas only) and nested @media, @supports, @document, @layer and @container rules, maps html, body and :root to the notice container, and does not warn when no styles are defined for the transport type. The same scoper is available for the styles of a notice template with Koha::Notice::Message->scoped_template_style. * Add the missing 'use' lines, and POD for _type and object_class. * Tests: search_limited now needs the library groups to hide patron information (Bug 20133), cover the other restriction cases and no longer leaks its transaction; add scoped_style and scoped_template_style tests; correct the test plans of Message.t and Letters.t. * Remove the 'notice_mgmt' branch from printslip.tt (nothing sets it any more since printing moved to members/print_notice.pl) and the unused link_to 'notices' in patron_autocomplete. * Make the permission atomicupdate executable, end patrons.pref and userpermissions.sql with a newline. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t t/db_dependent/Letters.t t/Koha/Auth/Permissions.t' 2. Run the QA script and confirm there are no failures 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #689 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211318 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211318&action=edit Bug 33260: (QA follow-up) Secure and fix the notices management pages Printing: * members/print_notice.pl looked messages up by id without any check, so a staff member who can only see the patrons of some libraries could print the notice of any patron by guessing an id, and an unknown id gave a 500. Look the messages up with search_limited, ignore ids that are not numeric, unknown or not allowed, and honour the NoticesManagement preference. * Displaying notices no longer changes them. Marking them as sent now needs a POST with a CSRF token and the 'cud-print' operation: the per-row and modal "Print" buttons submit a form like the bulk "Print selected notices" already did. This also makes the modal Print consistent with the banner, which says printing marks the notice as sent. * The notice content in the list pages and the modal preview is shown in sandboxed frames instead of being injected into the staff page, so nothing in a notice can run in the staff session. * print_notice.tt outputs AllNoticeStylesheet, says when there is nothing to print and does not start printing then, and the styles of the notice template are scoped with Koha::Notice::Message->scoped_template_style instead of a regular expression that dropped @media blocks. tools/notices.pl: * Stop after redirecting when NoticesManagement is off. * The 'To' date is inclusive, dates are parsed with dt_from_string and invalid ones are ignored. * Only list the most recent 1000 notices that match, as every notice is rendered in the page, and say so when there are more. * Use the modules it uses, drop unused code, https licence URL. Templates: * The status filter always selected 'sent' whatever the search. * The patron page sorted on the wrong column since a column was added, showed the notice frames and applied 'NoSort', which kohaTable does not know ('no-sort'). The tools table now uses kohaTable. * Show the print controls of the patron page only to staff who can use print_notice.pl, and the resend control of the tools page only to staff who can use members/notices.pl. * tools/notices.tt did not load the Koha plugin but used Koha.CSPNonce, so with a content security policy in force the style that hides the notice frames was blocked and every notice was displayed in the table. * Give the notice frames a title, translate the messages of the print page. * Use the patron of the notice in delivery notes, _() in JavaScript. members/notices.pl: resending compared the message's patron with an assignment (=), so any message id could be resent from any patron's page. To test: 1. Enable NoticesManagement and queue notices for patrons of at least two libraries (for example by placing holds, or from the staff interface with Notices and slips). 2. Tools > Notices management lists the notices. Search with a status and confirm the status stays selected, and with the same date in From and To confirm notices queued that day are listed. 3. Click Print on a notice. A new tab shows the notice, and it is now 'sent'. Open the notice and click Print in the window, same result. 4. Select several notices and click "Print selected notices", the same. 5. Open the URL /cgi-bin/koha/members/print_notice.pl?message_ids=ID of a pending notice directly. The notice is shown but stays pending, and unknown ids (...message_ids=99999) do not give an error. 6. Create a staff member with only the Tools > view_generated_notices permission, in a library group that hides patron information from other libraries. Log in as them: only the notices of patrons of their libraries are listed, and print_notice.pl does not show the notice of a patron of another library when you use its id. 7. Disable NoticesManagement: tools/notices.pl and print_notice.pl go back to Tools home. 8. On a patron's Notices tab confirm the default sort is by 'Time created', and that no notice content is displayed in the table. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #690 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211319&action=edit Bug 33260: (QA follow-up) Add a 'printed' status to the message queue Printing a notice is not sending it, and "sent" for a notice that was only printed, especially an email or SMS one, is misleading. Add a 'printed' status to message_queue.status, for notices that have been printed, whatever their transport type. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'printed': UPDATE message_queue SET status = 'printed' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #691 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211320 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211320&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #692 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211321 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211321&action=edit Bug 33260: (QA follow-up) Use the 'printed' status, print consistently Following the feedback on the bug: * Printing a notice is not sending it. Notices that are printed from the notices pages are now set to 'printed', not 'sent', and so are those printed by gather_print_notices.pl. The delivery note no longer shows the from/to/cc addresses of an email that was only printed. Marking a notice as printed is logged when NoticesLog is enabled. * The patron Notices tab and Notices management now follow the same rule, Koha::Notice::Message->can_be_printed, also enforced by print_notice.pl: notices that are not pending can be printed, and so can pending print notices (to replace the cronjob), but not pending email or sms, which would stop them from being sent. * The "Library" filter of Notices management filters on the library of the patron, not the one the notice comes from: say so, and hide the filter when the notices of the patrons of a single library can be seen. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and NoticesLog and queue notices of different types: an email and an sms that have been sent or have failed, and pending email and print notices. 3. In Tools > Notices management and on the patron's Notices tab confirm that the same notices can be printed, but not the pending email. 4. Print a sent email notice. Its status is now 'printed', no from/to is shown in its delivery note, and the printing is in the log viewer (module Notices, action PRINT). 5. Run misc/cronjobs/gather_print_notices.pl on pending print notices and confirm they are set to 'printed'. 6. As a staff member whose patron data is limited to one library, confirm the "Patron library" filter is not displayed. 7. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #693 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211322 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211322&action=edit Bug 33260: (QA follow-up) Do not display or print notices that contain secrets tools.view_generated_notices is a lower permission than the one that was needed to read the content of notices of a patron, and the notices include those that carry a secret: a password reset link (even a staff member's) or a security code. Anyone who could use the notices pages could read them. Notices that can carry a secret, those with the letter codes PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, are still listed, with their status and the other details, so there is a record that they were sent, but: * their content is replaced by a message saying why in the lists, the preview and everywhere Koha::Notice::Message->html_content is used, * they cannot be printed (Koha::Notice::Message->can_be_printed), also from print_notice.pl. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Enable NoticesManagement and send a password reset to a patron, from the patron's page "More > Send password reset", or from the OPAC. 3. In Tools > Notices management and on the patron's Notices tab, open the password reset notice: its status is shown but not its content, and it cannot be selected or printed. 4. Other notices are still displayed and can be printed. 5. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #694 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211323 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211323&action=edit Bug 33260: (QA follow-up) Add a 'converted' status to the message queue A notice that has been converted to a print notice, to be sent by post, is neither sent nor failed any more. Add a 'converted' status to message_queue.status, for the notice that was converted. To test: 1. Apply the patch and run the database update 2. Confirm in the database that message_queue.status accepts 'converted': UPDATE message_queue SET status = 'converted' WHERE message_id = X; 3. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #695 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211324 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211324&action=edit Bug 33260: Automated Schema Update Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #696 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211325 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211325&action=edit Bug 33260: (QA follow-up) Convert notices to print notices Printing a notice that was sent or failed to be sent by email or sms is not very useful by itself: it has no address, and nothing says why it is being printed. A notice can now be converted to a print notice, to be sent by post: * A new notice, CONVERTED_TO_PRINT, is a wrapper for the original notice: it adds the address of the patron and of the library, and says that the original notice was sent, or could not be sent, by email or sms, before the content of the original notice. Libraries can edit it in Notices and slips. (The content of the original is all that is kept of a notice, the variables it was created from are not, so we cannot generate the print notice from them.) * "Convert to print", in the actions column and the modal of the Notices management page and of the patron's Notices tab, queues a pending print notice with it, and sets the original notice to the new status 'converted'. The print notice then goes through the usual printing, by the cronjob or by hand. It is logged when NoticesLog is enabled. * It is available for the notices that can be printed from the pages and that are not print notices, and that are not pending: those that have been sent, have failed or have been deleted. Notices that carry a secret cannot be converted, nor those of a patron that has been deleted. The existing "Print" action is kept, for example to hand a notice to a patron who is at the library. To test: 1. Run the unit tests inside KTD: ktd --shell --run 'prove t/db_dependent/Koha/Notice/Message.t' 2. Apply the database updates and enable NoticesManagement and NoticesLog. Check that the notice CONVERTED_TO_PRINT is in Tools > Notices and slips (module Patrons). 3. Queue an email notice and an sms notice for a patron with an address, and set the status of one to 'failed' and the other to 'sent'. 4. In Tools > Notices management click "Convert to print" on the failed email. A message says it was converted, a pending print notice is listed, with the address of the patron, a note saying the email could not be sent and the original content, and the original is now 'converted' (filter on "Converted to print"). 5. Open the sms notice and click "Convert to print" in the modal. 6. Do the same from the Notices tab of the patron. 7. Confirm a pending email, a printed or converted notice, a print notice and a password reset notice have no "Convert to print". 8. Print the pending print notice from the list. 9. Sign off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #697 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211326 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211326&action=edit Bug 33260: (QA follow-up) Fix ambiguous column when searching limited notices Converting a notice to print from the patron's Notices tab died with 'Column borrowernumber in WHERE is ambiguous' for a staff member whose notices are restricted to some libraries (for example with IndependentBranches, also with view_borrower_infos_from_any_libraries): search_limited joins the patron to restrict the notices to the libraries, and borrowernumber is a column of both tables. It only worked without a restriction because the unused join is then dropped. * search_limited now adds the name of the table to the columns of the notices that are passed without it, so callers cannot trip over the join. * The conversion on the patron's Notices tab says me.borrowernumber, which is clearer anyway. To test: 1. Apply the patches, enable NoticesManagement and IndependentBranches 2. Queue a sent email notice for a patron of your library 3. As a staff member with only the view_generated_notices and edit_borrowers permissions, go to the patron's Notices tab and click 'Convert to print' on the notice => The notice is converted. Before, the page died with the error above 4. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #698 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211327 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211327&action=edit Bug 33260: (QA follow-up) Print notices in sandboxed frames The content of a notice was printed as part of the page of the staff interface, so a script in a notice (the content of notices is not always under the control of the library, it can contain what a patron entered) would run in the session of the staff member printing it. Show each notice in a frame, as the notices management page and the Notices tab of a patron do for the preview: its sandbox does not allow scripts, forms or navigating the page, it is only the same origin so the frame can be sized to its content, which is needed to print it whole. * The notice is shown by html_content, which has the stylesheets, so the scoping of the styles of the notices to the page, which a regular expression got wrong more than once, is no longer needed and is removed. The style of the template of the notice is part of html_content. * The content of a plain text notice is escaped by html_content, as what looks like markup in it was interpreted. To test: 1. Apply the patches, enable NoticesManagement 2. Create an HTML notice for a patron, with a script in its content, for example <script>alert(1)</script><p>Hello</p> and set its status to sent 3. In Tools > Notices management, or the Notices tab of the patron, print it => The notice is printed with no alert, and the browser console says that the script was blocked. Before there was an alert 4. Print a few notices together and confirm the print preview shows all of them in full, separated by page breaks 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #699 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211328 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211328&action=edit Bug 33260: (QA follow-up) Do not log printing and converting notices Printing and converting notices were logged under the Notices module, which is otherwise only used for the changes to the notice templates, as its preference says: 'Log changes to notice templates'. The log did not record the changes made to the notice either, and the action was displayed in capitals by the log viewer. Changes to the notices of the message queue need a log of their own, which is a piece of work of its own, so do not log them here. To test: 1. Apply the patches, enable NoticesManagement and NoticesLog 2. Print a notice and convert another one to print => Nothing is added to the Notices log, in Tools > Log viewer 3. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #700 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211329 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211329&action=edit Bug 33260: (QA follow-up) Make converting to print clearer when it cannot work * Do not offer to convert notices when there is no CONVERTED_TO_PRINT notice, and when asked to anyway say that the notice does not exist and where to create it, instead of the notice could not be converted. * When the CONVERTED_TO_PRINT notice has an error, such as a missing [% END %] or an unknown variable, say so, and put the error in the error log. The notice that was to be converted is not changed. * Link the two notices, in the delivery note of each, which show 'Converted to print notice 123' and 'Converted from notice 122' on the notices management page and the Notices tab of the patron. To test: 1. Apply the patches, enable NoticesManagement 2. Queue a sent email notice for a patron, and convert it to print on the patron's Notices tab => The delivery note of the original says it was converted to the print notice, and that of the print notice says it was converted from the original 3. In Tools > Notices and slips, edit the CONVERTED_TO_PRINT notice (Patrons module, print) and add [% IF 1 %] without closing it. Try to convert another notice => It says the notice has an error, which is in the plack-intranet-error.log 4. Delete the CONVERTED_TO_PRINT notice => There are no Convert to print buttons. Going to the Notices tab with ?conversion=no_template says what is missing 5. prove t/db_dependent/Koha/Notice/Message.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #701 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211330 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211330&action=edit Bug 33260: (follow-up) Add Cypress tests for the notices pages Cover the notices management page, the Notices tab of a patron and the print page: * The access to the page: the preference, the permission. * The filters: status, notice type, patron category, patron library and the dates, which are inclusive, alone and together, and with the search form. * What staff members who cannot see all the patrons see and can do, with IndependentBranches: only the notices of their library, which they cannot print or convert for another one, and no filter for the library. * Printing: each notice is shown in a frame that cannot run scripts, with a script and an event handler in the content that do not run, and that is shown in full; the notices that contain a secret, the pending notices that are not print notices and the converted notices are not printed; showing a notice does not change it, printing it does. * Converting to print: the print notice that is queued, the link between the two notices, the notices that can be converted, what is shown when the CONVERTED_TO_PRINT notice does not exist and when it has an error, and that the original is then not changed. The preferences and the CONVERTED_TO_PRINT notice that are changed are restored afterwards, and the patrons and staff members created are removed. To test: 1. Apply the patches 2. Run $ ktd --shell k$ yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts => SUCCESS: Tests pass! 3. Sign off :-D Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Passed QA --- Comment #702 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Rebased the full series onto current main, no functional change. Two adjustments were needed after bug 38185 (removal of the per-table pagingType option): the 'Secure and fix the notices management pages' patch had a conflict in members/notices.tt, and both it and tools/notices.tt still passed pagingType to kohaTable, which now throws 'kohaTable: deprecated option(s) passed: pagingType'. I dropped the option in both places, folded into that patch. Re-tested: t/Koha/Auth/Permissions.t, t/db_dependent/Koha/Notice/Message.t, t/db_dependent/Letters.t and NoticesManagement_spec.ts (45/45) pass. Restoring status to Passed QA. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #703 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 --- Comment #704 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, Pushing this as is. The findings below are all within, or only triggered by, the new Notices management feature, which is off by default, and are small enough to be fixed in follow-up bugs, in time for 26.11 or later for 26.11.x. A) SHARE_INVITE content can be viewed and printed SHARE_INVITE contains a secret too: its link carries the invitation key for a private list, and anyone with that link can accept the share and read the list. Unlike PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, its content is shown and printable in Notices management. 1) Set 'NoticesManagement' to 'Enable' and 'OpacAllowSharingPrivateLists' to 'Allow' 2) Log in to the OPAC as koha/koha (http://localhost:8080) 3) Click 'Lists' > 'Your lists' > 'New list', name 'My list', keep 'Private', click 'Save' (http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=add_form) 4) Click 'Lists' > 'Your lists', click the 'Share' link next to 'My list', enter 'friend@example.com' and click 'Send' (http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=list) 5) In a KTD shell, run: perl misc/cronjobs/process_message_queue.pl KTD has no mail server, so it prints an SMTP error and the invitation is now 'failed' 6) In the staff interface, go to 'More' > 'Tools' > 'Notices management' (http://localhost:8081/cgi-bin/koha/tools/notices.pl) 7) Click the subject 'Share list My list' 8) Confirm the preview shows the invitation link with its key, and the notice has a 'Print' button B) The conversion link in the 'Delivery note' is lost After 'Convert to print', the 'Delivery note' links the two notices. The link is lost when gather_print_notices.pl processes the print notice, and when the original notice is resent. 1) Set 'NoticesManagement' to 'Enable' 2) Edit patron 'koha' (cardnumber '42'), set 'Primary email' to 'test@example.com', click 'Save' (http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=edit_form&borrowernumber=51) 3) On the patron's page, click 'More' > 'Send welcome notice' 4) In a KTD shell, run: perl misc/cronjobs/process_message_queue.pl KTD has no mail server, so it prints an SMTP error and the notice is now 'failed' 5) Go to 'More' > 'Tools' > 'Notices management', click the 'Convert to print' button on the WELCOME notice (http://localhost:8081/cgi-bin/koha/tools/notices.pl) 6) Confirm the email notice says 'Converted to print notice X' and the new 'print' notice says 'Converted from notice Y' 7) In a KTD shell, run: perl misc/cronjobs/gather_print_notices.pl /tmp 8) Reload Notices management. Confirm the 'print' notice is now 'printed' and 'Converted from notice Y' is gone from its 'Delivery note' 9) Click the subject of the email notice, then the 'Resend' button. Confirm 'Converted to print notice X' is gone C) The patron's Notices tab and Notices management show different delivery notes for the same notice The two pages render the same notices from copied markup, which has already drifted: the patron's 'Notices' tab shows From/To on notices that Notices management doesn't. 1) Repeat steps 1) to 5) of B) above 2) On the patron's 'Notices' tab, confirm the converted email notice shows 'From:' and 'To:' in its 'Delivery note' (http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=51) 3) In Notices management, confirm the same notice only shows 'Converted to print notice X' D) The Cypress spec leaves patron categories behind t/cypress/integration/Tools/NoticesManagement_spec.ts leaves the patron categories created by insertSamplePatron in the database after each run. 1) Go to 'Administration' > 'Patron categories' and note the categories (http://localhost:8081/cgi-bin/koha/admin/categories.pl) 2) Run: yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts 3) Reload 'Patron categories'. Confirm there are new categories with random names E) 'Resend' is offered for notices without a patron In Notices management, the preview of a notice without a patron (e.g. the SHARE_INVITE from A) has a 'Resend' button. Clicking it lands on an empty Circulation page and the notice is not resent. 1) Repeat steps 1) to 7) of A) above 2) Confirm the preview has a 'Resend' button. Click it 3) Confirm you land on an empty Circulation page (circ/circulation.pl?borrowernumber=) and the notice was not resent F) Notices management does potential heavy work for every listed notice on each load Each listed notice renders a hidden frame with its full content, and runs its own queries for its patron and its notice template. With up to 1000 notices listed, that is up to 1000 hidden frames and over a thousand extra queries per page load. G) Also: - The '--help' of misc/cronjobs/gather_print_notices.pl still says '--send' changes the status from pending to sent, it is now 'printed' (the POD was updated, the option description was not). - The 'Convert to print' handling is duplicated. members/notices.pl and tools/notices.pl both have the same 'cud-convert_to_print' block: it calls $message->convert_to_print in a try/catch and turns the exceptions (Koha::Exceptions::Notice::NoConversionTemplate, Koha::Exceptions::Notice::ConversionTemplateError, anything else) into the same 'no_template' / 'template_error' / 'failed' result. members/notices.tt and tools/notices.tt then repeat the same alerts for each of those results. Please link the follow-up bugs to this (Depends On) so they can be tracked for 26.11. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |44088 Blocks| |44089 Blocks| |44090 Blocks| |44091 Blocks| |44092 Blocks| |44093 Blocks| |44094 Blocks| |44095 --- Comment #705 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Cheers Pedro, I've filed all your comments as new bugs and will work through them in due course. So glad to see this one make it into the release :) Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44088 [Bug 44088] Notices management: hide and disable printing of SHARE_INVITE content https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44089 [Bug 44089] Notices management: conversion link in delivery note is lost https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 [Bug 44090] Patron Notices tab and Notices management show different delivery notes https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44091 [Bug 44091] NoticesManagement_spec.ts leaves patron categories behind https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44092 [Bug 44092] Notices management: do not offer 'Resend' for notices without a patron https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44093 [Bug 44093] Notices management: avoid rendering hidden frame and queries for every listed notice https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44094 [Bug 44094] gather_print_notices.pl --help still says --send sets status to sent https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44095 [Bug 44095] Deduplicate 'Convert to print' handling in members/notices.pl and tools/notices.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|44089 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44089 [Bug 44089] Notices management: conversion link in delivery note is lost -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |44089 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44089 [Bug 44089] Notices management: conversion link in delivery note is lost -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|44089 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44089 [Bug 44089] Notices management: conversion link in delivery note is lost -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|44093 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44093 [Bug 44093] Notices management: avoid rendering hidden frame and queries for every listed notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|44095 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44095 [Bug 44095] Deduplicate 'Convert to print' handling in members/notices.pl and tools/notices.pl -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org