[Bug 24083] New: Koha should support "seen" vs "unseen" renewals
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Bug ID: 24083 Summary: Koha should support "seen" vs "unseen" renewals Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: andrew.isherwood@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com When carrying out a renewal transaction Koha should check for both the maximum number of renewals allowed and also the number of unseen renewals. If it finds a value equal to or greater than the number of renewals already carried out against that loan, it prevents the renewal. The purpose of this is to prevent borrowers from continually renewing a book when they have, in fact, lost or misplaced it! When a renewal takes place via a method that doesn't require visible sight or possession of the item (e.g. OPAC, automatic renewal) then the number of unseen renewals for that item should be incremented. SIP2 renewals can be considered seen since they will require the physical item to be scanned. The number of allowed unseen renewals before a renewal is denied should be specifiable in the circulation rules. If a renewal is denied due to the unseen maximum having been reached, the flow should be the same as when a renewal limit has been reached, though with appropriate messages displayed to the user. It should be possible to override the denial in the same was as when a renewal limit is reached. -- 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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |andrew.isherwood@ptfs-europ |ity.org |e.com Change sponsored?|--- |Sponsored -- 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=24083 --- Comment #1 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95861 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95861&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - A change to the issuingrules table schema and a corresponding database upgrade to add issuingrules.unseen_renewals_allowed - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #2 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95862 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95862&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #3 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95863 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95863&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #4 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95864 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95864&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95861|0 |1 is obsolete| | --- Comment #5 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95865 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95865&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - A change to the issuingrules table schema and a corresponding database upgrade to add issuingrules.unseen_renewals_allowed - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95862|0 |1 is obsolete| | --- Comment #6 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95866 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95866&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95863|0 |1 is obsolete| | --- Comment #7 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95867 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95867&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95864|0 |1 is obsolete| | --- Comment #8 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 95868 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95868&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #9 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- - Apply patches (if on a platform requiring this to be done manually) - Run DB updates and rebuild schema (if on a platform requiring this to be done manually) - Rebuild CSS (if on a platform requiring this to be done manually) - Issue an item to a patron - Navigate to Koha Administration > Circulation and fines rules => TEST: Observe that there *isn't* a column titled "Unseen renewals allowed (count)" - Navigate to a patron's checkouts list => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Turn on the "UnseenRenewals" syspref - Turn on the "OpacRenewalAllowed" syspref - Navigate to Koha Administration > Circulation and fines rules - If you have no circulation rules defined, define one that will: - Apply to all patron categories - Apply to item types - Allow renewals => TEST: Observe that there *is* a column titled "Unseen renewals allowed (count)" and the value is empty - Add a value for "Unseen renewals allowed", make the value reasonably low so we can test what happens when that value is reached - Navigate to a patron's checkouts list in the staff client => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - In the OPAC, renew an item => TEST: Observe that, since the renewal took place in the OPAC, the number of unseen renewals left is decremented - In the OPAC, repeatedly renew the item until the unseen renewals limit is reached => TEST: Observe that the item can no longer be renewed and the borrower is advised to take the item to the library - Navigate to the patron's checkouts list in the staff client => TEST: Observe that the item is listed as "Must be renewed at the library" and is blocked from renewal - Select the "Override renewal restrictions" checkbox => TEST: Observe that the item can now be selected for renewal - Select the item and click "Renew or check in selected items" => TEST: Observe that now the item has been renewed by the library, the unseen renewals remaining count has been reset - Select the item for renewal again and check the "Renew as unseen if appropriate" checkbox, click "Renew or check in selected items" => TEST: Observe that, since the item was renewed as "unseen", the unseen renewals remaining has been decremented - Navigate to Circulation > Renew => TEST: Observe that a new "Record renewal as unseen if appropriate" checkbox is displayed - Renew the item, do not check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has not been decremented - Renew the item, check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has been decremented - Navigate to Tools > Notices & Slips, edit the "AUTO_RENEWALS" Email notice => TEST: Observe that there is now a test for the "too_unseen" error, with an appropriate message SIP RENEWALS: - Use sip_cli_emulator.pl to send a renew message for the item, for example: ./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su <kiosk_username> -sp <kiosk_password> --patron <patron_username> --password <patron_password> -l CPL -i <item_barcode> -m renew - TEST: Observe that, as the SIP renewal is considered to be "seen", the item's unseen renewals count has been reset -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Fiona Borthwick <fiona.borthwick@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fiona.borthwick@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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |18936 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18936 [Bug 18936] Convert issuingrules fields to circulation_rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- This needs to be rebuilt on top of bug 18936. And even bug 15522 I'd say. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95865|0 |1 is obsolete| | --- Comment #11 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98749&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95866|0 |1 is obsolete| | --- Comment #12 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98750&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95867|0 |1 is obsolete| | --- Comment #13 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98751&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95868|0 |1 is obsolete| | --- Comment #14 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98752&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> 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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98749|0 |1 is obsolete| | --- Comment #15 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98765 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98765&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98750|0 |1 is obsolete| | --- Comment #16 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98766 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98766&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98751|0 |1 is obsolete| | --- Comment #17 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98767 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98767&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98752|0 |1 is obsolete| | --- Comment #18 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 98768 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98768&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #19 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- - Apply patches (if on a platform requiring this to be done manually) - Run DB updates and rebuild schema (if on a platform requiring this to be done manually) - Rebuild CSS (if on a platform requiring this to be done manually) - Issue an item to a patron - Navigate to Koha Administration > Circulation and fines rules => TEST: Observe that there *isn't* a column titled "Unseen renewals allowed (count)" - Navigate to a patron's checkouts list => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Turn on the "OpacRenewalAllowed" syspref - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Turn on the "UnseenRenewals" syspref - Navigate to Koha Administration > Circulation and fines rules - If you have no circulation rules defined, define one that will: - Apply to all patron categories - Apply to item types - Allow renewals => TEST: Observe that there *is* a column titled "Unseen renewals allowed (count)" and the value is empty - Add a value for "Unseen renewals allowed", make the value reasonably low so we can test what happens when that value is reached - Navigate to a patron's checkouts list in the staff client => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - In the OPAC, renew an item => TEST: Observe that, since the renewal took place in the OPAC, the number of unseen renewals left is decremented - In the OPAC, repeatedly renew the item until the unseen renewals limit is reached => TEST: Observe that the item can no longer be renewed and the borrower is advised to take the item to the library - Navigate to the patron's checkouts list in the staff client => TEST: Observe that the item is listed as "Must be renewed at the library" and is blocked from renewal - Select the "Override renewal restrictions" checkbox => TEST: Observe that the item can now be selected for renewal - Select the item and click "Renew or check in selected items" => TEST: Observe that now the item has been renewed by the library, the unseen renewals remaining count has been reset - Select the item for renewal again and check the "Renew as unseen if appropriate" checkbox, click "Renew or check in selected items" => TEST: Observe that, since the item was renewed as "unseen", the unseen renewals remaining has been decremented - Navigate to Circulation > Renew => TEST: Observe that a new "Record renewal as unseen if appropriate" checkbox is displayed - Renew the item, do not check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has not been decremented - Renew the item, check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has been decremented - Navigate to Tools > Notices & Slips, edit the "AUTO_RENEWALS" Email notice => TEST: Observe that there is now a test for the "too_unseen" error, with an appropriate message SIP RENEWALS: - Use sip_cli_emulator.pl to send a renew message for the item, for example: ./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su <kiosk_username> -sp <kiosk_password> --patron <patron_username> --password <patron_password> -l CPL -i <item_barcode> -m renew - TEST: Observe that, as the SIP renewal is considered to be "seen", the item's unseen renewals count has been reset -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com, | |sally.healey@cheshireshared | |services.gov.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98765|0 |1 is obsolete| | --- Comment #20 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100244 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100244&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98766|0 |1 is obsolete| | --- Comment #21 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100245 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100245&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98767|0 |1 is obsolete| | --- Comment #22 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100246 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100246&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98768|0 |1 is obsolete| | --- Comment #23 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100247 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100247&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100244|0 |1 is obsolete| | --- Comment #24 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100380 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100380&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100245|0 |1 is obsolete| | --- Comment #25 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100381 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100381&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100246|0 |1 is obsolete| | --- Comment #26 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100382 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100382&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100247|0 |1 is obsolete| | --- Comment #27 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100383 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100383&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #28 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 100392 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100392&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_20_05_target -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com Status|Signed Off |Patch doesn't apply --- Comment #29 from Nick Clemens <nick@bywatersolutions.com> --- conflicts in opac-renew.pl and opac-user.tt the previous rebase on CanBookBeRenewed looks wrong too - it readds a lot of code at first glance here I like that this circ rule type can be disabled, but I wish it used a more generic method. Something like a table of rule names and an 'enabled' column - then we could join that when searching for effective rules and simply not use disabled ones - not a blocker -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_20_05_candidate |rel_20_11_target -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #30 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Looks like bug 19014 was where the rebase gets confused.. I've not played with the patch with It certainly does look like a lot of code was re-introduced. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_20_11_target | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100380|0 |1 is obsolete| | --- Comment #31 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 110607 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110607&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100381|0 |1 is obsolete| | --- Comment #32 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 110608 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110608&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100382|0 |1 is obsolete| | --- Comment #33 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 110609 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110609&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100383|0 |1 is obsolete| | --- Comment #34 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 110610 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110610&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100392|0 |1 is obsolete| | --- Comment #35 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 110611 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110611&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off --- Comment #36 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- - Apply patches (if on a platform requiring this to be done manually) - Run DB updates and rebuild schema (if on a platform requiring this to be done manually) - Rebuild CSS (if on a platform requiring this to be done manually) - Issue an item to a patron - Navigate to Koha Administration > Circulation and fines rules => TEST: Observe that there *isn't* a column titled "Unseen renewals allowed (count)" - Navigate to a patron's checkouts list => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, only details of their remaining renewals are shown, unseen renewals are not mentioned - Turn on the "UnseenRenewals" syspref - Turn on the "OpacRenewalAllowed" syspref - Navigate to Koha Administration > Circulation and fines rules - If you have no circulation rules defined, define one that will: - Apply to all patron categories - Apply to item types - Allow renewals => TEST: Observe that there *is* a column titled "Unseen renewals allowed (count)" and the value is empty - Add a value for "Unseen renewals allowed", make the value reasonably low so we can test what happens when that value is reached - Navigate to a patron's checkouts list in the staff client => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - Navigate to a patron's "Your account" page => TEST: Observe that in the "Renew" column, details of their remaining unseen renewals are now shown - In the OPAC, renew an item => TEST: Observe that, since the renewal took place in the OPAC, the number of unseen renewals left is decremented - In the OPAC, repeatedly renew the item until the unseen renewals limit is reached => TEST: Observe that the item can no longer be renewed and the borrower is advised to take the item to the library - Navigate to the patron's checkouts list in the staff client => TEST: Observe that the item is listed as "Must be renewed at the library" and is blocked from renewal - Select the "Override renewal restrictions" checkbox => TEST: Observe that the item can now be selected for renewal - Select the item and click "Renew or check in selected items" => TEST: Observe that now the item has been renewed by the library, the unseen renewals remaining count has been reset - Select the item for renewal again and check the "Renew as unseen if appropriate" checkbox, click "Renew or check in selected items" => TEST: Observe that, since the item was renewed as "unseen", the unseen renewals remaining has been decremented - Navigate to Circulation > Renew => TEST: Observe that a new "Record renewal as unseen if appropriate" checkbox is displayed - Renew the item, do not check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has been reset - Renew the item, check the unseen checkbox => TEST: Observe in the patron's checkouts list that the unseen renewals count has been decremented - Navigate to Tools > Notices & Slips, edit the "AUTO_RENEWALS" Email notice => TEST: Observe that there is now a test for the "too_unseen" error, with an appropriate message SIP RENEWALS: - Use sip_cli_emulator.pl to send a renew message for the item, for example: ./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su <kiosk_username> -sp <kiosk_password> --patron <patron_username> --password <patron_password> -l CPL -i <item_barcode> -m renew - TEST: Observe that, as the SIP renewal is considered to be "seen", the item's unseen renewals count has been reset -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #37 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Rebased on master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #38 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Andrew, starting with some QA work here. Tbh I've never heard of this specific functionality in an ILS before and am a bit stumped on the use case. Can you explain a bit on how this is used in libraries? 1) QA script fails FAIL C4/Circulation.pm OK critic FAIL forbidden patterns forbidden pattern: Use of DateTime->now should certainly be replaced with dt_from_string (bug 24840) (line 2933) FAIL t/db_dependent/Circulation/issue.t OK critic OK forbidden patterns OK git manipulation OK pod OK spelling FAIL valid Can't locate Koha/IssuingRules.pm in @INC (you may need to install the Koha::IssuingRules module) (@INC contains: /home/vagrant/kohaclone /home/vagrant/qa-test-tools /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/kohadev/plugins) 2) Database updates There is lots of them :) a) The one thing that gives me a bit of a headache is the change to the notices for existing installations. I think we should leave that one out as we cannot safely assume what people have 'done' to this notice - they will have translated it, might have decided to not inform patrons of the reasons at all, changed the structure etc. I feel we should not interfere here. b) You have a mismatch between kohastructure.sql and the updates for issues/old_issues: AFTER renewals vs. after auto_renew 3) Strings in Javascript This is an old patch, I am aware, but not sure if you have seen yet: We are moving the strings back into the js as they can be finally translated within the file now. See bug 21156 for examples. I am not going to block this, but it would be nice if the patches could be changed to use the new mechanism right away. 4) Terminology We just did a major clean-up on the system preferences, that's why I am a bit nit-picky there. Every change later requires translators to do the work again too - so it might be forgiven: + - renewals to be recorded as "unseen" by the library, and count against the borrowers unseen renewals limit Can you please make the borrowers patrons and add a .? 5) Web based self check Renewals are also possible with the web based self check - so I feel some changes will be needed there as well! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110607|0 |1 is obsolete| | --- Comment #39 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111147 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111147&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110608|0 |1 is obsolete| | --- Comment #40 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111148 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111148&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110609|0 |1 is obsolete| | --- Comment #41 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111149 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111149&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110610|0 |1 is obsolete| | --- Comment #42 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111150 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111150&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110611|0 |1 is obsolete| | --- Comment #43 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111151 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111151&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #44 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111152 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111152&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Remove notice text database update - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #45 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Hi Katrin
1) QA script fails
Fixed
2) Database updates
a) This is now removed b) Fixed
3) Strings in Javascript
This was actually causing merge conflicts when I applied this bug to latest master, so I made this switch as part of the merging
4) Terminology
Fixed
5) Web based self check
I'm not sure what you mean here. Do you mean the renewal function in the "My account" in the OPAC? If so, unseen renewals are already handled there. I'm guessing you're referring to something else though... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #46 from Katrin Fischer <katrin.fischer@bsz-bw.de> ---
5) Web based self check
I'm not sure what you mean here. Do you mean the renewal function in the "My account" in the OPAC? If so, unseen renewals are already handled there. I'm guessing you're referring to something else though...
Hi Andrew, thx for the follow-ups, what I meant is the web based self check module, see SelfCheckInModule and WebBasedSelfCheck - the latter also has the option to make renewals either by scanning in an item agan (seen?) and by renewing them directly (unseen). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111147|0 |1 is obsolete| | --- Comment #47 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111283 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111283&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111148|0 |1 is obsolete| | --- Comment #48 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111284&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111149|0 |1 is obsolete| | --- Comment #49 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111285 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111285&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111150|0 |1 is obsolete| | --- Comment #50 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111286 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111286&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111151|0 |1 is obsolete| | --- Comment #51 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111287 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111287&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111152|0 |1 is obsolete| | --- Comment #52 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111288 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111288&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Remove notice text database update - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #53 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111289 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111289&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #54 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111290 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111290&action=edit Bug 24083: (follow-up) Fix error in checkouts JS This commit fixes a small error in the checkouts related JS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #55 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111291 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111291&action=edit Bug 24083: (follow-up) Fix GetRenewCount return GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #56 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111292 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111292&action=edit Bug 24083: (follow-up) Fix unit tests Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. Fixed expected number of return values from GetRenewCount Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #57 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111293 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111293&action=edit Bug 24083: (follow-up) Fix bad rebase There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #58 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- (In reply to Katrin Fischer from comment #46)
Hi Andrew,
thx for the follow-ups, what I meant is the web based self check module, see SelfCheckInModule and WebBasedSelfCheck - the latter also has the option to make renewals either by scanning in an item agan (seen?) and by renewing them directly (unseen).
Hi Katrin Thanks for the clarification, I didn't even know this area of Koha existed! Anyway, I have now added awareness of seen vs unseen to it so should prevent renewals when appropriate with a suitable error message. I've also fixed some unit tests that were broken as a result of changes since this was last rebased. I've also fixed a major rebase error that crept in in February, to be honest it's amazing anything worked at all with it in, anyway it's fixed now. Setting this back to "Signed off" with crossed fingers... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #59 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am sorry Andrew, but I can't get the tests to pass :( I applied the patches, ran updatedatabase and then dbic after. Can you please check? t/db_dependent/Circulation.t ........ 1/50 # Failed test 'Cannot renew, 0 unseen renewals allowed' # at t/db_dependent/Circulation.t line 1174. # got: '1' # expected: '0' # Failed test 'Cannot renew, returned code is too_unseen' # at t/db_dependent/Circulation.t line 1175. # got: undef # expected: 'too_unseen' # Looks like you failed 2 tests of 89. t/db_dependent/Circulation.t ........ 15/50 # Failed test 'CanBookBeRenewed tests' # at t/db_dependent/Circulation.t line 1288. t/db_dependent/Circulation.t ........ 50/50 # Looks like you failed 1 test of 50. t/db_dependent/Circulation.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/50 subtests t/db_dependent/Circulation/issue.t .. ok Test Summary Report ------------------- t/db_dependent/Circulation.t (Wstat: 256 Tests: 50 Failed: 1) Failed test: 15 Non-zero exit status: 1 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111283|0 |1 is obsolete| | --- Comment #60 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111849&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111284|0 |1 is obsolete| | --- Comment #61 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111850 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111850&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111285|0 |1 is obsolete| | --- Comment #62 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111851 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111851&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111286|0 |1 is obsolete| | --- Comment #63 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111852 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111852&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111287|0 |1 is obsolete| | --- Comment #64 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111853 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111853&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111288|0 |1 is obsolete| | --- Comment #65 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111854 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111854&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Remove notice text database update - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111289|0 |1 is obsolete| | --- Comment #66 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111855&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111290|0 |1 is obsolete| | --- Comment #67 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111856 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111856&action=edit Bug 24083: (follow-up) Fix error in checkouts JS This commit fixes a small error in the checkouts related JS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111291|0 |1 is obsolete| | --- Comment #68 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111857 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111857&action=edit Bug 24083: (follow-up) Fix GetRenewCount return GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111292|0 |1 is obsolete| | --- Comment #69 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111858 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111858&action=edit Bug 24083: (follow-up) Fix unit tests Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. Fixed expected number of return values from GetRenewCount Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111293|0 |1 is obsolete| | --- Comment #70 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111859 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111859&action=edit Bug 24083: (follow-up) Fix bad rebase There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #71 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 111860 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111860&action=edit Bug 24083: (follow-up) Fix bad rebase This commit fixes a couple of lines that got missed during the last rebase -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #72 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Sorry Katrin, another bad rebase. All these rebases are a nightmare for introducing errors. Anyway, hopefully it will now be good. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #73 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Could someone please take over testing the SIP bit of the test plan for me? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #74 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Done lots of successful testing, but getting stuck a bit at the mechanics of this: 1) I turned on the unseen/seen renewals feature. My total allowed renewals are 5. Unseen 4. My checked out item in the OPAC now shows: Renew ( 2 of 5 renewals remaining / 4 of 4 renewals left before the item must be seen by the library ) In this case it's extra confusing because I have done renewals before the feature was activated. Then I have renewed the item by checking it out again. It now reads: Renew ( 1 of 5 renewals remaining / 4 of 4 renewals left before the item must be seen by the library ) So it appears to have reset the renewals. But: If I renew the item in the OPAC now, I get: Renewed! Not renewable I feel like it's confusing to patrons that it says I have x renewals left, but this number is smaller than the unseen renewals available. It would make sense if the "seen" renewal reset the counter, but that doesn't appear to happen. 2) Checked my item in again and back out to reset all counters. OPAC reads: Renew ( 5 of 5 renewals remaining / 4 of 4 renewals left before the item must be seen by the library ) Renew once in the OPAC. Renew ( 4 of 5 renewals remaining / 3 of 4 renewals left before the item must be seen by the library ) Renew using the renew tab in staff client: ( 3 of 5 renewals remaining / 4 of 4 renewals left before the item must be seen by the library ) So this appears to have reset the "unseen" renewals, which I think is correct. My issue here is that I think it will be very confusing to the patrons, do they have 3 or 4 renewals left now? (actually only 3, otherwise the item has to be checked in and out again and everything will be reset. Maybe we should just show the patrons how many more online renewals are possible before they have to take the item to the library for renewal? OR: ( 3 of 5 renewals remaining / 4 of 4 renewals left before the item must be seen by the library ) Would change to the following, when the unseen renewals are higher than the actual remaining ones: ( 3 of 5 renewals remaining ) AND: ( 4 of 5 renewals remaining / 2 of 2 renewals left before the item must be seen by the library ) Could be: ( 2 online renewals remaining before the item must be seen by the library ) I guess besides the confusing display I wonder if the count of renewals should be reset by a seen renewal? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #75 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- 3) New test case: - 5 renewals allowed - 2 renewals unseen - Item checked out - Renewed twice via the OPAC - Now no renewal information displays, the cell is empty Expected: Must be renewed at the library and some information about remaining renewals. Where it's very verbose before, once you reach that state, there is no information to the user at all. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #76 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- 4) Please add the new test for too_unseen to the AUTO_RENEW default notices, so that new installations will have it and we have a default notice to refer to. Addition to 1) and 2), trying to be clearer about the issue: In my last test case I see: Renew ( 4 of 5 renewals remaining / 1 of 2 renewals left before the item must be seen by the library ) This does kind of make sense to me now. I still think it might be clearer to leave out the unseen renewals if they no longer apply, because all remaining renewals can be done online. (2 of 5, 2 of 2 => 2 of 5) I think 3) and 4) should be fixed. 1) and 2) might be good to put some more thought into separately, not blocker for me. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #77 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Hi Katrin Thanks for that, and for all the detail of your testing procedures.
1)
Yes, I think you're right, some improvements could be made to consolidate the various renewal counts depending on which is more pertinent, your ideas make sense. I'll see what I can do
2) Checked my item in again and back out to reset all counters. [...] I guess besides the confusing display I wonder if the count of renewals should be reset by a seen renewal?
Do you mean the unseen count should be reset by a seen renewal? That is what should happen. In all my testing it has worked correctly, am I missing your point?
3. New test case: [...] - Now no renewal information displays, the cell is empty
That sounds like a bug, I'll check it out
4) Please add the new test for too_unseen to the AUTO_RENEW default notices, so > that new installations will have it and we have a default notice to refer to.
Will do -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111849|0 |1 is obsolete| | --- Comment #78 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112230 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112230&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111850|0 |1 is obsolete| | --- Comment #79 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112231 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112231&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111851|0 |1 is obsolete| | --- Comment #80 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112232 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112232&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111852|0 |1 is obsolete| | --- Comment #81 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112233 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112233&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111853|0 |1 is obsolete| | --- Comment #82 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112234 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112234&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111854|0 |1 is obsolete| | --- Comment #83 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112235 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112235&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Remove notice text database update - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111855|0 |1 is obsolete| | --- Comment #84 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112236 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112236&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111856|0 |1 is obsolete| | --- Comment #85 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112237 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112237&action=edit Bug 24083: (follow-up) Fix error in checkouts JS This commit fixes a small error in the checkouts related JS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111857|0 |1 is obsolete| | --- Comment #86 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112238 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112238&action=edit Bug 24083: (follow-up) Fix GetRenewCount return GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111858|0 |1 is obsolete| | --- Comment #87 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112239 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112239&action=edit Bug 24083: (follow-up) Fix unit tests Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. Fixed expected number of return values from GetRenewCount Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111859|0 |1 is obsolete| | Attachment #111860|0 |1 is obsolete| | --- Comment #88 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112240 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112240&action=edit Bug 24083: (follow-up) Fix bad rebase There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #89 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112241 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112241&action=edit Bug 24083: (follow-up) Fix bad rebase This commit fixes a couple of lines that got missed during the last rebase -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #90 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112242&action=edit Bug 24083: (follow-up) Fix misaligned columns Somehow I'd never noticed this before but the columns in smart-rules.tt were misaligned when UnseenRenewals was turned off. This was due to the display of a <td> not being conditional when it should have been. This is now fixed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #91 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 112243 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112243&action=edit Bug 24083: (follow-up) Fix QA issues This commit fixes items 1 & 2 descibed by Katrin in comment #74 -> comment #76. - Fixed missing check for too_unseen in opac-user.tt, this test did used to exist but got lost during sizeable rebase a few weeks ago :-( - Added test for too_unseen to all AUTO_RENEWAL notice templates apart from de-DE (as previously requested by Katrin) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #92 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Hi Katrin I've just fixed 1 & 2. 1 was due to a mistake during a rebase back in early October. For 2, I didn't modify the de-DE notice as you previously requested. As far as 3 & 4 are concerned, I'd be super keen for those to be enhancements after this is PQA. As has just been proved, repeatedly rebasing this is tricky as it's quite a sprawling piece and every time introduces the potential for error. So I, for one, would be keen to get it in as it is, then address any enhancements to wording, particularly as they're likely to be subjective. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #93 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Andrew Isherwood from comment #92)
Hi Katrin
I've just fixed 1 & 2. 1 was due to a mistake during a rebase back in early October. For 2, I didn't modify the de-DE notice as you previously requested.
As far as 3 & 4 are concerned, I'd be super keen for those to be enhancements after this is PQA. As has just been proved, repeatedly rebasing this is tricky as it's quite a sprawling piece and every time introduces the potential for error. So I, for one, would be keen to get it in as it is, then address any enhancements to wording, particularly as they're likely to be subjective.
I think you meant fixed 3 and 4 and to wait with 1 and 2 :) But I am ok with this as I wrote before, improving language is not blocker for me right now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112230|0 |1 is obsolete| | --- Comment #94 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112410 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112410&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals - An update for the renewals letter to include a message for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112231|0 |1 is obsolete| | --- Comment #95 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112411 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112411&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112232|0 |1 is obsolete| | --- Comment #96 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112412 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112412&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112233|0 |1 is obsolete| | --- Comment #97 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112413&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112234|0 |1 is obsolete| | --- Comment #98 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112414&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112235|0 |1 is obsolete| | --- Comment #99 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112415&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Remove notice text database update - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112236|0 |1 is obsolete| | --- Comment #100 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112416 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112416&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112237|0 |1 is obsolete| | --- Comment #101 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112417 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112417&action=edit Bug 24083: (follow-up) Fix error in checkouts JS This commit fixes a small error in the checkouts related JS Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112238|0 |1 is obsolete| | --- Comment #102 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112418 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112418&action=edit Bug 24083: (follow-up) Fix GetRenewCount return GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112239|0 |1 is obsolete| | --- Comment #103 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112419 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112419&action=edit Bug 24083: (follow-up) Fix unit tests Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. Fixed expected number of return values from GetRenewCount Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112240|0 |1 is obsolete| | Attachment #112241|0 |1 is obsolete| | --- Comment #104 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112420 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112420&action=edit Bug 24083: (follow-up) Fix bad rebase There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #105 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112421 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112421&action=edit Bug 24083: (follow-up) Fix bad rebase This commit fixes a couple of lines that got missed during the last rebase Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112242|0 |1 is obsolete| | --- Comment #106 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112422&action=edit Bug 24083: (follow-up) Fix misaligned columns Somehow I'd never noticed this before but the columns in smart-rules.tt were misaligned when UnseenRenewals was turned off. This was due to the display of a <td> not being conditional when it should have been. This is now fixed. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112243|0 |1 is obsolete| | --- Comment #107 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 112423 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112423&action=edit Bug 24083: (follow-up) Fix QA issues This commit fixes items 1 & 2 descibed by Katrin in comment #74 -> comment #76. - Fixed missing check for too_unseen in opac-user.tt, this test did used to exist but got lost during sizeable rebase a few weeks ago :-( - Added test for too_unseen to all AUTO_RENEWAL notice templates apart from de-DE (as previously requested by Katrin) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #108 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Andrew, could you try to squash some patches here? Especially the atomicupdate file that is added then removed, and the 2 "Fix bad rebase" patches. And more if you can (the several tiny "fix" patches). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112410|0 |1 is obsolete| | --- Comment #109 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113073 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113073&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112411|0 |1 is obsolete| | --- Comment #110 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113074 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113074&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112412|0 |1 is obsolete| | --- Comment #111 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113075&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112413|0 |1 is obsolete| | --- Comment #112 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113076 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113076&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112414|0 |1 is obsolete| | --- Comment #113 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113077 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113077&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112415|0 |1 is obsolete| | --- Comment #114 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113078 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113078&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112416|0 |1 is obsolete| | --- Comment #115 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113079 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113079&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #116 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113080 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113080&action=edit Bug 24083: (follow-up) Squashed follow ups This squashed commit fixes: - a small error in the checkouts related JS - GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. - Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). - Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. - Fixed expected number of return values from GetRenewCount - Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. - There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm - Somehow I'd never noticed this before but the columns in smart-rules.tt were misaligned when UnseenRenewals was turned off. This was due to the display of a <td> not being conditional when it should have been. This is now fixed. - This commit also fixes items 1 & 2 descibed by Katrin in comment #74 -> comment #76. - Fixed missing check for too_unseen in opac-user.tt, this test did used to exist but got lost during sizeable rebase a few weeks ago :-( - Added test for too_unseen to all AUTO_RENEWAL notice templates apart from de-DE (as previously requested by Katrin) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112417|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112418|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112420|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112421|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112422|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112423|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=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112419|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=24083 --- Comment #117 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Hi Jonathan - squashed as requested -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #118 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113314 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113314&action=edit Bug 24083: Delete the new rule when needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #119 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113315 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113315&action=edit Bug 24083: Swap the column for "Unlimited" handling -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #120 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Hi Andrew, I think I've found some problem with this enhancement. 1. I have set the default circ rule: unseen_renewals_allowed | 2 renewalsallowed | 5 And an issue has: renewals: 2 unseen_renewals: 2 so number of unseen is reached. I am expecting a staff member to be allowed to renew, however I get: Cannot renew: E Street shuffle : ( BC_1 ) has been renewed the maximum number of consecutive times without being seen by the library ) Can you confirm it's a bug? 2. If 1. is valid, why cannot we renew from circulation.pl if the max number of renewals is not reached (but number of unseen renewals is)? 3. If I am understanding correctly, the AddRenewal call in sco-main.pl always has $seen set to 1. Maybe we should then make it hardcoded in the controller (ie. no need to have the template var) 4. It seems that the too_unseen error should be handled in misc/cronjobs/automatic_renewals.pl Don't you think? It can still be part of 20.11 if I get answers/follow-ups before Wednesday. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113073|0 |1 is obsolete| | --- Comment #121 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113484 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113484&action=edit Bug 24083: Required atomic updates & DB update This patch adds: - An "UnseenRenewals" circulation syspref that enables/disables the functionality added in this bug - Add unseen_renewals_allowed to circulation_rules - A change to the issues & old_issues table schemas and corresponding database upgrades to add issues.unseen_renewals & old_issues.unseen_renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113074|0 |1 is obsolete| | --- Comment #122 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113485 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113485&action=edit Bug 24083: Add circ rules management This patch adds the ability to set the "Unseen renewals allowed" value in the circulation rules Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113075|0 |1 is obsolete| | --- Comment #123 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113486 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113486&action=edit Bug 24083: Add support for unseen_renewals This patch adds support for unseen renewals. Here we retrofit knowledge of unseen renewals and add the display of unseen renewal counts and warnings, in addition to adding the ability to specify a renewal as being "unseen". The functionality added here is goverened by the UnseenRenewals syspref. Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113076|0 |1 is obsolete| | --- Comment #124 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113487 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113487&action=edit Bug 24083: Add unit tests This patch adds unit tests for unseen renewals Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113077|0 |1 is obsolete| | --- Comment #125 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113488 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113488&action=edit Bug 24083: (follow-up) Fix params to AddRenewal The merging of Bug 23051 has added a paramter that can be passed to C4::AddRenewal. This bug does also, so the offset of this bug's new paramter was wrong. This patch fixes it. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113078|0 |1 is obsolete| | --- Comment #126 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113489 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113489&action=edit Bug 24083: (follow-up) Respond to QA feedback This patch implements changes requested by Katrin in QA feedback (comment #38): - Fix QA script failures - Fix alter table column order mismatch - Use new convention for JS strings - Fix terminology Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113079|0 |1 is obsolete| | --- Comment #127 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113490 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113490&action=edit Bug 24083: (follow-up) Include SelfCheckInModule As highlighted by Katrin, the selfcheckin module was not aware of this work. This commits gives it awareness of the too_unseen renew error and the "seen" argument that can be passed to AddRenewal Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113080|0 |1 is obsolete| | --- Comment #128 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113491 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113491&action=edit Bug 24083: (follow-up) Squashed follow ups This squashed commit fixes: - a small error in the checkouts related JS - GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. - Some changes in issue.t had broken the tests for unseen renewals (the unseen tests were using variables that had been moved out of the tests' scope). - Also now using Koha::CirculationRules::set_rules to set circ rules rather than using SQL queries. - Fixed expected number of return values from GetRenewCount - Moved unseen tests in issue.t to the bottom of the file to remove the risk of interference with other test circ rules. - There was a real mess in C4/Circulation.pm due to a bad rebase back in February. Frankly it's a wonder anything worked at all. This commit fixes that problem and reinstates the correct patch for C4/Circulation.pm - Somehow I'd never noticed this before but the columns in smart-rules.tt were misaligned when UnseenRenewals was turned off. This was due to the display of a <td> not being conditional when it should have been. This is now fixed. - This commit also fixes items 1 & 2 descibed by Katrin in comment #74 -> comment #76. - Fixed missing check for too_unseen in opac-user.tt, this test did used to exist but got lost during sizeable rebase a few weeks ago :-( - Added test for too_unseen to all AUTO_RENEWAL notice templates apart from de-DE (as previously requested by Katrin) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113314|0 |1 is obsolete| | --- Comment #129 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113492 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113492&action=edit Bug 24083: Delete the new rule when needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <andrew.isherwood@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113315|0 |1 is obsolete| | --- Comment #130 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113493 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113493&action=edit Bug 24083: Swap the column for "Unlimited" handling -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #131 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113494 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113494&action=edit Bug 24083: (follow-up) Make requested changes This commit makes the changes requested in comment #120 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #132 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #120) Hi Jonathan
Cannot renew:
E Street shuffle : ( BC_1 ) has been renewed the maximum number of consecutive times without being seen by the library )
Can you confirm it's a bug?
I think you've missed the step in the test plan that says "Select the "Override renewal restrictions" checkbox" with this enabled, you will have the ability to override the restriction via a "Override limit and renew button"
3. If I am understanding correctly, the AddRenewal call in sco-main.pl always has $seen set to 1. Maybe we should then make it hardcoded in the controller (ie. no need to have the template var)
Good point, now changed
4. It seems that the too_unseen error should be handled in misc/cronjobs/automatic_renewals.pl Don't you think?
Good point, now added
It can still be part of 20.11 if I get answers/follow-ups before Wednesday.
Sorry, I somehow missed the email for this bug until this morning, hence my reply today! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #133 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Andrew Isherwood from comment #132)
(In reply to Jonathan Druart from comment #120)
Hi Jonathan
Cannot renew:
E Street shuffle : ( BC_1 ) has been renewed the maximum number of consecutive times without being seen by the library )
Can you confirm it's a bug?
I think you've missed the step in the test plan that says "Select the "Override renewal restrictions" checkbox" with this enabled, you will have the ability to override the restriction via a "Override limit and renew button"
Right, I missed that!
4. It seems that the too_unseen error should be handled in misc/cronjobs/automatic_renewals.pl Don't you think?
Good point, now added
But then, if we decide to send the notice, the AUTO_RENEWALS template will need to be adjust. Otherwise the notice will be generated without a correct content. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #134 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #133)
4. It seems that the too_unseen error should be handled in misc/cronjobs/automatic_renewals.pl Don't you think?
Good point, now added
But then, if we decide to send the notice, the AUTO_RENEWALS template will need to be adjust. Otherwise the notice will be generated without a correct content.
too_unseen is catered for in the AUTO_RENEWALS sample notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |20.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #135 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 20.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed --- Comment #136 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed but more work needed: 1.
4. It seems that the too_unseen error should be handled in misc/cronjobs/automatic_renewals.pl Don't you think?
Good point, now added
But then, if we decide to send the notice, the AUTO_RENEWALS template will need to be adjust. Otherwise the notice will be generated without a correct content. 2. The insert from the upgrade process is not correct. The rule_value is not passed. But even if passed it's not idempotent (ie. the row in inserted several times if run several times). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #137 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- 3. We have 2 failing tests $ prove t/db_dependent/api/v1/checkouts.t t/db_dependent/api/v1/checkouts.t .. 7/93 # Failed test 'exact match for JSON Pointer ""' # at t/db_dependent/api/v1/checkouts.t line 198. # Structures begin differing at: # $got->{unseen_renewals} = '0' # $expected->{unseen_renewals} = Does not exist t/db_dependent/api/v1/checkouts.t .. 84/93 # Failed test 'exact match for JSON Pointer ""' # at t/db_dependent/api/v1/checkouts.t line 217. # Structures begin differing at: # $got->{unseen_renewals} = '0' # $expected->{unseen_renewals} = Does not exist # Looks like you failed 2 tests of 93. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #138 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #136)
2. The insert from the upgrade process is not correct. The rule_value is not passed. But even if passed it's not idempotent (ie. the row in inserted several times if run several times).
Hi Jonathan - thanks for that. I'm afraid I'm not sure what you mean here. Are you talking about the circulation rule DB upgrade. As far as I can see it works and is idempotent. This makes me think you're talking about something else. Any chance you could clarify please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #139 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113546 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113546&action=edit Bug 24083: (QA follow-up) Fix failing tests This commit fixes the failing tests mentioned by Jonathan in comment -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #140 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Andrew Isherwood from comment #138)
(In reply to Jonathan Druart from comment #136)
2. The insert from the upgrade process is not correct. The rule_value is not passed. But even if passed it's not idempotent (ie. the row in inserted several times if run several times).
Hi Jonathan - thanks for that. I'm afraid I'm not sure what you mean here. Are you talking about the circulation rule DB upgrade. As far as I can see it works and is idempotent. This makes me think you're talking about something else. Any chance you could clarify please?
No it's not: MySQL [koha_kohadev]> select count(*) from circulation_rules; +----------+ | count(*) | +----------+ | 26 | +----------+ 1 row in set (0.02 sec) MySQL [koha_kohadev]> INSERT IGNORE INTO circulation_rules (rule_name, rule_value) VALUES ('unseen_renewals_allowed', ''); Query OK, 1 row affected (0.02 sec) MySQL [koha_kohadev]> INSERT IGNORE INTO circulation_rules (rule_name, rule_value) VALUES ('unseen_renewals_allowed', ''); Query OK, 1 row affected (0.01 sec) MySQL [koha_kohadev]> select count(*) from circulation_rules; +----------+ | count(*) | +----------+ | 28 | +----------+ 1 row in set (0.01 sec) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #141 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113556 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113556&action=edit Bug 24083: (QA follow-up) Fix DB upgrade This commit makes the addition of the 'unseen_renewals_allowed' circulation rule idempotent, as highlighted by Jonathan in comment #140 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #142 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #140)
(In reply to Andrew Isherwood from comment #138)
(In reply to Jonathan Druart from comment #136)
2. The insert from the upgrade process is not correct. The rule_value is not passed. But even if passed it's not idempotent (ie. the row in inserted several times if run several times).
Hi Jonathan - thanks for that. I'm afraid I'm not sure what you mean here. Are you talking about the circulation rule DB upgrade. As far as I can see it works and is idempotent. This makes me think you're talking about something else. Any chance you could clarify please?
No it's not:
MySQL [koha_kohadev]> select count(*) from circulation_rules; +----------+ | count(*) | +----------+ | 26 | +----------+ 1 row in set (0.02 sec)
MySQL [koha_kohadev]> INSERT IGNORE INTO circulation_rules (rule_name, rule_value) VALUES ('unseen_renewals_allowed', ''); Query OK, 1 row affected (0.02 sec)
MySQL [koha_kohadev]> INSERT IGNORE INTO circulation_rules (rule_name, rule_value) VALUES ('unseen_renewals_allowed', ''); Query OK, 1 row affected (0.01 sec)
MySQL [koha_kohadev]> select count(*) from circulation_rules; +----------+ | count(*) | +----------+ | 28 | +----------+ 1 row in set (0.01 sec)
Aha, you're right! Now fixed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #143 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- As an aside, while looking through updatedatabase.pl for how this is usually handled in DB upgrades, I noticed the upgrade in Bug 14866 has the same problemhttps://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112225&action=diff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #144 from Andrew Isherwood <andrew.isherwood@ptfs-europe.com> --- Created attachment 113557 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113557&action=edit Bug 24083: (QA follow-up) Fix for previous It helps if you don't commit commented out code... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This new feature allows a release notes| |library to uniquely track | |renewals where the item has | |been present distinctly | |from those where the item | |may not have been present. | | | |Additionally, this allows | |the library can set their | |circulation rules to | |require regular 'seen' | |renewals and thus prevent | |patrons from continually | |renewing a item which may | |actually have been lost. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This new feature allows a |This new feature allows a release notes|library to uniquely track |library to uniquely track |renewals where the item has |renewals where the item has |been present distinctly |been present distinctly |from those where the item |from those where the item |may not have been present. |may not have been present. | | |Additionally, this allows |Additionally, this allows |the library can set their |the library to set their |circulation rules to |circulation rules to |require regular 'seen' |require regular 'seen' |renewals and thus prevent |renewals and thus prevent |patrons from continually |patrons from continually |renewing a item which may |renewing a item which may |actually have been lost. |actually have been lost. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This new feature allows a |This new feature allows a release notes|library to uniquely track |library to uniquely track |renewals where the item has |renewals where the item has |been present distinctly |been present distinctly |from those where the item |from those where the item |may not have been present. |may not have been present. | | |Additionally, this allows |Additionally, this allows |the library to set their |the library to set their |circulation rules to |circulation rules to |require regular 'seen' |require regular 'seen' |renewals and thus prevent |renewals and thus prevent |patrons from continually |patrons from continually |renewing a item which may |renewing an item which may |actually have been lost. |actually have been lost. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This new feature allows a |This new feature allows the release notes|library to uniquely track |library to keep track of |renewals where the item has |how many times an item has |been present distinctly |been renewed but not |from those where the item |actually seen by the |may not have been present. |library, typically through | |renewing online. |Additionally, this allows | |the library to set their |Additionally, this allows |circulation rules to |the library to set their |require regular 'seen' |circulation rules to |renewals and thus prevent |require regular 'seen' |patrons from continually |renewals and thus prevent |renewing an item which may |patrons from continually |actually have been lost. |renewing an item which may | |actually have been lost. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #145 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Last patches squashed and pushed, thanks Andrew! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #146 from Lucas Gass <lucas@bywatersolutions.com> --- enhancement will not be backported to 20.05.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #147 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 113814 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113814&action=edit Bug 24083: (follow-up) Assign renewals remaining string to content -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 --- Comment #148 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Nick Clemens from comment #147)
Created attachment 113814 [details] [review] Bug 24083: (follow-up) Assign renewals remaining string to content
Pushed to master for 20.11 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com --- Comment #149 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Enhancement, not backported to 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29021 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29021 [Bug 29021] Automatic renewal due to RenewAccruingItemWhenPaid should not be considered Seen -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29022 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29022 [Bug 29022] Allow choice of whether or not to reset Unseen renewal count on Seen renewal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29023 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29023 [Bug 29023] Allow local definition of seen/unseen for various renewal methods -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29024 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29024 [Bug 29024] Renewals performed via web-based self-check should be Unseen -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29050 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29050 [Bug 29050] Add punctuation in Unseen Renewals message -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29051 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29051 [Bug 29051] Seen renewal methods incorrectly blocked -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Manual-updated -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24083 Andrew Isherwood <bugzilla@warmlight.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugzilla@warmlight.co.uk |koha-bugs@lists.koha-commun | |ity.org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org