EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #01264


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

[EP-tech] {Disarmed} RE: Date order of RSS feed


Hi Sheraaz,

 

Many thanks for this, but what version are you using? I'm using 3.2.3 and 3.3.6 and it does not appear to make any difference. Whereas, I know it should. I am running epadmin reload eprints and restarting apache.

I also require this for staff profiles.

 

Thanks.

Regards,

Malcolm. 

 

From: Sheraaz Buksh [sheraaz.a.buksh@usp.ac.fj]
Sent: 01 November 2012 23:19
To: Malcolm Bodger
Cc: eprints-tech@ecs.soton.ac.uk
Subject: RE: Date order of RSS feed

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: MailScanner has detected a possible fraud attempt from "amsprd0710.outlook.com" claiming to be www.research.usp.ac.fj/research-staff

 

12345

 

 

 

 

From: Malcolm Bodger [mailto:M.Bodger@westminster.ac.uk]
Sent: 02 November 2012 3:31 AM
To: Sheraaz Buksh; eprints-tech@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@usp.ac.fj]
Sent: 31 October 2012 22:49
To: eprints-tech@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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 31 October 2012 12:54 AM
To: eprints-tech@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.

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.