Conal-Tuohy / ands-la-trobe

Automatically exported from code.google.com/p/ands-la-trobe
1 stars 1 forks source link

Fedora output filenames are intimidating #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Files downloaded via the fedora web interfaces end up having directory names 
prefix them and are often suffixed by redundant .bin extensions. This is 
probably related to the mime type handling performed by fedora.

Ideally, these filenames should be identical to the names before ingest, and as 
they are displayed on the various interface pages.

This issue is mostly aesthetic, but will probably affect users who do not 
understand file associations.

Original issue reported on code.google.com by tosello....@gmail.com on 22 Sep 2011 at 4:48

GoogleCodeExporter commented 9 years ago
Added the following mappings to 
/ands/fedora/server/config/mime-to-extensions.xml

  <mime-mapping>
    <mime-type>chemical/x-vamas-iso14976</mime-type>
    <extension>vms</extension>
  </mime-mapping>
  <mime-mapping>
    <mime-type>application/x-kratos-vision-dataset</mime-type>
    <extension>dset</extension>
  </mime-mapping>
  <mime-mapping>
    <mime-type>application/x-iontof-surfacelab-measurement</mime-type>
    <extension>itm</extension>
  </mime-mapping>

Original comment by Conal.Tuohy on 29 Sep 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Scrub that last comment - that has the effect of autogenerating an extra 
extension, giving each download file a double extension such as 
"example.dset.dset".

So I removed the mime-extension mapping changes (unneeded), and simply disabled 
the autogeneration of file extensions by editing 
`/ands/fedora/server/config/fedora.fcfg` and changing the value of 
`/server/param[@name='datastreamExtensionMappingLabel']/@value` from "always" 
to "ifmissing".

Original comment by Conal.Tuohy on 29 Sep 2011 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by Conal.Tuohy on 29 Sep 2011 at 2:47