LP1902937: Quipu Online Account Renewal
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 27 Dec 2022 18:05:33 +0000 (13:05 -0500)
committerJason Stephenson <jason@sigio.com>
Thu, 6 Apr 2023 18:32:30 +0000 (14:32 -0400)
commita3705d8610538599274716c27f37d20ed741451c
tree2fb4c79061d85b4da2b4e7bc6e883acd582bcb19
parentd032dbdb076037a422e5d47c6bed496557dead27
LP1902937: Quipu Online Account Renewal

Online Renewal - Squashed from several working branch commits.

- Creates placeholders for new English & Spanish pages
- Adds ability for those pages to load
- Create div on My Account main page & prefs page to hold renewal message or button
- Adds code to check whether or not patron is eligible to renew online or not:
* patron has not already had one temporary renewal
* patron account is still active
* patron account expiration date is no more than 30 days in the future
* patron account is not barred
* patron account does not have a staff-added blocking alert
* patron does not owe any fines
* patron is not in collections (even if patron pays fines, staff still need
to remove collections note)
* patron permission group allow e-renewal
* patron has a valid billing address
* patron has a valid day phone

Add standing penalty

The ID of the standing penalty has to be under 100 to prevent
staff from manually adding it to patron accounts through the
client interface.

Add Standing Penalty for temporary renewal.

Add temporay renewal flag to Quipu response.

Create new API instead of piggybacking on vital_stats:
open-ils.actor.user.opac.renewal

Add column to permission.grp_tree to allow e-renew.

See & update permission group setting through staff client.

Look up permission groups by name or by e-renewal eligibility flag.

Commit message edited by Jason Stephenson - 20230127

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
15 files changed:
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/permission.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm
Open-ILS/src/sql/Pg/006.schema.permissions.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.erenew_column_pgt.sql [new file with mode: 0644]
Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2
Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2
Open-ILS/src/templates-bootstrap/opac/renew-account-sp.tt2 [new file with mode: 0644]
Open-ILS/src/templates-bootstrap/opac/renew-account.tt2 [new file with mode: 0644]