EPrints Technical Mailing List Archive

Message: #05668

< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Getting Archive Name as a configuration value

If you have the repository object, you can do:


Otherwise, if you don't, in the perl config, you can access stuff that's already been set.  E.g. in newfile.pl (in cfg.d), you can do:

$c->{new_thing} = $c->{archive_name} . ' BWAHAHAHA';

...but it needs to be alphabetically after the file in which archive_name is already set.


On 5 May 2016, at 09:49, Vials Moore, Adam <Adam.Moore@liverpool.ac.uk> wrote:

Hmmm . . .

In phrases (like index.xpage) you use 

<epc:phrase ref="archive_name"/>

Is that what you’re after? Or which config file and I’ll see If I have something similar . . .


From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Lizz uk>" <e.jennings@bath.ac.uk>
Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 4 May 2016 at 12:32
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Getting Archive Name as a configuration value

I feel I’m probably missing something really obvious, but I’m trying to use the Archive name phrase in configuration values.  I can’t seem to figure out how to do it.
Any ideas?
Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2015)
Technical Data Officer
The Library 4.10, University of Bath, Bath, BA2 7AY UK
Ext. 3570 (External 01225 383570)
Research Data Management: http://www.bath.ac.uk/research/data
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.