Support for wishlist #45
Replies: 2 comments
-
We're currently testing this feature across a rather larger set of libraries and patrons. One area where we're still hesitating is how we should handle unauthenticated patrons:
For now we've decided to hide the link but this is not consistent with other features (such as the ability to see a borrow button, even if you're not authenticated). |
Beta Was this translation helpful? Give feedback.
-
Just explicitly saying that I think this makes sense as a low-fi wishlist solution. I can see how the And it sounds like the semantics of |
Beta Was this translation helpful? Give feedback.
-
For many catalogs where users need to buy/subscribe/borrow content, having native support for a wishlist in OPDS would help users to keep track of what they'd like to a eventually acquire.
In order to implement a wishlist in OPDS 2.0, this proposal introduces two new
rel
value as well as a new property.The new
rel
values would be:http://opds-spec.org/wishlist
to identify the wishlist itselfhttp://opds-spec.org/wishlist/item
to identify interactions with a specific wishlist itemThe wishlist itself could be discovered either in:
links
links
Here's an example of what a wishlist link would look like:
The wishlist feed itself is a normal OPDS feed that will contain
publications
and/orgroups
. It can be paginated and could even provide context-specific search in the wishlist.To add/remove a publication from the wishlist, we would rely on a link included in each publication object:
Since this is user-specific, this link would strictly show up under two potential conditions:
To indicate whether an item is already present in the wishlist, the link would include a new
present
hint inproperties
where the value is a boolean.This links would allow two different interactions:
PUT
requestDELETE
requestIn both cases, a successful interaction would return a
204 No Content
status code with an empty payload.I believe that
http://opds-spec.org/wishlist
could be part of the main specification moving forward (OPDS 2.0+) while the interactions could be covered in a separate document.Any feedback is of course welcome. cc @leonardr
Beta Was this translation helpful? Give feedback.
All reactions