EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09973


< 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.
Thanks Alan and Matthew, it worked.  For the record, I added this :

<epp:phrase id="eprint_fieldopt_related_url_type_archive">Archived Online Component</epp:phrase>

so that we can link to supplemental materials that have been archived elsewhere online.

When redefining the related_url field like this, originally found in flavours/pub_lib/cfg.d/eprint_fields_pub.pl
I made the change like this:
  1. remove the related_url definition from flavours/pub_lib/cfg.d/eprint_fields_pub.pl
  2. add modified version to /archives/REPOID/cfg/cfg.d/eprint_fields_pub.pl

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



From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Alan.Stiles [He/Him/They] <alan.stiles@open.ac.uk>
Sent: Thursday, February 13, 2025 4:16 AM
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] related_url types
 

Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'extérieur du domaine de concordia.ca




CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.

Hi Tomasz,

 

Yes, redefine the field in your local cfg.d.

 

We have the following defined in our local phrases  ( <EPRINTS_HOME>/archives/<ARCHIVE_ID>/cfg/lang/en/phrases/)

<epp:phrase id="eprint_fieldname_related_url">Related URLs</epp:phrase>

<epp:phrase id="eprint_fieldhelp_related_url">URLs that are related to this item.</epp:phrase>

<epp:phrase id="eprint_fieldname_related_url_url">URL</epp:phrase>

<epp:phrase id="eprint_fieldname_related_url_type">URL Type</epp:phrase>

<epp:phrase id="eprint_fieldopt_related_url_type_pub">Publisher</epp:phrase>

<epp:phrase id="eprint_fieldopt_related_url_type_org">Organisation</epp:phrase>

<epp:phrase id="eprint_fieldopt_related_url_type_author">Author Website</epp:phrase>

<epp:phrase id="eprint_fieldopt_related_url_type_other">Other</epp:phrase>

 

Hope that helps – presumably you would need to deal with multiple language options too?

 

Alan

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
Date: Wednesday, 12 February 2025 at 21:10
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] related_url types

External email: if the sender or content looks suspicious, please click the Report Message icon, or forward it to report-phishing

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