PECE-project / drupal-pece

PECE development repository
GNU General Public License v3.0
20 stars 28 forks source link

Visitors can see and filter the format of audio, image, and video artifacts without the contributor having to define it #476

Open mlncn opened 2 months ago

mlncn commented 2 months ago

We have discussed automating format identification for uploaded audio, image, and video files on PECE but have not documented our questions and conclusions yet, starting so here.

The Drupal 7 field for all of these is field_pece_file_format_value

(Drupal 10 at one point had fields for field_video_format, field_audio_file_format, field_image_file_format but these got consolidated back.)

Keegan ran a unique (DISTINCT) query of field_pece_file_format_value for STS D7 and everything could be automated except two that gave their format as "Online"

MegaKeegMan commented 2 months ago

An example of an image artifact where the format in 'Online': https://www.centerforethnography.org/node/113

Do we want to allow Online as a format or would it be okay if the format was just extrapolated to 'png', since the image here is a png?

(Ben edit: Note that in this case the image uploaded to the artifact appears to be a screenshot of the images available at the online link, so there may be some nuance here— but maybe disallowing this may clue people that "Website" may be the proper artifact to use? Changing one's mind would be a lot easier with #477 )

MegaKeegMan commented 2 months ago

Determined just now that someone should not be allowed to enter 'Online', and that it will be okay to allow the site to display the format automatically without requiring a user to fill in a value for this field.