Giter VIP home page Giter VIP logo

Comments (15)

nugged avatar nugged commented on August 17, 2024

Let's do that. I will talk tomorrow (EEST work daytime Wednesday) with @EreMaijala to figure out who's part where can be.

from koha-plugin-rest-di.

EreMaijala avatar EreMaijala commented on August 17, 2024

@tomascohen That'd be great. I think some of the functionality may already be possible with x-koha-embed, but a lot isn't. However, I would use the opportunity to streamline some of the code. Particularly the biblio/item availability checks are quite complex. E.g. in most cases it would be enough to get one reason for something being unavailable, but currently you usually get all the ones that apply.

I think it might make sense to document what we really need and is missing from Koha at the moment, then see what's the most sensible way to accomplish that.

from koha-plugin-rest-di.

tomascohen avatar tomascohen commented on August 17, 2024

Yeah, my interest is particularly on adding such classes for checkoutability and holadability and routes for that.

from koha-plugin-rest-di.

EreMaijala avatar EreMaijala commented on August 17, 2024

I think that one way to proceed would be to describe what endpoints there would be and what they would return. For our use case it's important to be able to retrieve all relevant information for a biblio or an item with a single request. Otherwise there's easily too much overhead on each end.

Most of the logic around availability information is indeed about checkoutability and holadability, but item statuses are important as well, and there can be several relevant ones at the same time (e.g. "Checked out" and "On hold").

Have you already thought about possible routes or would you like me to draft something for a base?

from koha-plugin-rest-di.

Related Issues (1)

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.