diff --git a/api/authenticator.py b/api/authenticator.py index 1b2faf7ee..c9d55c00f 100644 --- a/api/authenticator.py +++ b/api/authenticator.py @@ -697,6 +697,9 @@ def create_authentication_document(self) -> str: loans_url = url_for( "active_loans", _external=True, library_short_name=self.library_short_name ) + selected_books_url = url_for( + "selected_books", _external=True, library_short_name=self.library_short_name + ) profile_url = url_for( "patron_profile", _external=True, library_short_name=self.library_short_name ) @@ -711,6 +714,13 @@ def create_authentication_document(self) -> str: type=OPDSFeed.ACQUISITION_FEED_TYPE, ) ) + links.append( + dict( + rel="http://opds-spec.org/shelf", + href=selected_books_url, + type=OPDSFeed.ACQUISITION_FEED_TYPE, + ) + ) links.append( dict( rel=ProfileController.LINK_RELATION,