-
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 (#5999)
* 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 * Filter entities query by state as well * 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 * Remove search form * Fix rounding error when determining page size * Switch to double star --------- Co-authored-by: Rob Kaufman <[email protected]> Co-authored-by: Chris Colvard <[email protected]> Co-authored-by: April Rieger <[email protected]>
- Loading branch information
1 parent
49d6b9c
commit c7dad8b
Showing
10 changed files
with
280 additions
and
94 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
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="nav-item"'.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="nav-item"'.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.