-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom media fields #572
Comments
Thanks @Natkeeran I agree, we need to be able to add custom field data to media. I will make this my next priority. |
Following the pattern established for creating media track files, I'd like to propose that the CSV column headers for media fields in node
Within
|
Sounds good. |
One thing we need to account for is that the media type can vary within the CSV on a row by row basis, so therefore we'll need to validate that any required fields for each media type represented in the 'file' column are in the CSV. Also, I'm not sure how we should approach 'additional_files' media... or whether they are even I'm scope for this feature. |
Looks like we'll need to be careful not to stomp on work done in #373 - Media Track Files. |
The more I look into how we can handle with adding field data to files identified in the In fact, it might be worth considering replacing the way the current (Edit: if we use secondary tasks to create additional files, we can use cleaner columns headers in each media type's secondary CSV than I suggest above - they could probably be the same as ordinary node field headers currently are, just the human or machine field name.) |
Using a secondary task to create media track files might also make sense. |
"additional_files works with an add_media secondary task" can possibly streamline the logic!, and may help organize media info in another sheet. For example, if the user wants to provide a different title for the media etc. |
Yes, I like this separation of tasks better than overloading the primary node CSV. It's already deviating from what I consider to be an important Workbench design principle - you don't need to be a developer to use it. Also, since secondary tasks are just ordinary tasks, we could focus on adding custom fields to media in |
Here is an simple example of CSVs to illustrate how this would work. The node CSV is for a
Node CSV (primary task)
Media CSV (secondary task), for custom thumbnails with a custom (completely made up for this example) field on the media of "TN Source"
The secondary task that adds a custom thumbnail does the same thing as the current |
I think the order of development operations to accomplish this is:
We would retain the current |
Related issue - #144. |
Hi Mark - thanks for working on this! Looking forward to testing it. I have a question - will I be able to attach a file to a media using this method? (obv. presuming I have the file field on the media already) |
Yes, there will be no loss of current functionality. Now that the "additional_files" feature seems to be working fairly well, I don't see a need to deprecate it in the near/medium term. The new way of ingesting media will allow you to add custom fields to every media you ingest, so in that sense, it will expand existing functionality. |
Thanks Mark! |
Does "additional_files" allow a file to be attached to another media? Sorry if I'm asking obvious question - I went and re-read the section on that config in the docs and it seems like it works to add additional media to be connected to a node, but I didn't see anything about attaching a file to a media. Maybe it works the same? |
No, currently addtiional_files create media (one per additional file named in those columns), which are attached to the node described in the CSV. The only type of file that can be attached to another media is a track file. On rereading your last question it's clear that you want to attach a new file to an existing media. Is that correct? If so, we'll need to make workbench do that. New use case for me, other than attaching a track file to a media. Can you write up a structured use case so I can take this into account? |
Yes - I'll do that in a new issue. Thanks for the clarifications! |
Closing, I believe all of these issues have been addressed. If not, let me know. |
After reviewing the code, it seems that islandora workbench currently does not support ingesting custom/additional media fields. Various use cases exist where we need to add custom/additional media fields.
Further, it is much easier to use one main ingest sheet to ingest/update repository content. Thus, it would be easier if the custom media fields can be specified within the one main ingest sheet as well. For example, by specifying the media fields in the config or with a prefix.
We have the following specific use case in the starter site development. We need to specify the field_display_mode_for_viewer at the media level.
The text was updated successfully, but these errors were encountered: