EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01978
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Documentation for EPrint searches
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Documentation for EPrint searches
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Tue, 28 May 2013 15:37:57 +0100
Hi Ian,On recent versions of EPrints (this was introduced in the 3.3 branch but I'm not sure when exactly) - I tested on a 3.3.11:
my $list = $session->dataset( 'eprint' )->search( filters => [ { meta_fields => [ 'abstract' ], match => 'SET' },{ meta_fields => [ 'title' ], value => 'Fred', match => 'IN' }
] ); print STDERR "Found ".$list->count." results\n"; I personally like to nest the calls: $session->dataset( 'eprint' )->search( filters => [ { meta_fields => [ 'abstract' ], match => 'SET' },{ meta_fields => [ 'title' ], value => 'Fred', match => 'IN' }
] )->map( sub { my( undef, undef, $eprint ) = @_; # do something with $eprint } ); otherwise use $list->map( ... ); Seb. On 28/05/13 15:17, Ian Stuart wrote:
I'm sure I ask this every 6 months.... and I keep searching the net & not find anything... Is there any documentation on creating searches in EPrints? I want to find all the eprints where field A is not empty and field B has the value "Fred"
- References:
- [EP-tech] Documentation for EPrint searches
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Documentation for EPrint searches
- Prev by Date: [EP-tech] Documentation for EPrint searches
- Next by Date: [EP-tech] Re: Documentation for EPrint searches
- Previous by thread: [EP-tech] Documentation for EPrint searches
- Next by thread: [EP-tech] Re: Documentation for EPrint searches
- Index(es):