EPrints Technical Mailing List Archive

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


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]
Sent: 16 July 2014 11:38
To: 'eprints-tech@ecs.soton.ac.uk'
Subject: [EP-tech] Re: Advanced Search

 

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
Sent: 16 July 2014 11:13
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Advanced Search

 

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

E   S.Levy@kingston.ac.uk

 

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.

 


This email has been scanned for all viruses by the MessageLabs Email
Security System.

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.