what I will do is fish out the :source from version 1
and store it somewhere more persistent…
Neil
On 14 Jan 2014, at 10:56 am, Neil Edward Killeen <nkil...@unimelb.edu.au> wrote:oh bugger I can’t modify mf-revision-history as a work around…
On 14 Jan 2014, at 10:54 am, Neil Edward Killeen <nkil...@unimelb.edu.au> wrote:Hi
my assets are losing the field
mf-revision-history/source
which I rely on when downloading them (to reconstitute the file name)
example below
version 1 of the asset has it, but version 2 (which for some reason has been
modified (I don’t know why as yet) has lost it….
I think I will need to fetch this meta-data item myself on creation and store it somewhere
safer.
Neilasset.get :id -version 1 224141:asset -id "224141" -version "1" -vid "2047459"
:type "siemens-raw-petct/series"
:namespace "/MBIC-Archive"
:path "/MBIC-Archive/:__asset_id__224131/__asset_id__224141.phtm"
:creator -id "4739"
:domain "mbic"
:user "rwilliams"
:ctime -millisec "1373532662263" "11-Jul-2013 18:51:02"
:mtime -millisec "1373532662263" "11-Jul-2013 18:51:02"
:stime "2273975"
:versioned -count "2" "true"
:access
:access "true"
:modify "true"
:destroy "true"
:access-content "true"
:modify-content "true"
:meta -stime "2047459"
:mf-revision-history -id "1"
:user -id "4739"
:domain "mbic"
:name "rwilliams"
:type "create"
:source "file:/Volumes/508-MBIU/MBIC-Backup/PETRawData/FERNANDO_NIRMALIE.PT.PET_RMHPETCT_WholeBody_MEDIUM_(Adult).602.SINO.20120911.122010.437000.2013.03.21.13.18.58.312000.28699829.ptd”asset.get :id -version 2 224141:asset -id "224141" -version "2" -vid "2273975"
:type "siemens-raw-pet/series"
:namespace "/MBIC-Archive"
:path "/MBIC-Archive/:__asset_id__224131/__asset_id__224141.phtm"
:creator -id "4739"
:domain "mbic"
:user "rwilliams"
:modifier -id "2"
:domain "system"
:user "manager"
:ctime -millisec "1373532662263" "11-Jul-2013 18:51:02"
:mtime -millisec "1386909926920" "13-Dec-2013 15:45:26"
:stime "2273975"
:versioned -count "2" "true"
:access
:access "true"
:modify "true"
:destroy "true"
:access-content "true"
:modify-content "true"
:meta -stime "2273975"
:mf-revision-history -id "1"
:user -id "2"
:domain "system"
:name "manager"
:type “modify"

That’s right - the source (an indicator, and not always set), is only recorded on the first version - unless other versions are uploaded with the source set. In many cases, the source is not even set.
You can use one of the following methods:
a) Use the asset name;b) Set your own metadata that records the original name;c) Get version 1, to get the source — although that will disappear if the asset is pruned.
Jason
<Arcitecta.png>