@@ -15,11 +15,11 @@ def card_files(collection, term)
1515 'value' => subset . pluck ( :id ) . uniq . count ,
1616 'verb' => 'has' ,
1717 'label' => 'files attached' ,
18- 'note' => 'Only theses with a status of "Not ready for publication" and "Publication review" will be visible ' \
18+ 'note' => 'Only theses with a status of "Not ready for publication" and "Publication review" will be visible ' \
1919 'in the processing queue.' ,
2020 'link' => {
2121 'url' => url_helpers . thesis_select_path ( graduation : term ) ,
22- 'text' => "See #{ subset . where ( 'publication_status != ?' , 'Published' ) . pluck ( :id ) . uniq . count } unpublished " \
22+ 'text' => "See #{ subset . where ( 'publication_status != ?' , 'Published' ) . pluck ( :id ) . uniq . count } unpublished " \
2323 'theses in processing queue'
2424 }
2525 }
@@ -235,8 +235,8 @@ def data_authors_not_graduated
235235 row_data = { }
236236 terms = Thesis . all . pluck ( :grad_date ) . uniq . sort
237237 terms . each do |term |
238- row_data [ term ] = Thesis . with_files . where ( 'grad_date = ?' , term ) . includes ( authors : :user ) . includes ( :departments )
239- . reject ( &:authors_graduated? ) . uniq . count
238+ row_data [ term ] =
239+ Thesis . with_files . where ( 'grad_date = ?' , term ) . includes ( [ :authors ] ) . reject ( &:authors_graduated? ) . uniq . count
240240 end
241241 {
242242 label : 'Authors not graduated' ,
@@ -373,7 +373,7 @@ def table_copyright(collection)
373373 table_populate_defaults result , Copyright . pluck ( :holder )
374374 {
375375 'title' => 'Thesis counts by copyright' ,
376- 'summary' => 'This table presents a summary of thesis records by their copyright status. The second column ' \
376+ 'summary' => 'This table presents a summary of thesis records by their copyright status. The second column ' \
377377 'names the copyright holder, while the first column shows how many records have that copyright.' ,
378378 'column' => 'Copyright holder' ,
379379 'data' => result
@@ -385,10 +385,10 @@ def table_department(collection)
385385 table_populate_defaults result , Department . pluck ( :name_dw )
386386 {
387387 'title' => 'Thesis counts by department' ,
388- 'summary' => 'This table presents a summary of which departments have how many theses for the selected term. ' \
389- 'The second column shows the programs at MIT which grant degrees, while the first column shows how ' \
390- 'many theses have come from that program during this period.' ,
391- 'note' => 'Please note: total theses indicated by this table may be greater than the overall number of theses ' \
388+ 'summary' => 'This table presents a summary of which departments have how many theses for the selected term. ' \
389+ 'The second column shows the programs at MIT which grant degrees, while the first column shows ' \
390+ 'how many theses have come from that program during this period.' ,
391+ 'note' => 'Please note: total theses indicated by this table may be greater than the overall number of theses ' \
392392 'because some theses have multiple departments.' ,
393393 'column' => 'Department' ,
394394 'data' => result
@@ -407,10 +407,10 @@ def table_license(collection)
407407 table_populate_defaults result , License . pluck ( :display_description )
408408 {
409409 'title' => 'Thesis counts by Creative Commons license' ,
410- 'summary' => 'This table presents a summary of which Creative Commons license has been selected by the author, ' \
411- 'for those theses for which the author retains copyright. The second column gives the specific CC ' \
410+ 'summary' => 'This table presents a summary of which Creative Commons license has been selected by the author, ' \
411+ 'for those theses for which the author retains copyright. The second column gives the specific CC ' \
412412 'license selected, while the first column shows how many theses have selected it.' ,
413- 'note' => 'Please note: theses for which the author does not claim copyright will have "Undefined" in this ' \
413+ 'note' => 'Please note: theses for which the author does not claim copyright will have "Undefined" in this ' \
414414 'field.' ,
415415 'column' => 'License' ,
416416 'data' => result
@@ -438,7 +438,7 @@ def table_status(collection)
438438 table_populate_defaults result , Thesis . publication_statuses
439439 {
440440 'title' => 'Thesis counts by publication status' ,
441- 'summary' => 'This table presents a summary of thesis records by their publication status. The second column ' \
441+ 'summary' => 'This table presents a summary of thesis records by their publication status. The second column ' \
442442 'gives the status, while the first column gives how many records have that status.' ,
443443 'column' => 'Publication status' ,
444444 'data' => result
0 commit comments