GithubHelp home page GithubHelp logo

clhennessey / alma-change-external-user-notes-from-file Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.34 MB

Convert Alma user notes from external to internal all at once from a file. Presented at IGeLU Developers Day conference September 14, 2020

Python 100.00%
exlibris ex-libris users user user-notes alma rest-api internal external

alma-change-external-user-notes-from-file's Introduction

alma-change-external-user-notes-from-file

Convert Alma user notes from external to internal all at once from a file. Presented at IGeLU Developers Day annual conference September 14, 2020

Convert Alma user notes from external to internal

Conference sessions & descriptions: https://igelu.org/conferences/2020-digital-conference/igelu-2020-registration-pages/

Link directly to session description: https://proposalspace.com/p/29242/s PPT slides from presentation: https://github.com/clhennessey/alma-change-external-user-notes-from-file/blob/master/Can%20we%20fix%20it%20user%20notes%20Hennessey%20IGeLU%202020%20FINAL.zip Video from presentation: https://www.youtube.com/watch?v=lqyxJ8uEg0s

Alma user notes cannot be deleted or changed if they are marked as "external".

This is a Python program to change the notes from external to internal from a list of IDs in a file so you can delete or change them inside of Alma or with other API calls.

Change "strings_to_search" variable to whatever strings you want to match on in the user note text, and those particular external notes will be turned into internal notes.

Replace api_key in the config.ini file with your API key that allows: User-Production-Read/Write. Replace na in the config.ini file with your region (na, eu, ca, cn, ap).

Include a list of primary IDs for the input text file, as shown below. Errors with reading the IDs will be written to the error.txt file in the same directory.

Known errors: 1. if you replace a user record that has associated roles that did not require a service unit before but need one now, you will get errors when re-writing the user record to Alma. Edit the user record roles in Alma until the user record allows you to re-rewrite it. Good candidates to check for a missing service unit: Work Order Operator, Receiving Operator, Receiving Operator Limited 2. The file name needs to be in the same directory where you are running the code

This was part of a longer program that does many things to an individual Alma user record, hence the overkill on the structure of the program. There are plenty of optional print statements in the program so you can check your user record changes while you use the program.

If you would like a version of the program without an input file to just work on one record at a time, see my other program at: https://github.com/clhennessey/alma-change-external-user-notes

This program is based on this code presented at ELUNA Developer's Day Workshop by Jeremy Hobbs, linked here: https://github.com/MrJeremyHobbs/ELUNA-2019-Dev-Days-Alma-Course

Requirements: Python 3.x, modules: requests, xmltodict

Questions, comments, changes? Contact Christina Hennessey, Systems Librarian at California State University, Northridge [email protected]

Program with text file name entered

Program completed

Program input file

alma-change-external-user-notes-from-file's People

Contributors

clhennessey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.