EPrints Technical Mailing List Archive
Message: #01261
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Date order of RSS feed
- To: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- Subject: [EP-tech] Re: Date order of RSS feed
- From: Sheraaz Buksh <sheraaz.a.buksh@usp.ac.fj>
- Date: Thu, 1 Nov 2012 23:19:13 +0000
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.
From: Malcolm Bodger [mailto:M.Bodger@westminster.ac.uk]
Hi Sheraaz, I was pointed to a plugin: 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] 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 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. |
- Follow-Ups:
- [EP-tech] {Disarmed} RE: Date order of RSS feed
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- [EP-tech] {Disarmed} RE: Date order of RSS feed
- References:
- [EP-tech] Date order of RSS feed
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- [EP-tech] Re: Date order of RSS feed
- From: Sheraaz Buksh <sheraaz.a.buksh@usp.ac.fj>
- [EP-tech] Re: Date order of RSS feed
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- [EP-tech] Date order of RSS feed
- Prev by Date: [EP-tech] Searching by creators' emails
- Next by Date: [EP-tech] Re: Citation Import Plugin Error
- Previous by thread: [EP-tech] Re: Date order of RSS feed
- Next by thread: [EP-tech] {Disarmed} RE: Date order of RSS feed
- Index(es):