<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE id=owaParaStyle>P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19328"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>From the RSS entries, those without a published date don't
have a timestamp in the Deposited date e.g.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>Date Deposited: 22 Feb 2007 (<A
href="http://isls-eprints-31.wmin.ac.uk/3482/">http://isls-eprints-31.wmin.ac.uk/3482/</A>)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>I suspect there's some flawed logic for calculating the
timestamp for the RSS feed - not setting it if any part (Y/M/D/H/m/S) isn't
set.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>From this: </FONT></SPAN><SPAN class=639322416-07112012><FONT
color=#0000ff size=2 face=Arial><A
href="http://perldoc.perl.org/Time/Local.html">http://perldoc.perl.org/Time/Local.html</A> is
states:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012>If you supply data which
is not valid (month 27, second 1,000) the results will be unpredictable (so
don't do that).</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>I'm guessing that line 142 of: <A
href="http://trac.eprints.org/eprints/browser/branches/3.3/system/perl_lib/EPrints/Plugin/Export/RSS2.pm">http://trac.eprints.org/eprints/browser/branches/3.3/system/perl_lib/EPrints/Plugin/Export/RSS2.pm</A> will
fail when there's no timestamp in the $datestamp - and therefore the pubDate
element isn't added.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>Suggestions:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial>1. Add an elsif loop to RSS2.pm (copying lines 142-150), but
change the test to: </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN
class=nv>$datestamp</SPAN> <SPAN class=o>=~</SPAN><SPAN
class=sr> /^(\d{4})-(\d{2})-(\d{2})$/</SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN class=sr><FONT
color=#0000ff size=2 face=Arial> - which will pick up dates without times,
and then use:</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN
class=sr> <SPAN class=k>my</SPAN> <SPAN
class=nv>$time</SPAN> <SPAN class=o>=</SPAN> timelocal<SPAN
class=p>(</SPAN> <SPAN class=nv>0</SPAN><SPAN class=p>,</SPAN> <SPAN
class=nv>0</SPAN><SPAN class=p>,</SPAN> <SPAN class=nv>0</SPAN><SPAN
class=p>,</SPAN> <SPAN class=nv>$3</SPAN><SPAN class=p>,</SPAN> <SPAN
class=nv>$2</SPAN><SPAN class=o>-</SPAN><SPAN class=mi>1</SPAN><SPAN
class=p>,</SPAN> <SPAN class=nv>$1</SPAN> <SPAN
class=p>);</SPAN></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN class=sr><SPAN
class=p></SPAN></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN class=sr><SPAN
class=p><FONT color=#0000ff size=2 face=Arial>2. Add time data to the eprints
that is missing it..?</FONT></SPAN></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN class=sr><SPAN
class=p><FONT color=#0000ff size=2
face=Arial></FONT></SPAN></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><SPAN class=sr><SPAN
class=p><FONT color=#0000ff size=2
face=Arial>Cheers,<BR>John</FONT></SPAN></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=639322416-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>From:</B>
eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] <B>On Behalf Of </B>Malcolm
Bodger<BR><B>Sent:</B> 07 November 2012 12:27<BR><B>To:</B>
eprints-tech@ecs.soton.ac.uk<BR><B>Subject:</B> [EP-tech] Re: RSS2 confused
published date<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="FONT-FAMILY: Times New Roman; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 12pt">
<P>Hi John,</P>
<P> </P>
<P>Our web people want to use the RSS2 output from from the 'browse by author'
output for the staff web CVs</P>
<P>Opening the RSS2 feed on the 'Browse by Author' output for 'Abbey, Robert M'
gives me the date and the green arrows, which I also get on the 'latest_tool'
link. The dates do appear to be the deposited dates.</P>
<P> </P>
<P>I'll take a look at the link you've provided.</P>
<P>Many thanks,</P>
<P>Malcolm.</P>
<DIV style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<HR tabIndex=-1>
<DIV style="DIRECTION: ltr" id=divRpF499763><FONT color=#000000 size=2
face=Tahoma><B>From:</B> eprints-tech-bounces@ecs.soton.ac.uk
[eprints-tech-bounces@ecs.soton.ac.uk] on behalf of John Salter
[J.Salter@leeds.ac.uk]<BR><B>Sent:</B> 07 November 2012 10:55<BR><B>To:</B>
'eprints-tech@ecs.soton.ac.uk'<BR><B>Subject:</B> [EP-tech] Re: RSS2 confused
published date<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=861523810-07112012><FONT color=#0000ff
size=2 face=Arial>When I look at the RSS output (<A
href="http://isls-eprints-31.wmin.ac.uk/cgi/latest_tool?output=RSS2"
target=_blank>http://isls-eprints-31.wmin.ac.uk/cgi/latest_tool?output=RSS2</A>)
all items have published dates.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861523810-07112012><FONT color=#0000ff
size=2 face=Arial>The 'little green arrow' sounds like you're putting the RSS
through some form of renderer - which may be grouping same-RSS-published-dates
together?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861523810-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861523810-07112012></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2>Y<SPAN class=861523810-07112012>ou
may be able to add microformats to the <item> to help you with this (<A
href="http://microformats.org/discuss/mail/microformats-discuss/2005-August/000670.html"
target=_blank>http://microformats.org/discuss/mail/microformats-discuss/2005-August/000670.html</A>),
or change the rendered to extract the (date) from the
citation.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=861523810-07112012></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=861523810-07112012>What renderer are you using (or is it a browser's
rendering of the feed? Firefox looks OK - but no green
arrows!)?</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=861523810-07112012></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=861523810-07112012>Cheers,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=861523810-07112012>John</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><BR></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] <B>On Behalf Of </B>Malcolm
Bodger<BR><B>Sent:</B> 07 November 2012 10:29<BR><B>To:</B>
eprints-tech@ecs.soton.ac.uk<BR><B>Subject:</B> [EP-tech] Re: RSS2 confused
published date<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="FONT-FAMILY: Times New Roman; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 12pt">
<P>John,</P>
<P> </P>
<P>Many thanks, that explains. </P>
<P>But, why do I not get the RSS published date on my second example?</P>
<P>Is it possible to replace the RSS published date with the item's published
date?</P>
<P> </P>
<P>Thanks,</P>
<P>Malcolm. </P>
<DIV style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<HR tabIndex=-1>
<DIV style="DIRECTION: ltr" id=divRpF80043><FONT color=#000000 size=2
face=Tahoma><B>From:</B> eprints-tech-bounces@ecs.soton.ac.uk
[eprints-tech-bounces@ecs.soton.ac.uk] on behalf of John Salter
[J.Salter@leeds.ac.uk]<BR><B>Sent:</B> 07 November 2012 10:04<BR><B>To:</B>
'eprints-tech@ecs.soton.ac.uk'<BR><B>Subject:</B> [EP-tech] Re: RSS2 confused
published date<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=037450210-07112012><FONT color=#0000ff
size=2 face=Arial>Malcolm,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=037450210-07112012><FONT color=#0000ff
size=2 face=Arial>I think you may be confusing the RSS published date (e.g.
the date that the record appeared in the RSS feed - the deposit date - which is
needed for RSS to work out what's going on), and the item-published-date. I
would not expect these to be the same...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=037450210-07112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=037450210-07112012><FONT color=#0000ff
size=2 face=Arial>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=037450210-07112012><FONT color=#0000ff
size=2 face=Arial>John</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] <B>On Behalf Of </B>Malcolm
Bodger<BR><B>Sent:</B> 07 November 2012 09:51<BR><B>To:</B>
eprints-tech@ecs.soton.ac.uk<BR><B>Subject:</B> [EP-tech] RSS2 confused
published date<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="FONT-FAMILY: Times New Roman; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 12pt">
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal>Hi,</P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal>I'm trying to get the
published date to appear before that little green arrow on the RSS2 output, but
what I get is the date of deposit. Here, looking at the page source, the
document was published in (2007) but the top line shows the date it was
deposited - 17th June 2008. The second example shows no top line even though the
deposit and published date are entered. Looking at the top line in the first
example, it is flagged as being the 'pubDate' so I would expect '2007' to appear
and not 'Tue, 17 Jun 2008 15:19:13 +0100' Can someone give me a clue
here? Why is the deposit date shown and not the published date? Why do some have
no date at all? Is it something to do with null values for the published
date?</P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 54pt" class=MsoNormal>Tue, 17 Jun 2008 15:19:13
+0100</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt" class=MsoNormal>A practical approach to
conveyancing. 9th edition</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt"
class=MsoNormal>http://isls-eprints-31.wmin.ac.uk/5176/</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt"
class=MsoNormal>http://isls-eprints-31.wmin.ac.uk/5176/</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt" class=MsoNormal>Abbey, Robert M. and
Richards, Mark B.<SPAN> </SPAN>(2007) A practical approach to
conveyancing. 9th edition.<SPAN> </SPAN>Oxford University
Press, Oxford, UK.<SPAN> </SPAN>ISBN 9780199212316</P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 54pt" class=MsoNormal>A practical approach to
conveyancing. 8th edition</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt"
class=MsoNormal>http://isls-eprints-31.wmin.ac.uk/2040/</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt"
class=MsoNormal>http://isls-eprints-31.wmin.ac.uk/2040/</P>
<P style="MARGIN: 0cm 0cm 0pt 54pt" class=MsoNormal>Abbey, Robert M. and
Richards, Mark B.<SPAN> </SPAN>(2006) A practical approach to
conveyancing. 8th edition.<SPAN> </SPAN>Oxford University
Press, Oxford, UK.<SPAN> </SPAN>ISBN 019928945X</P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal> </P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal>Regards,</P>
<P style="MARGIN: 0cm 0cm 0pt 36pt" class=MsoNormal>Malcolm.</P></DIV>
<DIV align=center>
<P><FONT color=black size=0
face="Arial, Helvetica, sans-serif">The University of Westminster
is a charity and a company limited by guarantee.
Registration number: 977818 England.
Registered Office: 309 Regent Street,
London W1B 2UW.</P></FONT></DIV></DIV></DIV></DIV>
<DIV align=center>
<P><FONT color=black size=0
face="Arial, Helvetica, sans-serif">The University of Westminster
is a charity and a company limited by guarantee.
Registration number: 977818 England.
Registered Office: 309 Regent Street,
London W1B 2UW.</P></FONT></DIV></DIV></DIV></DIV>
<DIV align=center>
<P><FONT color=black size=0
face="Arial, Helvetica, sans-serif">The University of Westminster
is a charity and a company limited by guarantee.
Registration number: 977818 England.
Registered Office: 309 Regent Street,
London W1B 2UW.</P></FONT></DIV></BODY></HTML>