[Yazlist] php/yaz ccl syntax for "not"

David Everly david.everly at adelphia.net
Tue Jan 4 18:18:06 CET 2005


Hi,

I have the following:

   $conf["@truncation"] = "*";
   $conf["@and"] = "&&";
   $conf["@or"] = "||";
   $conf["@not"] = "!!";

   // (complete setup omitted)

   yaz_ccl_conf($yaz_id, $conf);

When I give the following to yaz_ccl_parse, it works:

   subject = ( "2 Octave Handbells" || "3 Octave Handbells" )

This returns the following rpn:

   @or
      @attr 5=100
      @attr 1=21 2\ Octave\ Handbells

      @attr 5=100
      @attr 1=21 3\ Octave\ Handbells 

However, using the any of the following (using "not") fails:

   subject = ( "2 Octave Handbells" !! "3 Octave Handbells" )
   subject = ( "2 Octave Handbells" && !! "3 Octave Handbells" )
   subject = ( "2 Octave Handbells" !! && "3 Octave Handbells" )

This failure returns the following message:

   Search word expected

Is there a different syntax for using "@not" with CCL than what I'm
using?

Thanks,
Dave.

-- 
Encrypted Mail Preferred:
    Key ID:  8527B9AF
    Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
    Information:  http://www.gnupg.org/
                                                                                
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
    Information:  http://www.expita.com/nomime.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.indexdata.dk/pipermail/yazlist/attachments/20050104/0868ac98/attachment.pgp


More information about the Yazlist mailing list