EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07406
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] OAI set where filter is negative?
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] OAI set where filter is negative?
- From: Andy Reid <Andy.REID@lshtm.ac.uk>
- Date: Tue, 14 Aug 2018 16:12:06 +0000
Hi, Is it possible to define an OAI set filter based on a field NOT matching a value?
push @{$c->{oai}->{custom_sets}}, { spec => "full_text_public_NOT_accepted_manuscript", name => "full_text_public_NOT_accepted_manuscript", filters => [ { meta_fields => [ "eprint_status" ], value=>"archive", match=>"IN", merge=>"ANY" }, { meta_fields => [ "full_text_status" ], value=>"public", match=>"IN", merge=>"ANY" }, { meta_fields => [ "title" ], value=>"Accepted Manuscript", match=>"IN", merge=>"ALL" }, ] }; What I want is the opposite of the last filter clause there: everything where title does NOT contain the phrase ‘[Accepted Manuscript]’. I can’t find any docs that define the permitted operators for defining filters. I know there are ·
match=>"IN", ·
match=>"EQ", Is there something like ·
match=>"NOT IN", merge=>"ALL" I’ve tried a few obvious permutations, to no avail. I’m not in a position to modify the code, so it’s just a case of is there anything I can do with the standard custom set operators Regards Andy Andy Reid Research Information Manager Executive Office, Room BS8/G10 London School of Hygiene and Tropical Medicine Keppel St, LONDON, WC1E 7HT 0207-927-2618 (Internal/Teleworker x2618)
|
- Follow-Ups:
- [EP-tech] OAI set where filter is negative?
- From: Andy Reid <Andy.REID@lshtm.ac.uk>
- [EP-tech] OAI set where filter is negative?
- References:
- [EP-tech] OAI set where filter is negative?
- From: Andy Reid <Andy.REID@lshtm.ac.uk>
- [EP-tech] OAI set where filter is negative?
- Prev by Date: [EP-tech] ORCID Support Advance Plugin
- Next by Date: [EP-tech] Using DOI lookup during import from ORCID in EPrints
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):