EPrints Technical Mailing List Archive
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
- To: Sheraaz Buksh <sheraaz.a.buksh@usp.ac.fj>
- Subject: [EP-tech] {Disarmed} RE: Date order of RSS feed
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- Date: Fri, 2 Nov 2012 15:36:15 +0000
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.
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. 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. |
- 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] Re: Date order of RSS feed
- From: Sheraaz Buksh <sheraaz.a.buksh@usp.ac.fj>
- [EP-tech] Date order of RSS feed
- Prev by Date: [EP-tech] Estimate time for script execution
- Next by Date: [EP-tech] eprints.soton does not seem to be openaire compliant
- Previous by thread: [EP-tech] Re: Date order of RSS feed
- Next by thread: [EP-tech] Metadata indicating full-text deposits for institutional repositories
- Index(es):