Re: assets losing mf-revision-history/source

6 views
Skip to first unread message

Jason Lohrey

unread,
Jan 13, 2014, 7:34:18 PM1/13/14
to Neil Edward Killeen, medi...@googlegroups.com
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



On 14 Jan 2014, at 11:06 am, Neil Edward Killeen <nkil...@unimelb.edu.au> wrote:

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.

Neil


asset.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"






JASON LOHREY
Chief Technical Officer


ARCITECTA
5/26-36 High Street, Northcote
Victoria, Australia 3070
http://www.arcitecta.com
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email or messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Arcitecta shall be understood as neither given nor endorsed by it.

Neil Edward Killeen

unread,
Jan 13, 2014, 7:38:34 PM1/13/14
to Jason Lohrey, Neil Edward Killeen, medi...@googlegroups.com
On 14 Jan 2014, at 11:34 am, Jason Lohrey <jason....@arcitecta.com> wrote:

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


yeah I am going with b)… 




<Arcitecta.png>
Reply all
Reply to author
Forward
0 new messages