-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for Blacklight 7 #56
Comments
Yes, I think you're right Adam, it doesn't look done. I think you want to set the See also: |
Alternatively, you could do something like: e.g.:
|
If you have a fixed SearchService class you use like:
Then the Blacklight::AccessControls SearchService customization is the only one you can easily have in your app. What if you need other ones too? (I have done a local one myself) So recommend maybe additionally providing an AS::Concern you can mix into your own local SearchService class to get blacklight-access_controls behavior, which can be in addition to other search service customizations, local or from other gems? CatalogController.search_service_class = MySearchService
class MySearchService < Blacklight::SearchService
include Blacklight::AccessControls::SearchServiceBehavior
include Whatever::SomethingElse
end I can't think of any other way to allow search service customizations from both b-ac and maybe other places? Possibly useful things I discovered for context: |
That seems a reasonable approach to take with a generator |
Incidentally, these were the only changes I had to make to get this working in BL7: psu-libraries/cho@331b95f#diff-a3a81055b647b2fd690ac3b4d2939899R239 Enforcing restrictions on show actions works as-is. |
Does BL-AC support BL 7? From what I can tell, it's being testing, but adding to an existing app doesn't seem to quite work. This still needs to be done:
https://github.com/projectblacklight/blacklight-access_controls/blob/master/lib/blacklight/access_controls/catalog.rb#L19
I might have some time to dedicate to this if anyone can give a status update in terms of what needs to be done, and suggestions as to how to solve those. Do we need separate generators for the different versions?
The text was updated successfully, but these errors were encountered: