<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Ellis,</p>
    <p>What you say sounds about right. I am not 100% sure the
      following will work but something like it should:</p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-family:Consolas"> &lt;if test="is_set($current_user)
        and $current_user{usertype} = 'editor'"&gt;<o:p></o:p></span><span
        style="font-family:Consolas"><br>
      </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-family:Consolas"> &lt;if test="ROCW"&gt;<o:p></o:p></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-family:Consolas"> &lt;print
        expr="ROCW"/&gt;.<o:p></o:p></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-family:Consolas"> &lt;/if&gt;<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="font-family:Consolas">&lt;/if&gt;</span></p>
    <p class="MsoNormal"><span style="font-family:Consolas"><br>
      </span></p>
    <p class="MsoNormal"><span style="font-family:Consolas">Regards</span></p>
    <p class="MsoNormal"><span style="font-family:Consolas"><br>
      </span></p>
    <p class="MsoNormal"><span style="font-family:Consolas">David Newman<br>
      </span></p>
    <br>
    <div class="moz-cite-prefix">On 11/01/2017 22:18, Eliseo Gatchalian
      wrote:<br>
    </div>
    <blockquote
cite="mid:EMEW3|6f52f8b71ea160280373a05581a0f125y0AMJs14eprints-tech-bounces|ecs.soton.ac.uk|ME1PR01MB1841B945C780A96A039BAE2CCB660@ME1PR01MB1841.ausprd01.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal">I might be missing something and wondering
          if anyone has encountered of might have a fix on this? Weve
          added this script in cfg/citations/eprint/default.xml<o:p></o:p></p>
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:Consolas"> &lt;if
            test="$current_user{usertype} = 'editor'"&gt;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:Consolas"> &lt;if test="ROCW"&gt;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:Consolas"> &lt;print
            expr="ROCW"/&gt;.<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:Consolas"> &lt;/if&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:Consolas">
            &lt;/if&gt;</span><o:p></o:p></p>
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal">When a user is logged in, there is no
          [Error in Script] when viewing citation results. But when not
          logged in, Im getting the error in script.<o:p></o:p></p>
        <p class="MsoNormal"><o:p></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></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>
            <o:p></o:p></span></p>
        <table class="MsoNormalTable" style="width:97.0%" border="0"
          cellpadding="0" width="97%">
          <tbody>
            <tr>
              <td style="padding:.75pt .75pt .75pt .75pt"
                nowrap="nowrap" valign="bottom">
                <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: +64-(0)7-834 8800 ext 8633<br>
                    Fax: +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:
                    <a class="moz-txt-link-abbreviated" href="mailto:ellis.gatchalian@wintec.ac.nz">ellis.gatchalian@wintec.ac.nz</a><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
                      moz-do-not-send="true"
                      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 style="padding:.75pt .75pt .75pt .75pt"
                valign="bottom">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-NZ"><img
                      style="width:2.1458in;height:.9791in"
                      id="Picture_x0020_3"
                      src="cid:part2.14ED63D2.42637B33@ecs.soton.ac.uk"
                      alt="Description: WIN01" height="94" border="0"
                      width="206"></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"><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"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal"><o:p></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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>