Page 1 of 1
version number
PostPosted:Thu Nov 15, 2012 4:14 pm
by ciropom
Hi to all,
I would like to know why in the version number only the second term increases.
If I upload multiple versions of the same file, I will see that the version number becomes 1.0, 1.1, 1.2 ...
there is a way to upgrade the first number?
so that I will start with 2.0, 2.1 ...
Thank you very much.
Danilo
Re: version number
PostPosted:Fri Nov 16, 2012 6:33 pm
by jllort
Como para gustos no hay nada escrito a partir de la verion 6.x hicimos que el tema del versionado fuese extensible. Es decir tenemos un versionado por defecto pero te puedes implementar el que quieras y compartirlo después con el resto de la comunidad si te apetece.
la propiedad de openkm en cuestion es version.numeration.adapter=com.openkm.vernum.MajorMinorVersionNumerationAdapter y lo segundo como puedes observar es una clase. Simplemente cambiando esta clase por una implementada por ti el invento versionará con otra lógica. Ojo al dato esto es bueno hacerlo antes de empezar a subir documentos sino tendras que cambiar en la base de datos el versionado antiguo ( que tienes ) por el nuevo ( correspondiente ).
Re: version number
PostPosted:Mon Nov 19, 2012 8:22 am
by ciropom
Sorry but I don't speak spanish.. can you repeat in english?
Re: version number
PostPosted:Mon Nov 19, 2012 7:45 pm
by jllort
Excuses - lapsus -
From version 6.x we have introduced I way you write your own version number. OpenKM comes by default with one, but you can change to other, take a look at this configuration parameter version.numeration.adapter=com.openkm.vernum.MajorMinorVersionNumerationAdapter where com.openkm.vernum.MajorMinorVersionNumerationAdapter is a java class than you can change by your own. The only problem you got is that if you have started with other number versioning you should change older numbers ( existing in your openkm ) to newer format ( basically with some database queries can be solved ).