GithubHelp home page GithubHelp logo

bediniupi / alma-loantransfer Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 32 KB

Bulk transfer loans from a user to another user with Alma Offline circulation

License: MIT License

Python 100.00%
alma library-automation university-of-pisa python3

alma-loantransfer's Introduction

Alma-LoanTransfer

Bulk loans transfer from a user to another user with Alma Offline circulation

Create one or more .dat files to upload in Alma Offline Circulation tool [2]

  • check if both users id exist in Alma
  • check if user_from has loans
  • create a .dat file for every loans libraries and circulation desks
  • every .dat file perfom items returns from user_from and loans to user_to, at the same date and time of initial loan (plus one minute for return and two minutes for reloan)
  • if loans are renewed a event error is possible trying to upload in offline circulation: since there is no possibility to obtain the last renew date the script can set the return/reloan date n days prior to due date
  • date and time in UTC format are automatically adjusted to the local time

Usage

command:

python loantransfer.py [user_id_from] [user_id_to]
python loantransfer.py [user_id_from] [user_id_to] -d 30

In Alma Circulation tool upload the .dat file/s selecting previously the correct library/circulation desk.

Installation

No installation needed, simply download loantransfer.py in a rw directory. In the ini-section add your institution Alma user API key and API server baseurl [3].

Prerequisites

  • Python 3.x with modules: requests, time, datetime, xml.etree, argparse
  • Alma Ex Libris
  • User API access and key

Authors

  • Nazzareno Bedini - University of Pisa

References

alma-loantransfer's People

Contributors

bediniupi avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.