[EP-tech] OAI set where filter is negative?

Andy Reid Andy.REID at lshtm.ac.uk
Tue Aug 14 17:12:06 BST 2018


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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20180814/a29b56ac/attachment-0001.html 


More information about the Eprints-tech mailing list