cancel
Showing results for 
Search instead for 
Did you mean: 

Document naming and versioning

andy_ukgrid
Champ in-the-making
Champ in-the-making
Hi,

can someone explain if there is a way to resolve differences in document filename version and in the version number maitained by Alfresco in the file metadata? What I mean is, if I upload a document to Alfresco and enable versioning Alfresco assumes the document starts at V1.0. What if the file is pre V1.0 or has already existed outside alfresco and is say V2.1? Can I update the Alfresco metadata to refect this? Also typically I maintain version number in teh filename of a document like "server config V1.0.doc" but this then becomes confusing and nonsensical when uploaded to Alfresco when version number changes in Alfresco metadata, can I have Alfresco update the filename? That could either mean chop off any version number when the file is uploaded and save this in the metadata, or modify the filename based on the metadata version number each time the file is updated in Alfresco.
What are the options Alfresco gives me with regards these issues??

thanks a lot, Andy.
3 REPLIES 3

davidd
Champ in-the-making
Champ in-the-making
I would like to know exactly the same things!

calle
Champ in-the-making
Champ in-the-making
I think you could write a script that turns off versioning when you upload the document.
Set document.properties.autoVersion=false and document.properties.initialVersion=false then set the version number you want by document.properties.versionLabel="your version number" and finally document.save. Then turn on autoVersion again.

Also, if you need to import the version number from some metadata you need a metadata extractor, see http://wiki.alfresco.com/wiki/Metadata_Extraction.

//Carl

davidd
Champ in-the-making
Champ in-the-making
A script? good grief!
I'm afraid I don't know where to start with that! (what scripting language? where do I put the script to get executed?)

Is there no way to simply edit the version number of a document in the GUI?

Also I can't seem to add new versions of documents to spaces either anyways, never mind what document version number I want
(see https://issues.alfresco.com/jira/browse/ALFCOM-1839
and http://forums.alfresco.com/en/viewtopic.php?f=3&t=13439&p=44237#p44237 )