If I've got a heap of newly scanned documents to import, I don't want to go through and manually upload, then assign keywords and categories to all documents. Gets very tedious and takes a long time. I can instead write a shell script to generate the *.okm files to be used for an import.
How do I go about doing this, and what information can I omit from the .okm file and still have the import work successfully? Obviously I would not be able to include the uuid. I will have the taxonomy path, the keywords and the category paths (but not the category uuids). I assume author, owner and roles are needed. How about the time stamps? For the omitted information, should I just leave it out, or does it need to be there, but blank?
Do I used {"uuid":[]} or {"uuid":""} or just omit the uuid component completely? Or something else?
Likewise for category. Do I use "categories":[{"uuid":[],"path":"/okm:categories/catname"}], or will "categories":["path":"/okm:categories/catname"}] suffice?
I'v tried creating an okm file and just removing the uuid entries. I put the okm file along with its pdf in a directory, and then tried doing a repository import, but got the error message "Error: Unable to perform operation. Node is protected.".
Is there something else I should be doing?
Thanks.
How do I go about doing this, and what information can I omit from the .okm file and still have the import work successfully? Obviously I would not be able to include the uuid. I will have the taxonomy path, the keywords and the category paths (but not the category uuids). I assume author, owner and roles are needed. How about the time stamps? For the omitted information, should I just leave it out, or does it need to be there, but blank?
Do I used {"uuid":[]} or {"uuid":""} or just omit the uuid component completely? Or something else?
Likewise for category. Do I use "categories":[{"uuid":[],"path":"/okm:categories/catname"}], or will "categories":["path":"/okm:categories/catname"}] suffice?
I'v tried creating an okm file and just removing the uuid entries. I put the okm file along with its pdf in a directory, and then tried doing a repository import, but got the error message "Error: Unable to perform operation. Node is protected.".
Is there something else I should be doing?
Thanks.