-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes the files view to include `PreIngestWorks`. The files are grouped by their `PreIngestWork`, which includes the `deduplication_key` and `date`. This also includes the `title`, which is looked up in solr via the `deduplication_key`. If this isn't present for a work it means that the work has not been indexed yet so a message saying that is displayed instead of the title. Additional attributes from solr could be added in the future. Connected to https://github.com/curationexperts/in-house/issues/426
- Loading branch information
Showing
6 changed files
with
76 additions
and
20 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
20 changes: 20 additions & 0 deletions
20
app/views/zizia/csv_import_details/_pre_ingest_files_table.html.erb
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,20 @@ | ||
<table id="files-table" class="dataTable display responsive nowrap table table-striped works-list" style="width:100%"> | ||
<tr> | ||
<th>Filename</th> | ||
<th>Size</th> | ||
<th>Row Number</th> | ||
</tr> | ||
<% pre_ingest_work.pre_ingest_files.each do |pre_ingest_file| %> | ||
<tr> | ||
<td> | ||
<%= pre_ingest_file.basename %> | ||
</td> | ||
<td> | ||
<%= number_to_human_size(pre_ingest_file.size) %> | ||
</td> | ||
<td> | ||
<%= pre_ingest_file.row_number %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</table> |
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