[EP-tech] Re: Date order of RSS feed

Sheraaz Buksh sheraaz.a.buksh at usp.ac.fj
Thu Nov 1 23:19:13 GMT 2012


Hi Malcolm

I have finally managed to find the solution and it is pretty simple. I haven't tried the plugin that you pointed out.

Like I had mentioned before that the data from the mysql database was correctly ordered but it only messed up when exporting to a file. So I looked up the RSS export file which should be located here (for Eprints 3.2) {path to your eprints installation}/eprints3/perl_lib/EPrints/Plugin/Export. Look for the file RSS.pm for (RSS1.0). Find the line;

my $list = $opts{list}->reorder( "-datestamp" );

and change it to

my $list = $opts{list}->reorder( "-date" );

This will order the eprints by the date published. Restart your httpd service and all should be good.

I am using feed2js to pull staff publications from our repository to individual staff profiles on our university's faculty websites.

Good luck.


Regards

Sheraaz Buksh

IT Officer
Office of the Pro-Vice Chancellor (Research & International)
Research Office
The University of the South Pacific
Laucala Campus, Suva, Fiji Islands
Ph: (679) 323 2316
Fax: (679) 323 1504
Website: www.research.usp.ac.fj/research-staff

[12345]<http://www.psi2013.usp.ac.fj/>





From: Malcolm Bodger [mailto:M.Bodger at westminster.ac.uk]
Sent: 02 November 2012 3:31 AM
To: Sheraaz Buksh; eprints-tech at ecs.soton.ac.uk
Subject: RE: Date order of RSS feed


Hi Sheraaz,



I was pointed to a plugin:



http://files.eprints.org/492/

But I can't get it to work, so please let me know if you can.

Regards,
Malcolm.


________________________________
From: Sheraaz Buksh [sheraaz.a.buksh at usp.ac.fj]
Sent: 31 October 2012 22:49
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Cc: Malcolm Bodger
Subject: RE: Date order of RSS feed
Hi there

I have been investigating the same issue. Turning on sql logging on my test server I found out that the results returned from the mysql server upon generating the RSS feed appear to be in the correct order. However, this order is somewhat manipulated when exporting it to a file.

I have even tried $new_list = $list->reorder( "date" ); to reorder the list by date straight after the search function is performed but it doesn't help.

Any ideas will be appreciated.

Regards

Sheraaz


From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 31 October 2012 12:54 AM
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Date order of RSS feed


Hi,



I'm having a problem with the RSS feed in that I would like the output in published date order, not the order deposited.

Using RSS2 I see the deposited date appear as a heading and the published date in brackets in the text. I would like the heading to be the published date. Can anyone advise on this?



Thanks,

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121101/172e145a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 12383 bytes
Desc: image003.jpg
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121101/172e145a/attachment-0001.jpg 


More information about the Eprints-tech mailing list