EPrints Technical Mailing List Archive
Message: #09225
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- From: Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk>
- Date: Tue, 7 Mar 2023 12:22:10 +0000
CAUTION: This e-mail originated outside the University of Southampton.
HI John, David,
Thanks, changes to eprint_fields_pub.pl sounds like what I'm looking for, however,
[EPRINTS_ROOT]/archives/[ARCHIVE_ID]/cfg/cfg.d/eprint_fields_pub.pl
does not exist.
I do have ..flavours/pub_lib/cfg.d/eprint_fields_pub.pl
Should I create a file of that name in the archive directory, and then edit it to contain
only additions to the fields defined in ..flavours/pub_lib/cfg.d/eprint_fields_pub.pl? E.g, I might write in:
push @{$c->{fields}->{eprint}},
Or should I copy the existing file from ..flavours/pub_lib/cfg.d and add to it?
Or does its absence perhaps indicate a deeper problem, like some fundamental step I've missed when building the archive?
Currently ../archives/[ARCHIVE_ID]/cfg/cfg.d/
contains only these files:
00_flavour.pl
10_core.pl
adminemail.pl
citationcaches.pl
csrf_protection.pl
database.pl
zz_webcfg_metafield_fields.pl
All the best,
Chris
Chris Halliwell
I IT Manager
City & Guilds of London Art School, 124 Kennington Park Road, London SE11 4DJ
Charity Registration no. 1144708 I Company no. 7817519
www.cityandguildsartschool.ac.ukFrom: John Salter <J.Salter@leeds.ac.uk>
Sent: 07 March 2023 10:33 To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; David R Newman <drn@ecs.soton.ac.uk>; Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk> Subject: RE: [EP-tech] Eprints 3.4.3: adding new options for editing items
Hi Chris, David, You need to add an option to the file: [EPRINTS_ROOT]/archives/[ARCHIVE_ID]/cfg/cfg.d/eprint_fields_pub.pl (see details here: https://wiki.eprints.org/w/Eprint_fields_pub.pl)
There is a definition for 'thesis_type' and 'thesis_name' - should be something like this: https://github.com/eprints/eprints3.4/blob/master/flavours/pub_lib/cfg.d/eprint_fields_pub.pl#L130-L153
Add a new option, and also a phrase. If your new option was 'my_thesis_type', the phrase would be:
You then need to restart the webserver (apache) for the new value to be visible.
Cheers, John
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of David R Newman via Eprints-tech
Hi Chris, On 07/03/2023 10:04 am, Chris Halliwell via Eprints-tech wrote:
|
- Follow-Ups:
- [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- From: Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk>
- [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- References:
- [EP-tech] Eprints 3.4.3: adding new options for editing items
- From: Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk>
- Re: [EP-tech] Eprints 3.4.3: adding new options for editing items
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Eprints 3.4.3: adding new options for editing items
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- From: Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk>
- [EP-tech] Eprints 3.4.3: adding new options for editing items
- Prev by Date: Re: [EP-tech] Eprints 3.4.3: adding new options for editing items
- Next by Date: Re: [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):