Page MenuHomePhabricator

[M] Creating an "Other" tab for Media search
Closed, ResolvedPublic


There are a handful of file types that are not represented by the current tabs in media search: images, audio, video, or category. In order to create a home for these less common file types we want to create a tab named "Other" where all other file types like pdf or djvu files can be easily found.

other.jpg (835×1 px, 170 KB)

Acceptance Criteria:

  • An "other" tab should be added to the MediaSearch UI
  • The "other" tab should contain all results in the file namespace that don't fit in the other tabs (djvu, pdf, stl)
  • The metadata shown for each result should be file name, file type, dimensions, and file size (file size will be handled as part of T262992)
  • The "other" tab has a file type filter that lists file types pdf, djvu, stl (see T260721)
  • The "other" tab has a sort by filter (see T260722 - if that ticket is done first, make sure the sort by filter is included here. If this ticket is done first, that work can be part of T260722)

During development, please test the following:

  • Test this feature while logged in AND logged out
  • Test this feature on at least one mobile browser

Event Timeline

CBogen renamed this task from Creating an "Other" tab for Media search to [M] Creating an "Other" tab for Media search.Jul 22 2020, 4:25 PM

@CBogen / @Ramsey-WMF, which of the following media types should be captured in this tab? I'm assuming we want office and 3D at least.

// unknown format

// some bitmap image or image source (like psd, etc). Can't scale up.

// some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.

// simple audio file (ogg, mp3, wav, midi, whatever)

// simple video file (ogg, mpg, etc;
// no not include formats here that may contain executable sections or scripts!)

// Scriptable Multimedia (flash, advanced video container formats, etc)

// Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)

// Plain text (possibly containing program code or scripts)
define( 'MEDIATYPE_TEXT', 'TEXT' );

// binary executable

// archive file (zip, tar, etc)

// 3D file types (stl)
define( 'MEDIATYPE_3D', '3D' );

@AnneT Can it just be all files that aren't captured in the other tabs?

It definitely can be, I just wanted to make sure that's what we're going for. It makes sense to include all other files here, but we might have to think about how to display some of them (e.g. executables, archive files, and unknown).

I can move forward with including all types not included in the other tabs and we can take it from there!

Change 627398 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/WikibaseMediaInfo@master] Add "Other" tab

Change 627398 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Add "Other" tab