EPrints Technical Mailing List Archive

Message: #01283


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: RSS2 confused published date


From the RSS entries, those without a published date don't have a timestamp in the Deposited date e.g.
Date Deposited: 22 Feb 2007 (http://isls-eprints-31.wmin.ac.uk/3482/)
 
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.
 
If you supply data which is not valid (month 27, second 1,000) the results will be unpredictable (so don't do that).
 
I'm guessing that line 142 of: http://trac.eprints.org/eprints/browser/branches/3.3/system/perl_lib/EPrints/Plugin/Export/RSS2.pm will fail when there's no timestamp in the $datestamp - and therefore the pubDate element isn't added.
 
Suggestions:
1. Add an elsif loop to RSS2.pm (copying lines 142-150), but change the test to:
$datestamp =~ /^(\d{4})-(\d{2})-(\d{2})$/
 - which will pick up dates without times, and then use:
 my $time = timelocal( 0, 0, 0, $3, $2-1, $1 );
 
2. Add time data to the eprints that is missing it..?
 
Cheers,
John
 
 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 07 November 2012 12:27
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: RSS2 confused published date

Hi John,

 

Our web people want to use the RSS2 output from from the 'browse by author' output for the staff web CVs

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.

 

I'll take a look at the link you've provided.

Many thanks,

Malcolm.


From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of John Salter [J.Salter@leeds.ac.uk]
Sent: 07 November 2012 10:55
To: 'eprints-tech@ecs.soton.ac.uk'
Subject: [EP-tech] Re: RSS2 confused published date

When I look at the RSS output (http://isls-eprints-31.wmin.ac.uk/cgi/latest_tool?output=RSS2) all items have published dates.
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?
 
You may be able to add microformats to the <item> to help you with this (http://microformats.org/discuss/mail/microformats-discuss/2005-August/000670.html), or change the rendered to extract the (date) from the citation.
 
What renderer are you using (or is it a browser's rendering of the feed? Firefox looks OK - but no green arrows!)?
 
Cheers,
John

 
 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 07 November 2012 10:29
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: RSS2 confused published date

John,

 

Many thanks, that explains.

But, why do I not get the RSS published date on my second example?

Is it possible to replace the RSS published date with the item's published date?

 

Thanks,

Malcolm. 


From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of John Salter [J.Salter@leeds.ac.uk]
Sent: 07 November 2012 10:04
To: 'eprints-tech@ecs.soton.ac.uk'
Subject: [EP-tech] Re: RSS2 confused published date

Malcolm,
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...
 
Cheers,
John


From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 07 November 2012 09:51
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] RSS2 confused published date

Hi,

 

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?

 

Tue, 17 Jun 2008 15:19:13 +0100

A practical approach to conveyancing. 9th edition

http://isls-eprints-31.wmin.ac.uk/5176/

http://isls-eprints-31.wmin.ac.uk/5176/

Abbey, Robert M. and Richards, Mark B.  (2007) A practical approach to conveyancing. 9th edition.    Oxford University Press, Oxford, UK.  ISBN 9780199212316

 

 

A practical approach to conveyancing. 8th edition

http://isls-eprints-31.wmin.ac.uk/2040/

http://isls-eprints-31.wmin.ac.uk/2040/

Abbey, Robert M. and Richards, Mark B.  (2006) A practical approach to conveyancing. 8th edition.    Oxford University Press, Oxford, UK.  ISBN 019928945X

 

 

Regards,

Malcolm.

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.

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.

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.