BCcampus / open-sage

Theme for open.bccampus.ca
MIT License
1 stars 0 forks source link

Ancillary resources in zip files sort as "Editable" files #170

Closed josieg closed 5 years ago

josieg commented 5 years ago

Describe the bug Zip files that are marked as ancillary resources (e.g., "Ancillary resource: Instructor edition") are being sorted as editable files in the collection, rather than ancillary resource files.

To Reproduce Steps to reproduce the behavior:

  1. Go to a book with ancillary resources in a .zip file (For example, Liberte.)
  2. Click on "Editable" drop-down list.
  3. See that "Ancillary resource: Instructor edition" is listed there rather than under "Ancillary"

Expected behavior I expect that .zip files will be classified as Editable UNLESS they have "Ancillary resource" at the beginning of the label, in which case they should be classified as "Ancillary"

Screenshots ancillary

josieg commented 5 years ago

Adding a note that it is not just the .zip files. I have found PDF and PPT files that are labeled "Ancillary resource" but are sorting as Readable or Editable files. See Intro to Financial Accounting