-
Notifications
You must be signed in to change notification settings - Fork 5
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
Catch all collection #403
Catch all collection #403
Conversation
|
||
!= ' ' | ||
%span.static-btn | ||
%b= link_to 'Refresh uncollected works', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporary link to call service to refresh uncollected works collection. I did not bothered about I18n, as it is a temporary solution.
@@ -37,5 +37,5 @@ | |||
- else | |||
.headline-3-v02 | |||
= t(:text) | |||
: | |||
\: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without escaping this line caused error.
926b8e3
to
9f0f076
Compare
9f0f076
to
3df1a8f
Compare
3df1a8f
to
324e7fc
Compare
One of prerequisites of creating root collection functionality is to implement 'catch all' colleciton for all uncollected works per authority.
This PR adds new collection type 'uncollected', and adds authorities.uncollected_works_collection_id column to link those collections with authorities. So each authority can have own collection.
There is a new service RefreshUncollectedWorksCollection, used to create or update uncollected collection per authority.
For test purpose I've added a new link 'Refresh uncollected works collection' to Author's TOC page, which calls this service. Later we can remove it and made service to be run automatically on certain events. This service does two things:
NOTE: I've created new AuthoritiesController in admin namespace for this purpose. I propose to move all non-public actions related to authorities theres instead of AuthorsController (in future we can make AuthorsController to be responsible for public functionality, and admin/authorities controller to be responsible for editor functions).