OCTETS datastream versions
Closed this issue · 3 comments
Calling as admin object/:pid/data or object/:pid/datastream/OCTETS on an existing object (use case: replacing OCTETS) results in the creation of a new OCTETS datastream named :pid+OCTETS+OCTETS.1 in Fedora. This breaks https://github.com/phaidra/phaidra-api/blob/master/PhaidraAPI/Model/Search.pm#L814 where OCTETS+OCTETS.0 is hardcoded.
This seems to be only used for getting the filesize and only if DC or Datacite are generated - but not while indexing. On indexing (and DC is now only generated from index) this information comes from inventory.
So I think I can remove _get_dsinfo_xml, but I should also check if inventory makes any assumptions about OCTETS version, so that there's a way to get this information for higher versions.
@RastislavHudak Does commit 13ec2e5 fix this issue? Does inventory make any assumption on OCTETS version?