<html 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@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]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I might be missing something and wondering if anyone has encountered of might have a fix on this?&nbsp; We&#8217;ve added this script in cfg/citations/eprint/default.xml<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Consolas">&nbsp;&nbsp; &lt;if test=&quot;$current_user{usertype} = 'editor'&quot;&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test=&quot;ROCW&quot;&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;print expr=&quot;ROCW&quot;/&gt;.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">&nbsp;&nbsp; &lt;/if&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When a user is logged in, there is no [Error in Script] when viewing citation results.&nbsp; But when not logged in, I&#8217;m getting the error in script.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I think it might be with $current_user{usertype} variable not declared/not used when not logged in, thus the error?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ"><br>
&nbsp;<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="97%" style="width:97.0%">
<tbody>
<tr>
<td nowrap="" valign="bottom" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ">Ellis Gatchalian</span></b><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ"><br>
Systems Librarian<br>
Wintec<br>
Private Bag 3036, Waikato Mail Centre, Hamilton 3240<br>
Phone: &#43;64-(0)7-834 8800 ext 8633<br>
Fax: &#43;64-(0)7-838 8257<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ">Email: ellis.gatchalian@wintec.ac.nz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ">Web:
</span><span style="mso-fareast-language:EN-NZ"><a href="http://www.wintec.ac.nz/"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333">http://www.wintec.ac.nz/</span></a></span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
</td>
<td valign="bottom" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ"><img border="0" width="206" height="94" style="width:2.1458in;height:.9791in" id="Picture_x0020_3" src="cid:image001.gif@01D26CC5.AADB46A0" alt="Description: WIN01"></span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;mso-fareast-language:EN-NZ">&nbsp;<o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;mso-fareast-language:EN-NZ">&nbsp;<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<hr>
<div style="font-size:8pt;  font-family: 'Calibri',sans-serif; color:#777777">
<p>This electronic mail transmission is intended for the named recipients only. It may contain private and confidential information. If this has come to you in error you must take no action based upon it, nor must you copy it or show it to anyone; please telephone
 or email the sender at Wintec immediately and return the original email. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening
 any attachment which may be included with this message.</p>
</div>
</body>
</html>