EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09228
< 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: {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: {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- From: Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk>
- Date: Wed, 8 Mar 2023 11:40:28 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi John,
I can confirm that copying
eprint_fields_pub.pl to the archive specific subdirectory and modifying it, alongside adding the corresponding new phrase to zz_webcfg.xml, was successful.
I took one further step in addition to regenerating static pages and views and restarting the webserver, which was to run /bin/epadmin update ARCHIVEID prior to the Apache restart. This returned that zero fields had been modified, and having now looked at the
table eprints__ordervalues_en I think I see why, so that may have been an un-necessary step.
Thanks again for your help.
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 15:40 To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; Chris Halliwell <c.halliwell@cityandguildsartschool.ac.uk> Subject: RE: [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
Hi Chris, That comes from guidance on this page: https://wiki.eprints.org/w/Upgrading_3.3.12%2B_to_3.4
If I'm way off the mark, I'm sure someone will shout soon!
Cheers, John
PS Welcome to EPrints - good to have you on board! J
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Chris Halliwell via Eprints-tech
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
From: John Salter <J.Salter@leeds.ac.uk>
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: {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: {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>
- Re: [EP-tech] {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] {Suspected SPAM} Re: {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: [EP-tech] languages/translations of EPrints phrases
- Next by Date: Re: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Re: Eprints 3.4.3: adding new options for editing items
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):