EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09966
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
RE: [EP-tech] related_url types
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: RE: [EP-tech] related_url types
- From: Matthew Kerwin <matthew.kerwin@qut.edu.au>
- Date: Wed, 12 Feb 2025 21:52:08 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi Tomasz, The phrases are these ones: lib/lang/en/phrases/system.xml: <epp:phrase id="eprint_fieldopt_related_url_type_pub">Publisher</epp:phrase> lib/lang/en/phrases/system.xml: <epp:phrase id="eprint_fieldopt_related_url_type_org">Organisation</epp:phrase> lib/lang/en/phrases/system.xml: <epp:phrase id="eprint_fieldopt_related_url_type_author">Author</epp:phrase> So you can add new equivalent ones wherever you like, presumably. I don’t think there are any other special settings or config though, just the eprint_fields definition and the phrases. Cheers --
From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk>
On Behalf Of Tomasz Neugebauer CAUTION: This
e-mail originated outside the University of Southampton. CAUTION: This
e-mail originated outside the University of Southampton. Hi everyone! I'm writing on here because I find myself surprisingly far down the rabbit hole in trying to figure out how to do something that thought would be really quick and easy: adding a new "related_url" type to our settings. Where are the related settings for this? I found this in flavours/pub_lib/cfg.d/eprint_fields_pub.pl: { name => 'related_url', type => 'compound', multiple => 1, render_value => 'EPrints::Extras::render_related_url', fields => [ { sub_name => 'url', type => 'url', input_cols => 40, }, { sub_name => 'type', type => 'set', options => [qw( pub author org )], } ], I assume that I would redefine this in my own eprint_fields.pl in the local cfg.d, adding the new "type"? However, where are the phrases and other settings related to these terms, like "org"? In short, if I needed
to add a new "type" here, what other files would I need to look at and/or update? Searching for things like "author", "pub" or "org" in the code is not helping... Tomasz ________________________________________________
Tomasz Neugebauer Tel. / Tél. 514-848-2424 ext. / poste 7738
Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
library.concordia.ca |
- References:
- [EP-tech] related_url types
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- [EP-tech] related_url types
- Prev by Date: [EP-tech] related_url types
- Next by Date: Re: [EP-tech] related_url types
- Previous by thread: [EP-tech] related_url types
- Next by thread: Re: [EP-tech] related_url types
- Index(es):