1.4.0 • Published 2 years ago

folio-recall-move v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Move FOLIO recalls to available item

Utility that fetches active recalls that have status 'Open - Not yet filled' and loops over them and checks if there are linked instances that are available. If a book is available at the patrons prefered checkout point it will pick that otherwise first available. Recalls made by SKIPBARCODE are not processed. If the utility finds recalls that can be moved it will mail the result to users set in MAILTO. If LIVEMOVE is set to TRUE the utility makes the move.

Prerequisities

You need to have node and npm installed on the machine.

Installation

Run npm install -g folio-recall-move on the machine.

Setup

Create a bash script as below with your values.

#!/bin/bash
export FOLIO_USER=diku_admin
export FOLIO_PASSWORD=admin
export OKAPI_URL=https://folio-honeysuckle-okapi.dev.folio.org
export OKAPI_TENANT=diku
export PERMANENTLOANTYPEID=2b94c631-fca9-4892-a730-03ee529ffe27
export LIVEMOVE=FALSE
export SKIPBARCODE=123123125
export MAILTO="user@example.com, user2@example.com"
export RECALLURL=https://folio-honeysuckle.dev.folio.org/requests/view/
export SMTP_HOST=your.smtp.host
export SMTP_USER=smtplogin
export SMTP_PASSWORD=smtppassword
folio-recall-move

Set up a cronjob that peridically runs it in your prefered interval.

1.4.0

2 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago