EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03941
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Search API and name fields (or compound)
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Search API and name fields (or compound)
- From: Gilles Fournié <gilles.fournie@cirad.fr>
- Date: Wed, 18 Feb 2015 11:30:11 +0100
Hi, I am trying to write a script to do a search on a dataset. I would like to find entries where the author field has not been set. I tried : $search->add_field( fields => $dataset->get_field('author'), match => 'EX', value => {family=>'', given=>''} ); and $search->add_field( fields => $dataset->get_field('author'), match => 'EX', value => {family=>'NULL', given=>'NULL'} );but neither work (they find nothing although there are database entries with both author_family and author_given null).
Could anybody tell me how I should write the condition ? Thanks, GF
- Follow-Ups:
- [EP-tech] Re: Search API and name fields (or compound)
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Search API and name fields (or compound)
- Prev by Date: [EP-tech] Re: system unable to send email (once more !)
- Next by Date: [EP-tech] Publication Details
- Previous by thread: [EP-tech] show contributor
- Next by thread: [EP-tech] Re: Search API and name fields (or compound)
- Index(es):