LP1902937: Make the Quipu Integration Code More Generic
authorJason Stephenson <jason@sigio.com>
Fri, 10 Sep 2021 16:56:16 +0000 (12:56 -0400)
committerJason Stephenson <jason@sigio.com>
Thu, 6 Apr 2023 18:32:29 +0000 (14:32 -0400)
commit9e4c995332a050aa5efa3b65dec56585c69526c6
treea39d95ede24a3a1839ad0a4878537e26401b8ba7
parentff34761bf5eced2f544f751e0eca3971f24cee1a
LP1902937: Make the Quipu Integration Code More Generic

Rename quipu upgrade script.

Enable ecard form in EGCatLoader.

Add the calculate_luhn_checkdigit function to calculate a barcode
check digit using the Luhn algorithm to OpenILS::Applicaiton::AppUtils
because it could be useful for more than just generating barcodes for
the eCard integration.  We may also need more than one check digit
algorithm in the future.

Replace the KCLS specific registration form with one that is more generic.

Add new settings.

Add the generate_barcode utility function.

Modify Ecard login_vendor to use org unit settings

Change the login field value to FALSE so it can't be used to login.

Add evergreen.upgrade_deps_block_check to upgrade script

Add Ecard registration link to OPAC footer

Make voter registration field optional in Ecard.pm because not
everyone has or requires this survey.  It is PINES-specific.

Do not set actor.usr.name_keywords in Ecard.pm

Make day_phone optional.

Make in_house_registration optional.

Return the user's expiration date, in ISO format (YYYY-MM-DD), as the
"expiration_date" field in a successful response to Quipu.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-ecard-integration.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.quipu-ecard-integration.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/ecard/form.tt2
Open-ILS/src/templates/opac/parts/footer.tt2