<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Add</p>
    <p><span class="pl-k">sub</span> <span class="pl-en">is_feed</span>
      { <span class="pl-k">return</span> 0; }</p>
    Which will keep it as an export plugin but prevent it being in the
    list of feeds on search and view pages.<br>
    <br>
    <div class="moz-cite-prefix">On 23/11/2017 11:25, Andrew Beeken
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:EMEW3|1c1d012234ec22927e9047552aa4b267yAMBQP14eprints-tech-bounces|ecs.soton.ac.uk|AM0PR0602MB3426CEF9F2D53F73B6FC5BD28E210@AM0PR0602MB3426.eurprd06.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@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;
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
p.msonormal00, li.msonormal00, div.msonormal00
        {mso-style-name:msonormal0;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.emailstyle20
        {mso-style-name:emailstyle20;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.emailstyle21
        {mso-style-name:emailstyle21;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.emailstyle22
        {mso-style-name:emailstyle22;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.emailstyle23
        {mso-style-name:emailstyle23;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.emailstyle24
        {mso-style-name:emailstyle24;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.htmlpreformattedchar0
        {mso-style-name:htmlpreformattedchar;
        font-family:Consolas;
        color:black;}
span.emailstyle27
        {mso-style-name:emailstyle27;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle33
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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 class="WordSection1">
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US">So! Any
            ideas how I stop the RSS icon for this feed showing up on
            browse views? :D<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US"><o:p> </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 style="color:windowtext"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext" lang="EN-US"> Andrew Beeken
                <br>
                <b>Sent:</b> 23 November 2017 11:19<br>
                <b>To:</b> '<a class="moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>'
                <a class="moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
                <b>Subject:</b> RE: [EP-tech] Adding items to EP-XML
                template<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US">Thanks
            for all the replies – changing the RegEx and the date has
            worked, however there is the issue now that some of our data
            contains incomplete dates. I’m working on adding in some
            extra regex checks to pad the dates as necessary and that
            seems to be effective so far!<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US">I’ve got
            some other bits to clean up on EPrints before 2018 so you
            may not have heard the last of me
          </span><span style="font-family:&quot;Segoe UI
            Emoji&quot;,sans-serif;color:windowtext;mso-fareast-language:EN-US">😉</span><span
            style="color:windowtext;mso-fareast-language:EN-US"> (Not a
            threat, honest!)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-US"><o:p> </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 style="color:windowtext"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext" lang="EN-US">
                <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                  moz-do-not-send="true">eprints-tech-bounces@ecs.soton.ac.uk</a>
                [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                  moz-do-not-send="true">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
                <b>On Behalf Of </b>Andrew Beeken<br>
                <b>Sent:</b> 21 November 2017 20:25<br>
                <b>To:</b> <a
                  href="mailto:eprints-tech@ecs.soton.ac.uk"
                  moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a>;
                John Salter &lt;<a href="mailto:j.salter@leeds.ac.uk"
                  moz-do-not-send="true">j.salter@leeds.ac.uk</a>&gt;;
                Christopher Gutteridge &lt;<a
                  href="mailto:cjg@ecs.soton.ac.uk"
                  moz-do-not-send="true">cjg@ecs.soton.ac.uk</a>&gt;<br>
                <b>Subject:</b> Re: [EP-tech] Adding items to EP-XML
                template<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">Thanks
              for responses guys.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">I totally
              agree that this isn't the correct use for this feed but
              I'll bite my tongue lest I say something unprofessional ;)<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">My
              comment about the date was more that this isn't the date
              we need, rather than it was incorrect for its purpose.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">Of course
              I'll be implementing this in a unique feed! :)<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">I'll take
              a look at suggestions tomorrow and let you know how I get
              on.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">On a
              related note, I'll be moving off EPrints work at the
              University as of next January following a reshuffle of
              staff roles. I'll still be here but my focus will be more
              on library systems development, so some of us may cross
              paths again in the future. But thanks to everyone on this
              list for the help and support over the last few years (and
              beer for those who I've met in person in places like
              Dublin and Edinburgh!) I won't pretend I've come away
              knowing everything about EPrints; the code still baffles
              me on a number of levels which I find frustrating as
              someone who has coded for a living for 15 years, but I'm
              thankful for your patience, especially as I've been
              working on moving our repository to its new home. I'm not
              sure who at Lincoln will be replacing me on EPrints duty
              but whoever it is will get a recommended list of names of
              people to badger ;)<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">Once
              again, a massive thanks, I'll let you know how I get on
              with this feed.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="font-family:&quot;Arial&quot;,sans-serif">Andrew<o:p></o:p></span></p>
        </div>
        <div>
          <div>
            <p class="MsoNormal"><span
                style="font-family:&quot;Arial&quot;,sans-serif">Get </span><a
                href="https://aka.ms/ghei36" moz-do-not-send="true"><span
                  style="font-family:&quot;Arial&quot;,sans-serif">Outlook
                  for Android</span></a><span
                style="font-family:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
          </div>
          <p class="MsoNormal"><span
              style="font-family:&quot;Arial&quot;,sans-serif"><o:p> </o:p></span></p>
        </div>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr size="2" align="center" width="98%">
        </div>
        <div id="divRplyFwdMsg">
          <p class="MsoNormal"><b>From:</b> Christopher Gutteridge &lt;<a
              href="mailto:cjg@ecs.soton.ac.uk" moz-do-not-send="true">cjg@ecs.soton.ac.uk</a>&gt;<br>
            <b>Sent:</b> Tuesday, November 21, 2017 5:01:59 PM<br>
            <b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk"
              moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a>;
            John Salter; Andrew Beeken<br>
            <b>Subject:</b> Re: [EP-tech] Adding items to EP-XML
            template <o:p></o:p></p>
          <div>
            <p class="MsoNormal"> <o:p></o:p></p>
          </div>
        </div>
        <div>
          <p>Yes, what John said :)<o:p></o:p></p>
          <p>By the way, for some of our sites, we use the normal views
            feature for this. Every /view/ page can have a .include
            file. eg.
            <o:p></o:p></p>
          <p><a
href="https://eprints.soton.ac.uk/view/people/bf4af598-26bf-47f4-a0a4-800095a23eb5.html"
              moz-do-not-send="true">https://eprints.soton.ac.uk/view/people/bf4af598-26bf-47f4-a0a4-800095a23eb5.html</a><o:p></o:p></p>
          <p>has a matching<o:p></o:p></p>
          <p><a
href="https://eprints.soton.ac.uk/view/people/bf4af598-26bf-47f4-a0a4-800095a23eb5.include"
              moz-do-not-send="true">https://eprints.soton.ac.uk/view/people/bf4af598-26bf-47f4-a0a4-800095a23eb5.include</a>
            <o:p></o:p></p>
          <p>with just the HTML of the main bit in. Handy to include
            elsewhere.<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <div>
            <p class="MsoNormal">On 21/11/2017 16:49, John Salter wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p>&gt; Both "date" and "datestamp" should be stored in
                the same format in EPrints:<o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">Ah, Mr.
                  Gutteridge…  close, but no cigar! :o)</span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">The
                  'date' field normally doesn't include the time
                  component - so the regex</span><o:p></o:p></p>
              <p class="MsoNormal">/^(\d{4})-(\d{2})-(\d{2})
                (\d{2}):(\d{2}):(\d{2})$/<o:p></o:p></p>
              <p class="MsoNormal">won't match. This should:<o:p></o:p></p>
              <p class="MsoNormal">/^(\d{4})-(\d{2})-(\d{2})$/<o:p></o:p></p>
              <p class="MsoNormal"> <o:p></o:p></p>
              <p class="MsoNormal">*<b>BUT</b>* I'd advise against
                updating the RSS2 feed to do this. People may be using
                it in the way it's intended.<o:p></o:p></p>
              <p class="MsoNormal">I'd subclass the RSS2 feed - adding
                your new date sorting method.<o:p></o:p></p>
              <p class="MsoNormal">-OR- configure an author browse view,
                and use the RSS links embedded in them (or pull in the
                .include version of the view page).<o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">Cheers,</span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">John</span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
              <div>
                <div style="border:none;border-top:solid #E1E1E1
                  1.0pt;padding:3.0pt 0cm 0cm 0cm">
                  <p class="MsoNormal"><b><span style="color:windowtext"
                        lang="EN-US">From:</span></b><span
                      style="color:windowtext" lang="EN-US">
                    </span><a
                      href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                      style="color:windowtext" lang="EN-US"> [</span><a
                      href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                      style="color:windowtext" lang="EN-US">]
                      <b>On Behalf Of </b>Christopher Gutteridge<br>
                      <b>Sent:</b> 21 November 2017 16:28<br>
                      <b>To:</b> </span><a
                      href="mailto:eprints-tech@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                      style="color:windowtext" lang="EN-US">; Andrew
                      Beeken
                    </span><a href="mailto:anbeeken@lincoln.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">&lt;anbeeken@lincoln.ac.uk&gt;</span></a><span
                      style="color:windowtext" lang="EN-US"><br>
                      <b>Subject:</b> Re: [EP-tech] Adding items to
                      EP-XML template</span><o:p></o:p></p>
                </div>
              </div>
              <p class="MsoNormal"> <o:p></o:p></p>
              <p>That's the correct behaviour for an RSS feed. I'm
                guessing the logic of this is that your website has an
                RSS importer already that makes it the desired route.<o:p></o:p></p>
              <p>Both "date" and "datestamp" should be stored in the
                same format in EPrints, so you should just have this:<o:p></o:p></p>
              <p class="MsoNormal"
                style="margin-left:36.0pt;text-indent:36.0pt">my
                $datestamp = $eprint-&gt;get_value( "date" );<o:p></o:p></p>
              <p class="MsoNormal">                                if(
                $datestamp =~ /^(\d{4})-(\d{2})-(\d{2})
                (\d{2}):(\d{2}):(\d{2})$/ )<o:p></o:p></p>
              <p class="MsoNormal">                                {<o:p></o:p></p>
              <p class="MsoNormal">                                               
                my $time = timelocal( $6, $5, $4, $3, $2-1, $1 );<o:p></o:p></p>
              <p class="MsoNormal">                                               
                $item-&gt;appendChild( $session-&gt;render_data_element(<o:p></o:p></p>
              <p class="MsoNormal">                                                               
                2,<o:p></o:p></p>
              <p class="MsoNormal">                                                               
                "pubDate",<o:p></o:p></p>
              <p class="MsoNormal">                                                               
                EPrints::Time::rfc822_datetime( $time ) ) );<o:p></o:p></p>
              <p class="MsoNormal" style="margin-bottom:12.0pt">                               
                }<br>
                <br>
                So now it's an RSS feed with the dates of the items in
                the catalogue, rather than of catalogue records.<o:p></o:p></p>
              <div>
                <p class="MsoNormal">On 21/11/2017 16:05, Andrew Beeken
                  wrote:<o:p></o:p></p>
              </div>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <p class="MsoNormal">Okay, so the goalposts have shifted
                  on this since talking in more detail with our ICT
                  team!<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">Basically, our repository feeds our
                  staff directory pages in real time using the available
                  feeds; specifically this feed:
                  <a
href="http://eprints.lincoln.ac.uk/cgi/exportview/creators/userid/RSS2/userid.xml"
                    moz-do-not-send="true">
http://eprints.lincoln.ac.uk/cgi/exportview/creators/userid/RSS2/userid.xml</a>.
                  I did question why the RSS2 feed was being used and
                  received the answer that this particular feed formats
                  up a “Description” which can be pulled straight into
                  the staff profiles which are then ordered based on the
                  date on the record. So far, so good, but the issue at
                  hand is those dates. I initially thought the problem
                  was the format that the dates were coming out in and
                  proposed that we include the records pre-formatted
                  citation in the standard XML feed for them.<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">However, it now transpires that the
                  date on the RSS2 feed is just plain wrong; it’s using
                  the datestamp, when the record was created, rather
                  than the date that the article, book etc was
                  published, as stored in the date field. For the
                  academics this means that the records on their staff
                  profile are not in publication order. So we come back
                  to the decision – use the standard XML file and add
                  the citation, or change the RSS2 template to use the
                  published date rather than the created date. ICT would
                  prefer the latter so that they don’t have to change
                  the staff directory code.<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">I’ve been taking a look at the
                  latter an I think I’ve found the chunk in the RSS2
                  script that deals with the date:<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal"
                  style="margin-left:36.0pt;text-indent:36.0pt">my
                  $datestamp = $eprint-&gt;get_value( "datestamp" );<o:p></o:p></p>
                <p class="MsoNormal">                                if(
                  $datestamp =~ /^(\d{4})-(\d{2})-(\d{2})
                  (\d{2}):(\d{2}):(\d{2})$/ )<o:p></o:p></p>
                <p class="MsoNormal">                                {<o:p></o:p></p>
                <p class="MsoNormal">                                               
                  my $time = timelocal( $6, $5, $4, $3, $2-1, $1 );<o:p></o:p></p>
                <p class="MsoNormal">                                               
                  $item-&gt;appendChild(
                  $session-&gt;render_data_element(<o:p></o:p></p>
                <p class="MsoNormal">                                                               
                  2,<o:p></o:p></p>
                <p class="MsoNormal">                                                               
                  "pubDate",<o:p></o:p></p>
                <p class="MsoNormal">                                                               
                  EPrints::Time::rfc822_datetime( $time ) ) );<o:p></o:p></p>
                <p class="MsoNormal">                                }<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">I tried tweaking this to change
                  datestamp to date, however this completely removed the
                  date from the feed. I’m guessing that this is
                  something to do with how the RegEx decides to proceed
                  on the if statement. So I thought I’d see what
                  happened if I just pushed the date straight into the
                  element which… didn’t work…<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">                               
                  $item-&gt;appendChild(
                  $session-&gt;render_data_element(<o:p></o:p></p>
                <p class="MsoNormal">                               
                                  2,<o:p></o:p></p>
                <p class="MsoNormal">                               
                                  "pubDate",<o:p></o:p></p>
                <p class="MsoNormal">                               
                                  EPrints::Time::rfc822_datetime(
                  $eprint-&gt;get_value( "date" ) ) ) );<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal">I’m sure there’s obvious reasons
                  for that which I probably can’t see (I always feel
                  code dyslexic when I look at EPrints source for some
                  reason…) Personally I’d prefer to push the citation in
                  a more capable feed than RSS2 but I think I’m going to
                  be at the behest of the Staff Directory here.<o:p></o:p></p>
                <p class="MsoNormal"> <o:p></o:p></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">From:</span></b><span
                        lang="EN-US"> </span>
                      <a
                        href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                        lang="EN-US"> [</span><a
                        href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                        lang="EN-US">]
                        <b>On Behalf Of </b>John Salter<br>
                        <b>Sent:</b> 21 November 2017 14:53<br>
                        <b>To:</b> </span><a
                        href="mailto:eprints-tech@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                        lang="EN-US"><br>
                        <b>Subject:</b> Re: [EP-tech] Adding items to
                        EP-XML template</span><o:p></o:p></p>
                  </div>
                </div>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal"><span style="color:#1F497D">&gt;</span>
                  <span lang="EN-US">The XML export just exports all the
                    fields on an object</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">Unless that
                    field has</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">    export_as_xml
                    =&gt; 0,</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">- like the
                    suggestions field does by default…</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">What are you
                    trying to achieve with your export?</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">Personally, I'd
                    suggest subclassing that plugin, and adding a
                    citation to it that way - as always, TMTOWTDI!</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">It depends on
                    how and when you'll be calling the plugin.</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">If it's for
                    active, user-generated requests, Adam's method may
                    be more suitable, as the processing is done when a
                    record is saved, rather than when a record is
                    requested.</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">Cheers,</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">John</span><o:p></o:p></p>
                <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></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">From:</span></b><span
                        lang="EN-US"> </span>
                      <a
                        href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                        lang="EN-US"> [</span><a
                        href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                        lang="EN-US">]
                        <b>On Behalf Of </b>Adam Field<br>
                        <b>Sent:</b> 21 November 2017 14:34<br>
                        <b>To:</b> </span><a
                        href="mailto:eprints-tech@ecs.soton.ac.uk"
                        moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                        lang="EN-US"><br>
                        <b>Subject:</b> Re: [EP-tech] Adding items to
                        EP-XML template</span><o:p></o:p></p>
                  </div>
                </div>
                <p class="MsoNormal"> <o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">Hi Andrew</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">               
                    The XML export just exports all the fields on an
                    object.  I wouldn’t modify it if I were you.  The
                    simplest way would be to add a new field to your
                    item.</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">               
                    I’m not sure if virtual fields come out in the XML
                    export, but if they do, adding a virtual field to
                    your object may be the easiest way to do this. 
                    Alternatively, use an automatic field and write the
                    citation to it.  See </span><o:p></o:p></p>
                <p class="MsoNormal" style="text-align:justify"><a
                    href="https://wiki.eprints.org/w/Training_Video:Virtual_Fields"
                    moz-do-not-send="true"><span lang="EN-US">https://wiki.eprints.org/w/Training_Video:Virtual_Fields</span></a><span
                    lang="EN-US"> and
                  </span><a
                    href="https://wiki.eprints.org/w/Training_Video:Automatic_Fields"
                    moz-do-not-send="true"><span lang="EN-US">https://wiki.eprints.org/w/Training_Video:Automatic_Fields</span></a>
                  <o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">--</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US">Adam</span><o:p></o:p></p>
                <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
                <div style="border:none;border-top:solid #B5C4DF
                  1.0pt;padding:3.0pt 0cm 0cm 0cm">
                  <p class="MsoNormal" style="margin-left:36.0pt"><b><span
                        lang="EN-US">From: </span>
                    </b><span lang="EN-US">&lt;</span><a
                      href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span
                      lang="EN-US">&gt; on behalf of Andrew Beeken &lt;</span><a
                      href="mailto:anbeeken@lincoln.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">anbeeken@lincoln.ac.uk</span></a><span
                      lang="EN-US">&gt;<br>
                      <b>Reply-To: </b>&lt;</span><a
                      href="mailto:eprints-tech@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                      lang="EN-US">&gt;<br>
                      <b>Date: </b>Tuesday, 21 November 2017 14:24<br>
                      <b>To: </b>"</span><a
                      href="mailto:eprints-tech@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                      lang="EN-US">" &lt;</span><a
                      href="mailto:eprints-tech@ecs.soton.ac.uk"
                      moz-do-not-send="true"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span
                      lang="EN-US">&gt;<br>
                      <b>Subject: </b>[EP-tech] Adding items to EP-XML
                      template</span><o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal" style="margin-left:36.0pt"><span
                      style="font-family:&quot;Times New
                      Roman&quot;,serif" lang="EN-US"> </span><o:p></o:p></p>
                </div>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US">Hi all,</span><o:p></o:p></p>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US">Just took a dive into the EPrints XML
                    export template
                    (perl_lib/EPrints/Plugin/Export/XML.pm) to try and
                    add a node for the records citation to it and I
                    can’t see where you would do this? Is there
                    somewhere separate that defines what data it pulls
                    through?</span><o:p></o:p></p>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US"> </span><o:p></o:p></p>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US">Cheers in advance!</span><o:p></o:p></p>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US">Andrew</span><o:p></o:p></p>
                <div>
                  <p class="MsoNormal" style="margin-left:36.0pt"><span
                      lang="EN-US"><br>
                    </span><a href="http://www.lincoln.ac.uk/opendays"
                      moz-do-not-send="true"><span style="border:solid
                        windowtext
                        1.0pt;padding:0cm;text-decoration:none"
                        lang="EN-US"><img
                          style="width:7.8541in;height:1.3541in"
                          id="Picture_x0020_2"
                          src="cid:part29.0493F1EB.940C11B4@ecs.soton.ac.uk"
                          alt="Image removed by sender. EF Gold"
                          class="" width="754" border="0" height="130"></span></a><span
                      lang="EN-US"><br>
                      <br>
                      <b>The University of Lincoln, located in the heart
                        of the city of Lincoln, has established an
                        international reputation based on high student
                        satisfaction, excellent graduate employment and
                        world-class research.</b></span><o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif"
                      lang="EN-US"><br>
                      The information in this e-mail and any attachments
                      may be confidential. If you have received this
                      email in error please notify the sender
                      immediately and remove it from your system. Do not
                      disclose the contents to another person or take
                      copies.<br>
                      <br>
                      Email is not secure and may contain viruses. The
                      University of Lincoln makes every effort to ensure
                      email is sent without viruses, but cannot
                      guarantee this and recommends recipients take
                      appropriate precautions.<br>
                      <br>
                      The University may monitor email traffic data and
                      content in accordance with its policies and
                      English law. Further information can be found at:
                    </span><a href="http://www.lincoln.ac.uk/legal"
                      moz-do-not-send="true"><span
                        style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif"
                        lang="EN-US">http://www.lincoln.ac.uk/legal</span></a><span
style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif"
                      lang="EN-US">.</span><span lang="EN-US">
                    </span><o:p></o:p></p>
                </div>
                <p class="MsoNormal" style="margin-left:36.0pt"><span
                    lang="EN-US">*** Options: </span>
                  <a
                    href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
                    moz-do-not-send="true"><span lang="EN-US">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span
                    lang="EN-US"> *** Archive:
                  </span><a href="http://www.eprints.org/tech.php/"
                    moz-do-not-send="true"><span lang="EN-US">http://www.eprints.org/tech.php/</span></a><span
                    lang="EN-US"> *** EPrints community wiki:
                  </span><a href="http://wiki.eprints.org/"
                    moz-do-not-send="true"><span lang="EN-US">http://wiki.eprints.org/</span></a><span
                    lang="EN-US"> *** EPrints developers Forum:
                  </span><a href="http://forum.eprints.org/"
                    moz-do-not-send="true"><span lang="EN-US">http://forum.eprints.org/</span></a>
                  <o:p></o:p></p>
                <p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
                <pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre>
                <pre>*** Archive: <a href="http://www.eprints.org/tech.php/" moz-do-not-send="true">http://www.eprints.org/tech.php/</a><o:p></o:p></pre>
                <pre>*** EPrints community wiki: <a href="http://wiki.eprints.org/" moz-do-not-send="true">http://wiki.eprints.org/</a><o:p></o:p></pre>
                <pre>*** EPrints developers Forum: <a href="http://forum.eprints.org/" moz-do-not-send="true">http://forum.eprints.org/</a><o:p></o:p></pre>
              </blockquote>
              <p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
              <pre>-- <o:p></o:p></pre>
              <pre>Christopher Gutteridge -- <a href="http://users.ecs.soton.ac.uk/cjg" moz-do-not-send="true">http://users.ecs.soton.ac.uk/cjg</a><o:p></o:p></pre>
              <pre> <o:p></o:p></pre>
              <pre>University of Southampton Open Data Service: <a href="http://data.southampton.ac.uk/" moz-do-not-send="true">http://data.southampton.ac.uk/</a><o:p></o:p></pre>
              <pre>You should read our Web &amp; Data Innovation blog: <a href="http://blogs.ecs.soton.ac.uk/webteam/" moz-do-not-send="true">http://blogs.ecs.soton.ac.uk/webteam/</a><o:p></o:p></pre>
              <pre> <o:p></o:p></pre>
            </div>
            <p class="MsoNormal" style="margin-bottom:12.0pt"><span
                style="color:windowtext"><o:p> </o:p></span></p>
            <pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre>
            <pre>*** Archive: <a href="http://www.eprints.org/tech.php/" moz-do-not-send="true">http://www.eprints.org/tech.php/</a><o:p></o:p></pre>
            <pre>*** EPrints community wiki: <a href="http://wiki.eprints.org/" moz-do-not-send="true">http://wiki.eprints.org/</a><o:p></o:p></pre>
            <pre>*** EPrints developers Forum: <a href="http://forum.eprints.org/" moz-do-not-send="true">http://forum.eprints.org/</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="color:windowtext"><o:p> </o:p></span></p>
          <pre>-- <o:p></o:p></pre>
          <pre>Christopher Gutteridge -- <a href="http://users.ecs.soton.ac.uk/cjg" moz-do-not-send="true">http://users.ecs.soton.ac.uk/cjg</a><o:p></o:p></pre>
          <pre><o:p> </o:p></pre>
          <pre>University of Southampton Open Data Service: <a href="http://data.southampton.ac.uk/" moz-do-not-send="true">http://data.southampton.ac.uk/</a><o:p></o:p></pre>
          <pre>You should read our Web &amp; Data Innovation blog: <a href="http://blogs.ecs.soton.ac.uk/webteam/" moz-do-not-send="true">http://blogs.ecs.soton.ac.uk/webteam/</a><o:p></o:p></pre>
          <pre><o:p> </o:p></pre>
        </div>
      </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>
    <pre class="moz-signature" cols="72">-- 
Christopher Gutteridge -- <a class="moz-txt-link-freetext" href="http://users.ecs.soton.ac.uk/cjg">http://users.ecs.soton.ac.uk/cjg</a>

University of Southampton Open Data Service: <a class="moz-txt-link-freetext" href="http://data.southampton.ac.uk/">http://data.southampton.ac.uk/</a>
You should read our Web &amp; Data Innovation blog: <a class="moz-txt-link-freetext" href="http://blogs.ecs.soton.ac.uk/webteam/">http://blogs.ecs.soton.ac.uk/webteam/</a>

</pre>
  </body>
</html>