These are scripts used to manage patron records in Alma.
Requirements: Python 2.7
- Retrieve CSV export of user data from the Banner SFTP server.
- Retrieve the list of local ZIP codes from the library fileserver.
- Retrieve the CSV file that maps Alma department codes to department names.
- Use the Alma User API to expire accounts based on results in Users to Expire analysis.
- Generate Alma XML files, maximum of 20000 records each, using a template.
- Generate a list of users with statistical groups or account types that need changed.
- Use the Alma User API to reassign groups in the previous step. (disabled for now)
- Use the Alma User API to reassign user groups from expired based on the results in Users to Unexpire analysis.
- Create a zip archive of the XML files and transfer it to the library SFTP server for retrieval by Alma.
- Send a notice of any new department codes that appeared in the Banner export.
- Send a report of the changes made and errors produced by this process.
-
Users to Expire
User Group Code is equal to / is in expired
AND
Expiry Date is less than or equal to CURDATE()
AND
Identifier Type is equal to / is in University ID -
Users to Unexpire
User Group Code is equal to / is in expired
AND
Expiry Date is greater than CURDATE()
AND
Identifier Type is equal to / is in University ID
./expire-accounts.sh;
./run-patronload.sh;
./unexpire-accounts.sh;
./clean-up.sh
-
The deployment process is based on Fabric. Send the role to the process using the '-R' option.
-
Deploy to the production server (libsrv9)
fab -R production deploy
-
Deploy to the testing server (deneb)
fab -R testing deploy