wrlc / alma-fines Goto Github PK
View Code? Open in Web Editor NEWweb application to enable circ staff to accept fines between Alma IZs
web application to enable circ staff to accept fines between Alma IZs
use printable area html to keep it simple for now. Could generate a pdf in future.
We need to verify that the fee owner is the actual owner if the item, not the scf IZ.
depends on #20
List all data that needs to go into the alma transaction to create a reconciliation report below.
replace ALMA_INSTANCES with ALMA_INSTANCES_NEW format.
Shouldn't happen, but I managed to create one for myself on accident. Maybe just filter and don't display if balance is negative?
Don't say Bender library, say "american university"
Use gnunicorn or similar to run this app (nginx as proxy for production).
how to configure, run
May require changes to token issued at aladin-sp ... /issue.php
Write an "alma request" function to make all calls that returns a standard response on failure thats more useable than just 400. (include message).
Amounts should be formatted as $1.00 instead of 1.0.
Use aiohttp library instead of requests. It's performing OK now, but will be very slow when searching all 14 IZs
resources:
AIOHTTP docs: https://docs.aiohttp.org/en/stable/index.html
example: https://terriblecode.com/blog/asynchronous-http-requests-in-python/
So this can be more easily used by other consortia, need to be able to define the institutions in the consortium (currently hard-coded in templates/login.html) and the URL to send the user to login (currently hard-coded in static/js/frontend.js) to settings.py.
Also, need a setting in settings.py to turn on and off the backdoor login that is defined in fines_app.py.
Update README.md when these settings are implemented.
Should not be able to submit form w/lending + home library the same (that kind of find should never be handled in this app).
requested by @dongourley
Add textarea to each fee row pre-populated with total amount. Users can change the amount before submitting. Frontend.js will check this field when building payment queue. Also will need validation. Value must be between 0 and the total balance. (no overpaying or invalid amounts like negative numbers).
show_fines() should omit the user's home IZ when searching for fines (fines like that should never be paid through this app).
instead of selecting iz to look for fines in, search them all by default.
save in session?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.