<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>It is wrong. &nbsp;Sorry, it was the end of a long day, and I was spouting nonsense.</div>
<div><br>
</div>
<div>archive_name is a phrase. &nbsp;The internal repository id (I.e. the directory name under &lt;root&gt;/archives) is got by doing $repository-&gt;id.</div>
<div><br>
</div>
<div>What are you actually trying to do.</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;"><o:p>&nbsp;</o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="font-family: Calibri;">
<tbody>
<tr>
<td valign="top" style="border-style: solid none none; border-top-color: rgb(44, 56, 65); border-top-width: 1pt; padding: 0cm 0cm 3pt;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<a href="http://www.jisc.ac.uk/" style="color: rgb(149, 79, 114);"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: blue; text-decoration: none;"><img border="0" width="60" height="35" id="Picture_x0020_1" src="cid:FFA694A5-55F9-4EDB-8449-75DDEF27AEA5" alt="Jisc" type="image/png"></span></a><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding: 7.5pt 0cm 0cm;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">Adam Field</span></b><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><br>
</span><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">SHERPA services analyst developer</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt; on behalf of Lizz Jennings &lt;<a href="mailto:E.Jennings@bath.ac.uk">E.Jennings@bath.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Friday, 6 May 2016 12:54<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [EP-tech] Getting Archive Name as a configuration value<br>
</div>
<div><br>
</div>
<span style="mso-bookmark:_MailOriginalBody">
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Corbel;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks both!&nbsp; I can get it as a phrase – I was just trying to use that as a value in a configuration setting where you might choose to use something other than the
 archive name.&nbsp; e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">$c-&gt;{new_thing} = $c-&gt;{archive_name};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">But not having the $repo object there I’ve struggled to get the phrase into something like $c-&gt;{archive_name}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I couldn’t see a way of getting something like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">$c-&gt;{new_thing} = $repo-&gt;phrase( “archive_name” );<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">It seems slightly wrong to just create a configuration value to get something that’s already in the system as a phrase (in case it changes).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Lizz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2015)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Technical Data Officer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">The Library 4.10, University of Bath, Bath, BA2 7AY UK<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Ext. 3570 (External 01225 383570)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><a href="mailto:E.Jennings@bath.ac.uk"><span lang="SV" style="color:#0563C1">E.Jennings@bath.ac.uk</span></a></span><u><span lang="SV" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(5, 99, 193);"><o:p></o:p></span></u></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Research Data Management:
<a href="http://www.bath.ac.uk/research/data"><span style="color:#0563C1">http://www.bath.ac.uk/research/data</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Adam Field<br>
<b>Sent:</b> 05 May 2016 18:51<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] Getting Archive Name as a configuration value<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">If you have the repository object, you can do:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">$repo-&gt;get_config('archive_name');<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Otherwise, if you don't, in the perl config, you can access stuff that's already been set. &nbsp;E.g. in newfile.pl (in cfg.d), you can do:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">$c-&gt;{new_thing} = $c-&gt;{archive_name} . ' BWAHAHAHA';<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">...but it needs to be alphabetically after the file in which archive_name is already set.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">--<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Adam<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 5 May 2016, at 09:49, Vials Moore, Adam &lt;<a href="mailto:Adam.Moore@liverpool.ac.uk">Adam.Moore@liverpool.ac.uk</a>&gt; wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">Hmmm . . .<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">In phrases (like index.xpage) you use&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">&lt;epc:phrase ref=&quot;archive_name&quot;/&gt;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">Is that what you’re after? Or which config file and I’ll see If I have something similar . . .<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">A<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:<span class="apple-converted-space">&nbsp;</span></span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span style="color:#954F72">eprints-tech-bounces@ecs.soton.ac.uk</span></a>&gt;
 on behalf of &quot;Lizz uk&gt;&quot; &lt;<a href="mailto:e.jennings@bath.ac.uk"><span style="color:#954F72">e.jennings@bath.ac.uk</span></a>&gt;<br>
<b>Reply-To:<span class="apple-converted-space">&nbsp;</span></b>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk"><span style="color:#954F72">eprints-tech@ecs.soton.ac.uk</span></a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk"><span style="color:#954F72">eprints-tech@ecs.soton.ac.uk</span></a>&gt;<br>
<b>Date:<span class="apple-converted-space">&nbsp;</span></b>Wednesday, 4 May 2016 at 12:32<br>
<b>To:<span class="apple-converted-space">&nbsp;</span></b>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk"><span style="color:#954F72">eprints-tech@ecs.soton.ac.uk</span></a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk"><span style="color:#954F72">eprints-tech@ecs.soton.ac.uk</span></a>&gt;<br>
<b>Subject:<span class="apple-converted-space">&nbsp;</span></b>[EP-tech] Getting Archive Name as a configuration value<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Hello,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I feel I’m probably missing something really obvious, but I’m trying to use the Archive name phrase in configuration values.&nbsp; I can’t seem to figure out how to do it.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Any ideas?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Lizz<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">--<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2015)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Technical Data Officer<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">The Library 4.10, University of Bath, Bath, BA2 7AY UK<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="SV" style="font-size: 11pt; font-family: Calibri, sans-serif;">Ext. 3570 (External 01225 383570)</span><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:E.Jennings@bath.ac.uk"><span lang="SV" style="color:#954F72">E.Jennings@bath.ac.uk</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Research Data Management:<span class="apple-converted-space">&nbsp;</span><a href="http://www.bath.ac.uk/research/data"><span style="color:#954F72">http://www.bath.ac.uk/research/data</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">*** Options:<span class="apple-converted-space">&nbsp;</span></span><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif; color: rgb(149, 79, 114);">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><br>
*** Archive:<span class="apple-converted-space">&nbsp;</span></span><a href="http://www.eprints.org/tech.php/"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif; color: rgb(149, 79, 114);">http://www.eprints.org/tech.php/</span></a><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><br>
*** EPrints community wiki:<span class="apple-converted-space">&nbsp;</span></span><a href="http://wiki.eprints.org/"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif; color: rgb(149, 79, 114);">http://wiki.eprints.org/</span></a><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;"><br>
*** EPrints developers Forum:<span class="apple-converted-space">&nbsp;</span></span><a href="http://forum.eprints.org/"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif; color: rgb(149, 79, 114);">http://forum.eprints.org/</span></a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<span style="font-size: 7.5pt; font-family: Corbel, sans-serif;"><br>
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.<br>
<br>
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. </span><o:p></o:p></p>
</div>
</div>
</div>
</span></span>
</body>
</html>