Skip to content

Commit

Permalink
Merge pull request #739 from MITLibraries/etd-373-filter-by-issues-found
Browse files Browse the repository at this point in the history
Adds an issues_found column to thesis queue
  • Loading branch information
matt-bernhardt authored Jul 13, 2021
2 parents 0cb6306 + cba93a5 commit 25e8948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/thesis/_select_thesis.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<%= user.display_name %><br>
<% end %>
</td>
<td><%= select_thesis.issues_found ? 'Yes' : 'No' %></td>
<td><%= select_thesis.publication_status %></td>
</tr>
5 changes: 3 additions & 2 deletions app/views/thesis/select.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<th scope="col">Degree date</th>
<th scope="col">Department(s)</th>
<th scope="col">Author(s)</th>
<th scope="col">Issues found</th>
<th scope="col">Status</th>
</tr>
</thead>
Expand All @@ -53,7 +54,7 @@ $(document).ready( function () {
});

// Populate filter buttons with found values for publication status
var terms = [...new Set( table.columns(4).data()[0] )];
var terms = [...new Set( table.columns(5).data()[0] )];
terms.forEach(element => {
document
.getElementById("status-list")
Expand All @@ -67,7 +68,7 @@ $(document).ready( function () {
var needle = $(this).data("filter");
$.fn.dataTable.ext.search.push(
function( settings, data, dataIndex ) {
return ( data[4] === needle || needle === "*" )
return ( data[5] === needle || needle === "*" )
? true
: false
}
Expand Down

0 comments on commit 25e8948

Please sign in to comment.