folio-recall-move

1.4.0 • Public • Published

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.

/folio-recall-move/

    Package Sidebar

    Install

    npm i folio-recall-move

    Weekly Downloads

    0

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    11.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • larkov