EPrints Technical Mailing List Archive

Message: #05520


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

Re: [EP-tech] RSS (2.0) items sort


Hi Tomasz,

You should be able to do this by creating a saved search.  I have checked and the RSS feed from the saved search is accessible without being logged in.  The ability to create saved searches may be restricted to repository admins / editors, so if regular users want to create one you may need to change your permission settings. 

Obviously unauthenticated users would not be able to create their own saved searches, I suspect this is due to this providing an attack vector for a denial of service attack.  But an authenticated user can advertise an RSS feed they have generated from a saved search to users who cannot login.

This all said, I did what you described and did not see a cache attribute in my URL.  What version of EPrints are you running, can you provide the full URL with the cache attribute in.  It may be possible to just remove this attribute, if the actually search definition is part of the URL as well.

Regards

David Newman
EPrints Services

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Tomasz Neugebauer
Sent: 23 March 2016 21:19
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] RSS (2.0) items sort

I need to be able to export in RSS format, the results of an advanced search sorted by date.

In my attempts to do that, if I do the following steps:

1) Perform advanced search 
2) Reorder results "by year (most recent first)" 
3) Export to RSS

I get the RSS feed that I want, sorted correctly, but the URL has a "&cache=#7_digit_number#" at the end, for example "cache=2166198".
The URL without the cache parameter shows an unsorted RSS export, so it looks like the sorting is done only on the cached copy?
Does that mean that a user can't subscribe to that search result as an RSS feed (as it is only a temporary cached copy, and furthermore it will not change if additional items are added to the repository)?

I found the related question on the list from last year that I think was never answered (included below).
How do we sort an RSS export from the advanced search?

Thanks!
Tomasz



-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Laurent Cloarec
Sent: April-03-15 11:58 AM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] RSS (2.0) items sort
Importance: High

Hello there,


What are the ways to sort the RSS feed items produced by RSS2.pm through the "/cgi/search/archive/advanced/export_<archive_id>_RSS2.xml" interface in another order than "Date Deposited" ?
- in an interactive way from an end-user point of view ?
- adding parameters to the URL ??
- modifying the code ???
- in RSS2.pm or elsewhere before ????

Thanks for your answers...

--
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire Bibliothèque Universitaire de l'Arsenal (bureau BU 017) Université Toulouse 1 Capitole
11 rue des Puits-Creusés
BP 7093
31070 TOULOUSE Cedex 07 (France)
tél. : (+33)(0)5.34.45.61.23

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/