PBCore-AV-Metadata / pbucore

16 stars 7 forks source link

InstantiationFileSize #10

Open jlhardes opened 9 years ago

jlhardes commented 9 years ago

Looking at pbcoreInstantiation/InstantiationFileSize

peggygriesinger commented 9 years ago

Mapping instantiationFileSize to ebucore:fileSize, in PBCore you can have @unitsOfMeasure, but in ebucore the unit of measure if assumed to be bytes.

afred commented 9 years ago

Ideally, as the tool matures, we could run a pre-processing step that could convert any non-byte values into byte values. Then the actual conversion tool would simply assume pbcore values are in bytes.

However, that's a little ways away. In the interim, here are a couple possibilities...

  1. Just assume bytes. The downside would be that you could severely misrepresent file sized, inadvertently changing the value by orders of magnitude.
  2. Combine the number and the unit into a string, so you might end up with something like "8M" in the ebucore for the file size element. @JPEvain is that too ugly?
peggygriesinger commented 9 years ago

Not dealing with @annotation because it's a standard-wide attribute, should probably make decision for all elements at once

peggygriesinger commented 9 years ago

@afred Julie managed to make the XSL do math for us so we can convert from KB/MB/GB into bytes.