Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A workflow Needs to be created to add a note to all New Bookshelf Items on a regular basis #308

Open
jeremythuff opened this issue Sep 29, 2023 · 2 comments · Fixed by #311, #312 or #313
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@jeremythuff
Copy link
Member

jeremythuff commented Sep 29, 2023

This workflow will need to run on a daily basis. It needs to identify every item at the location Evans nbs, and for each item it need to ensure that there is a Checkin note attached to it, instructing the Staff at the time of checkin to return the book to the Evans New Bookshelf.

The specific note type will be supplied by @jeremythuff as will the text of the note.

An example of adding notes to items through the API can be found here: https://github.com/TAMULib/folio-scripts/blob/main/add_item_note.js

@jeremythuff jeremythuff converted this from a draft issue Sep 29, 2023
@jeremythuff jeremythuff added spike enhancement New feature or request question Further information is requested and removed spike labels Sep 29, 2023
@kaladay
Copy link
Contributor

kaladay commented Oct 2, 2023

Can directly access the DB to retrieve the data.

There is a table in LDP folio_reporting.item_ext, with the column effective_location.

Check if notes already exist and if not then add the note.

This is expected to be a scheduled workflow rather than a manually triggered workflow.

nbs stands for "New Book Shelf".

The end goal is that this forces a popup to appear displaying the note on Check In.

see: https://s3.amazonaws.com/foliodocs/api/mod-inventory-storage/r/item-storage.html#item_storage_items_get
see: https://s3.amazonaws.com/foliodocs/api/mod-inventory-storage/r/item-storage.html#item_storage_items__itemid__get

@kaladay kaladay moved this from 👷 In Planning to 🏃 On Sprint in FOLIO Oct 5, 2023
@jeremythuff
Copy link
Member Author

jeremythuff commented Oct 9, 2023

This note needs to be added to the circulationNotes array on the item record. The properties of the circulationNote should be:

NoteType: Check in
Note: "Place on New Bookshelf"
staffOnly: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment