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?


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)