alloydog (User)
Senior Boarder
Posts: 47
|
|
Tracking document life and version 1 Year, 2 Months ago
|
Karma: 0
|
|
In the Properties tab for a document, there is the Status. Currently it seems it only shows "Available" and "Locked by ..."
I know theses come from where the document is unlocked or locked, but is it possible to have more statuses? Such as "Draft", "Peer reviewed" "Approved" and so on?
Also, how do you increase a document version number but the major number, that is, say, from 1.3 to 2.0?
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
jllort (Admin)
Admin
Posts: 826
|
|
Re:Tracking document life and version 1 Year, 2 Months ago
|
Karma: 16
|
|
For extends document properties you must use metadata ( we call as property groups ) where you can define closed list, input box etc... ( OpenKM comes with a example called my_group.cnd on %jboss_home% -> please try it on a developement environment not production, because you can not delete metadata structure when after defining ).
About number version you can not pass from 1.0 to 2.0 it's a tree structure naming nodes and always start with 1. if you forget this starting "1." probably you'll view as normal naming versioning :
1.1 1
1.2 2
1.3 3
1.4 4
1.3.1 3.1 ( return to version 3 and increasing version )
1.3.2 3.2
|
|
|
|
|
|
|
Be open my friend
|
|
|
The administrator has disabled public write access.
|
alloydog (User)
Senior Boarder
Posts: 47
|
|
Re:Tracking document life and version 1 Year, 2 Months ago
|
Karma: 0
|
Is this the file:
| Code: |
~$ cat /opt/OpenKM-3.0/my_groups.cnd
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>
[okg:tecnologia] mixin
- okp:tecnologia.tipo (string) = '' multiple autocreated
- okp:tecnologia.lenguaje (string) = '' autocreated
- okp:tecnologia.descripcion (string) = '' autocreated
- okp:tecnologia.comentario (string) = '' autocreated
[okg:consultoria] mixin
- okp:consultoria.tipo (string) = '' autocreated
- okp:consultoria.comentario (string) = '' autocreated
|
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
jllort (Admin)
Admin
Posts: 826
|
|
Re:Tracking document life and version 1 Year, 1 Month ago
|
Karma: 16
|
|
Exactly this is one of the needed files.
my_groups.cnd -> properties declaration
PropertyGroupValues.properties -> avaliable values for properties
PropertyGroupBundle.properties -> the property key values translation
For example:
1-On my_groups.cnd you can find okp:tecnologia.tipo -> this defines the property "tipo".
2-On PropertyGroupValues.properties you can see okp\:tecnologia.tipo=4,uno,dos,tres
First number indicates representation
1- Input
2- TextArea
3- List
4- List select multiple
and
"uno,dos,tres " indicates avaliable values for this property.
3- Now only need to translate property and values on some languages ( at least one ) on PropertyGroupBundle.properties file:
okp\:tecnologia.tipo.uno=Tipo Uno
okp\:tecnologia.tipo.dos=Tipo Dos
okp\:tecnologia.tipo.tres=Tipo Tres
Only one suggestion -> if you change properties file, probably you'll need to restart jboss server ( I'm not sure about it, at least you need to restart OpenKM because property group ( metadata ) is only loaded at startup OpenKM login.
A final suggestion, because property group can not be removed after registering, consider to try on a testing environment not on a production. You can always overload metadata with more values and properties but you can not delete it. ( it's for historic repository reason ).
Hope it'll help you.
|
|
|
|
|
|
|
Be open my friend
|
|
|
The administrator has disabled public write access.
|
alloydog (User)
Senior Boarder
Posts: 47
|
|
Re:Tracking document life and version 1 Year, 1 Month ago
|
Karma: 0
|
|
OK, I have now registered the my_groups.cnd file, and can see the different properties values under Administration | Properties. Clicking View, shows the different properties.
But... how do I assign these to a document?
For example, if I created a property called Status, with the values "Draft, Reviewed, Approved". How would I add it to the list of document properties.
Currently, all I still is:
UUID
Name
Folder
Size
... and so on.
I don't see any of the new properties in the Properties section for the document.
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Tracking document life and version 1 Year, 1 Month ago
|
Karma: 9
|
|
There is a pair of buttons in the toolbar that can add or remove property groups. Once a property group has been assigned to the document, a new tab will appear in the document properties.
|
|
|
|
|
|
|
Be open, my friend!
|
|
|
The administrator has disabled public write access.
|
|