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

show OPACMySummaryNote warning only for relevant patrons #15

Closed
phette23 opened this issue Dec 11, 2019 · 0 comments
Closed

show OPACMySummaryNote warning only for relevant patrons #15

phette23 opened this issue Dec 11, 2019 · 0 comments

Comments

@phette23
Copy link
Member

Right now we use OPACMySummaryNote to display a notice towards the end of the semester about student accounts expiring. It displays for everyone even though it's only relevant for Undergraduate and Grad Student patron types. Ideally, we would only show it for relevant types.

There are a few use cases where knowing the patron type of the logged in user would help us deliver more appropriate messages. It appears this isn't possible without further work. My first idea is to make a public report that accepts a borrowernumber parameter and returns the patron category. That seems sufficiently secure (passing usernames or real names would not be).

Note that we're using a hack in catalog-js/opac-user.js to show this message right now because Koha bug 23968 broke the OPACMySummaryNote display. It will be fixed in 19.11 and then we can remove our JS hack.

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

No branches or pull requests

1 participant