cern-sis / Library-Notifications-Service

0 stars 1 forks source link

Library newsletter notifications service #1

Open ParthS007 opened 1 year ago

ParthS007 commented 1 year ago

Aim:

Create custom hooks to run in specific time(e.g, in a week) and update the users subscribed to that notification for any new updates if any.

What is provided:

  1. Two types => Ebooks and Paper books

  2. Certain types and categories/subject for books and the queries for the subjects could be:

  3. ILS API - for example: https://catalogue.library.cern/api/literature/

Expected:

The task would be to create a query for every category/subject/types and populate a list of e books/paper books available and trigger the notifications via api with the payload from the query.

Expected use case:

Two possible use cases examples:

  1. We recently catalogued this book: https://catalogue.library.cern/backoffice/documents/b2f4x-gx545 with classification 530.145 and added the physical copy when the book arrived on 6 April 2023. Would it possible e.g. to alert the subscribers of our newsletter who work in EP/TH of the availability of the book?
  2. We recently added e-books on engineering/technology: https://catalogue.library.cern/search?q=_created%3A%5B2023-03-01%20TO%202023-03-31%5D%20AND%20%28subjects.value%3A62%2A%29%20AND%20publication_year%3A%5B2018%20TO%202023%5D&l=grid&order=asc&p=1&s=15&sort=bestmatch Would it be possible to alert e.g. subscribers who work in EN/TE?
ParthS007 commented 1 year ago

Steps