EPrints Technical Mailing List Archive
Message: #06506
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Altering Creator Browse
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Altering Creator Browse
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Tue, 16 May 2017 12:46:22 +0000
Step 1 is can you successfully create and build a view based on the creators_id field, so you get a view set which lists justs the ids (and counts of publications?) – this should be an addition to views.pl in
[EPRINTS_ROOT]/archives/[ARCHIVE_ID]/cfg/cfg.d/ along the lines of this from the comments near the end of view.pl { id => "person", menus => [ { fields => [ "creators_id","editors_id" ], allow_null => 0, } ], order => "-date/title", noindex => 1, nolink => 1, nocount => 0, include => 1, }, From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken I get what this is trying to do and we’re certainly tagging with user ID. I’ve tried to implement the code as shown, both generating the view as “creators” and “people”, however I’m getting an error: Can only perform process_distinctby on multiple fields with the same field type I’m putting this largely down to this:
https://cdn-images-1.medium.com/max/455/1*snTXFElFuQLSFDnvZKJ6IA.png I really don’t fully know how to interpret the code in EPrints so anything like this is above me without a proper step by step explaining why specific things are being written in specific places and what they’re supposed to do. Sorry if I seem inept! From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Alan.Stiles My predecessor did something of that nature on our repository (see
http://threader.ecs.soton.ac.uk/lists/eprints_tech/15598.html). Essentially, you need to have tagged each creator (from your institution) on each publication record with their unique id, so the system can build a view based on the unique id, but when rendering the view, it
uses their name (from the user record) rather than the id field. Does that help, or still leave you with (more) questions? Alan From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken Hello all! So, I’m progressing with my migration – one of the things I want to do, which is something we get with our current repository, is to generate the creator browse based on a users ID number, rather than their name; so instead of eprints.lincoln.ac.uk/creator/john+smith
or what have you, we get …/creator/1234. At present the name method is generating multiple pages for users who publish under different names, such as John Smith or J. Smith or John D. Smith. Also we may have different John Smith’s in our system and will want
to identify them as such. So, the creator browse needs to be generated based on the user table. Any ideas on how to go about doing this? The current method is not portable as the code will not work with the current version of EPrints, and I want to explore some non intrusive (plugin) ways of doing it rather than altering core functions. Andrew
-- 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.
|
- References:
- [EP-tech] Altering Creator Browse
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Re: [EP-tech] Altering Creator Browse
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Altering Creator Browse
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Altering Creator Browse
- Prev by Date: Re: [EP-tech] IRStats2: process_stats job with InnoDB
- Next by Date: Re: [EP-tech] Altering Creator Browse
- Previous by thread: Re: [EP-tech] Altering Creator Browse
- Next by thread: Re: [EP-tech] Altering Creator Browse
- Index(es):