[daisy] Embedded query fails

Bruno Dumon bruno at outerthought.org
Mon Oct 2 07:11:10 CDT 2006


On Tue, 2006-09-26 at 11:51 +0200, Andreas Deininger wrote:
> 2006/9/26, Paul Focke <paul at outerthought.org>:
> > Andreas Deininger wrote:
<snip/>
> Done.
> Some more issues I came across:
> 
> a) The daisy documentation for 2.0 states that the datatype of the
> identifier $fieldTypeName.documentId is 'long'. Shouldn't that be
> 'string' now?
> http://cocoondev.org/daisydocs-2_0/repository/general/9.html
> 

yes indeed, it's fixed now.

> b) The same document states for LinksTo, LinksFrom, LinksToVariant,
> LinksFromVariant:
> 
> > LinksTo(documentId, inLastVersion, inLiveVersion [, linktypes])
> > ..
> > The optional parameter linktypes is a string containing a comma separated list of the
> > types of links to include, which is one or more of: inline, out_of_line, image, include or
> > other.
> 
> However the query:
> select id where LinksFrom('1301-MBA',0,0,'image,inline,other') fails
> while
> select id where LinksFrom('1301-MBA',0,0,'image inline other') works.
> 
> Shouldn't that read: 'a string containing a list of types of links to
> include, separated by whitespace'?

Indeed. I've now changed the code to allow comma in addition to
whitespace, and updated the docs to mention whitespace is also allowed
as separator (the 1.5 could be updated to change comma to whitespace).

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list