There is no standard way in CQL to express "field X is not empty".
Depending on implementations, NOT srw.dd="" might work (but evidently
doesn't in this case). Another possibility is srw.dd=*, but again
that may or may not work, and might be appallingly inefficient if it
does. NOT srw.dd=null will definitely not work: "null" is not a
special word in CQL.
On 16 May 2012 10:32, Arash.Joorabchi <[log in to unmask]> wrote:
> Hi all,
> I am sending SRU queries to the WorldCat in the following form:
> String host =
> String query = "sru?query=srw.kw=\"" + keyword + "\""
> + " AND srw.ln exact \"eng\""
> + " AND srw.mt all \"bks\""
> + " AND srw.nt=\"" + keyword + "\""
> + "&servicelevel=full"
> + "&maximumRecords=100"
> + "&sortKeys=relevance,,0"
> + "&wskey=[wskey]";
> And it is working fine, however I'd like to limit the results to those
> records that have a DDC number assigned to them, but I don't know what's
> the right way to specify this limit in the query.
> NOT srw.dd=""
> NOT srw.dd=null
> Neither of above work
> -----Original Message-----
> From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of
> Chad Benjamin Nelson
> Sent: 15 May 2012 21:54
> To: [log in to unmask]
> Subject: [CODE4LIB] Atlanta Digital Libraries meetup - May 23rd
> The first / next Atlanta Digital Libraries meetup is coming up soon:
> Wednesday, May 23rd 7pm
> Manuel's Tavern<http://www.manuelstavern.com/location.php>
> 602 N Highland Avenue Northeast
> Atlanta, GA 30307
> North Avenue Room
> We have two scheduled talks, and are still looking others interested in
> presenting. It's informal, so even if it is just a short topic you want
> to get some feedback on, we'd love to hear it.
> So, come along if you are interested and in the area.
> Chad Nelson
> Web Services Programmer
> University Library
> Georgia State University
> e: [log in to unmask]
> t: 404 413 2771
> My Calendar<http://bit.ly/qybPLJ>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2176 / Virus Database: 2425/5000 - Release Date: