-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hyrax-5933 - Review submission support paging (hyrax 3.x version) (#6000
) * Enable optional paging of scope_entities_for_the_user query * Allow scope_entities_for_the_user to filter by workflow state names * Switch workflows page over to using separate page requests for tabs. Restructure the response for workflow requests to mirror that of a blacklight response. Add method for getting total number of entities in workflow * Allow for filtering by title keywords * Rubocop * Fix test expectation * Add translations. * Use appropriate method name for v3 * Filter entities query by state as well * Adjust template for version 3 * Remove ability to query by title, since title is not available during the initial query to get entity ids * Pass paging parameters down to solr query * Sort review submission results by date submitted, so there is at least some sense to the ordering * Fix rounding error when determining page size * Remove search input * Rubocop * Change syntax for ruby 2.5 * Lock redlock to versions lower than 2, since that is causing problems * Update signature of method based on usage in flipflop 2.7.1
- Loading branch information
Showing
12 changed files
with
280 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<ul class="nav nav-tabs" id="my_nav" role="list"> | ||
<li<%= ' class="active"'.html_safe if @response.viewing_under_review? %>> | ||
<%= link_to t('hyrax.admin.workflows.index.tabs.under_review'), | ||
hyrax.admin_workflows_path(state: 'under-review'), class: "nav-link#{' active' if @response.viewing_under_review?}" %> | ||
</li> | ||
<li<%= ' class="active"'.html_safe if !@response.viewing_under_review? %>> | ||
<%= link_to t('hyrax.admin.workflows.index.tabs.published'), hyrax.admin_workflows_path(state: 'published'), class: "nav-link#{' active' if !@response.viewing_under_review?}" %> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.