NCEAS / metacat

Data repository software that helps researchers preserve, share, and discover data
https://knb.ecoinformatics.org/software/metacat
GNU General Public License v2.0
26 stars 12 forks source link

Using the package title as the downloaded zip file name on the getPackage method #6

Open taojing2002 opened 6 years ago

taojing2002 commented 6 years ago

Val Hendrix reported: I f /v2/packages/application%2Fbagit-097/ is accessed the name of the Zip file should be .zip but instead it is urnuuid.zip. While this is not a show stopper it is not very user friendly.

Currently we are using the package id as the zip file. So using the title of the data set (which will be extracted from the metadata object) is making more sense. However, it may be hard to get the data set title since the diversity of the metadata standards.

We may think about this approach.

amoeba commented 6 years ago

I agree this can be made more user-friendly. Even calling it something more descriptive like package.zip, or datapackage.zip would be an improvement over just using the resource map's PID.

Some notes...

ThomasThelen commented 4 years ago

I like the idea of using a truncated title rather than the resource map ID. This should be 100% possible since we have a reference to the EML document when downloading (and we're already parsing information out of it).

I'll bring this up on the next development call meeting for a wider discussion.