[daisy] advice on tagging and Categories.

Marc Portier mpo at outerthought.org
Fri Sep 29 07:08:33 CDT 2006



Chris wrote:
> 
> --- Marc Portier <mpo at outerthought.org> wrote:

>> 3/ document-tasks provide an easy programmable way to do bulk operations
>> on documents already in the repo.
> 
> document-task; I have not looked at this yet but sounds good.  If I come up with a 
> new document type or a new field type and I want to convert existing documents 
> this is an api or process that would help?
> 

see http://cocoondev.org/daisydocs-1_5/repository/general/157.html for
the document tasks (feature since 1.3)

basically they are just a way to perform bulk operations on your
document repository by executing a js-script inside the repository vm


you could achieve functionally the same by running (a slightly modified
version of) that script through the $daisy_home/bin/daisy-js interpreter
In contrast however: then it runs in a different vm (could be a totally
different machine) and requires you to add steps for connecting, quering
and retrieving the documents you need to work on

think about moving "Mohammed and the Mountain":
  - document-tasks feature allows to select docs and bring the script
down to the documents
  - daisy-js interpreter will call the documents down to where the
script is running


As for the API, in both cases, what you can actually call from the
script is described here:
http://cocoondev.org/daisydocs-1_5/repository/interfaces


Trying it out is easy, just log in with appropriate admin rights and
follow down to URL ./doctask or pick "Tools | Document Tasks" from the
1.5 menu

groetjes,
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo at outerthought.org                              mpo at apache.org


More information about the daisy mailing list