EPrints Technical Mailing List Archive

Message: #01228


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: oai filters


Hi Yuri,

pong!

I'm not sure you can use filters to filter items *out* (or perhaps this was added in 3.3, I don't recall).

So you might just need to set opposite values to your items: you want to exclude items which has X in field Y ? Then set !X to all other items and filter on !X (I recall doing that exact thing on a French repository). You can then even have custom sets in OAI (perhaps that's your aim).

Hope this will help you,
Seb.



On 23/10/12 14:32, Yuri wrote:
ping

Il 13/09/2012 10:00, Yuri ha scritto:
any idea on this? :-)


Il 11/09/2012 15:46, Yuri ha scritto:
Hi!

I would like to use oai filters:

$oai->{filters} = [

# Example: don't export any OAI records from before 2003.
#  { meta_fields =>   [ "date-effective" ], value=>"2003-" }
];

I would like to exclude all the eprints that has a certain value in it,
I mean don't export any records which has value XXX in field YYY. Also,
can I combine filters for example exclude all the eprints which has X in
field Y AND Z in field W?

Thanks for any info.
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/