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


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

-- 
Matty Kerwin (he/him)

Web Developer
EDR Development
Digital Business Solutions

QUT-Logo

Queensland University of Technology
Email: matthew.kerwin@qut.edu.au
KG-X232, Kelvin Grove Campus

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Tomasz Neugebauer
Sent: Thursday, 13 February 2025 07:09
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] related_url types

 

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
Senior Librarian | Bibliothécaire titulaire
Digital Projects & Systems Development Librarian / Bibliothécaire des Projets Numériques & Développement de Systèmes
Concordia University / Université Concordia

Tel. / Tél. 514-848-2424 ext. / poste 7738
Email / courriel:
tomasz.neugebauer@concordia.ca

Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
Street address / adresse municipale: 1400 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8

library.concordia.ca