EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03271
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Advanced Search
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Advanced Search
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Wed, 16 Jul 2014 10:48:29 +0000
Hi Simon, On 3.3.10, in eprint_search_advanced.pl we’ve got the following: $c->{search}->{advanced} = { search_fields => [ { meta_fields => [ "title" ] }, { meta_fields => [ "creators_name" ] },#, "creators_alternative" ] }, { meta_fields => [ "abstract" ] }, { meta_fields => [ "keywords" ] }, … { meta_fields => [ "verified_by" ] }, ], search_fields_staff => [ { meta_fields => [ "srcid" ] }, { meta_fields => [ "status_flag" ] }, … { meta_fields => [ "lastmod" ] }, { meta_fields => [ "contact_email" ] }, ], preamble_phrase => "cgi/advsearch:preamble", title_phrase => "cgi/advsearch:adv_search", citation => "result", page_size => 20, order_methods => { "byyear" => "-date/creators_name/title", "byyearoldest" => "date/creators_name/title", "byname" => "creators_name/-date/title", "bytitle" => "title/creators_name/-date" }, default_order => "byyear", show_zero_results => 1, }; Any help? From: John Salter
[mailto:J.Salter@leeds.ac.uk] Hi Simon, If you want to add extra fields to the advanced search to create an admin search, you can by adding something like this to the config: $c->{plugins}->{"Screen::Staff::EPrintSearch"}->{params}->{extra_fields} = [ { meta_fields => [ "id_number" ] }, { meta_fields => [ "documents.license" ] }, ]; If you want to have an entirely different search for the admin, then I’m sure there’s a way, but not sure how off the top of my head! Cheers, John From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Levy, Simon Is it possible to have different advanced search for an admin than for a user? Rgds, Simon Levy T Internal: 67103 T 0208 417 7103 Kingston University London Penrhyn Road, Kingston upon Thames KT1 2EE
www.kingston.ac.uk<http://www.kingston.ac.uk/> Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission.
There is no intention to create any legally binding contract or other commitment through the use of this email. Please consider the environment before printing this email.
|
- References:
- [EP-tech] Advanced Search
- From: "Levy, Simon" <S.Levy@kingston.ac.uk>
- [EP-tech] Re: Advanced Search
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Advanced Search
- Prev by Date: [EP-tech] Re: Advanced Search
- Next by Date: [EP-tech] Re: Importing several items from an XML file
- Previous by thread: [EP-tech] Re: Advanced Search
- Next by thread: [EP-tech] Re: Advanced Search
- Index(es):