EPrints Technical Mailing List Archive
Message: #03131
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: How to add search fields in admin's search items
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: How to add search fields in admin's search items
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Tue, 10 Jun 2014 08:38:02 +0100
Hi, Which version of EPrints are you using? We’re on 3.3.10, and have added (to: ~/archives/ARCHIVEID/cfg/cfg.d/eprint_search_advanced.pl) the following: $c->{plugins}->{"Screen::Staff::EPrintSearch"}->{params}->{extra_fields} = [ { meta_fields => [ "id_number" ] }, { meta_fields => [ "documents.license" ] }, ]; Which allows us to admin-search these additional fields. I think that you just need to add ‘datestamp’ and ‘lastmod’ – not the individual parts thereof: $c->{plugins}->{"Screen::Staff::EPrintSearch"}->{params}->{extra_fields} = [ { meta_fields => [ "datestamp" ] }, { meta_fields => [ "lastmod" ] }, ]; This: http://wiki.eprints.org/w/API:EPrints/MetaField/Date#Searching might also be useful. Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Eliseo Gatchalian Hi, Anyone tried to add fields in the search items page when logged in as admin? We are trying to add datestamp_year, datestamp_month, datestamp_day… and same with lastmod and status_changed….. I tried to edit EPrintSearch.pm and add the following fields but getting an error that they are not defined as datasets: { meta_fields => [ "eprint.datestamp_month" ] }, { meta_fields => [ "eprint.datestamp_day" ] }, { meta_fields => [ "eprint.datestamp_year" ] }, { meta_fields => [ "eprint.lastmod_month" ] }, { meta_fields => [ "eprint.lastmod_day" ] }, { meta_fields => [ "eprint.lastmod_year" ] }, With this added search fields, users from our research office can be able to search items deposited per month or specified dates… Thanks guys in advanced! J
This electronic mail transmission is intended for the named recipients only. It may contain private and confidential information. If this has come to you in error you must take no action based upon it, nor must you copy it or show it to anyone; please telephone or email the sender at Wintec immediately and return the original email. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment which may be included with this message. |
- References:
- [EP-tech] How to add search fields in admin's search items
- From: Eliseo Gatchalian <Eliseo.Gatchalian@wintec.ac.nz>
- [EP-tech] How to add search fields in admin's search items
- Prev by Date: [EP-tech] How to add search fields in admin's search items
- Next by Date: [EP-tech] Re: Browse pages
- Previous by thread: [EP-tech] How to add search fields in admin's search items
- Next by thread: [EP-tech] Re: Browse pages
- Index(es):