EPrints Technical Mailing List Archive
Message: #05113
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: EPrints and RSS feeds
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: EPrints and RSS feeds
- From: Andrew Hercules <Andrew.Hercules@ulcc.ac.uk>
- Date: Fri, 13 Nov 2015 17:20:35 +0000
Hi John,
I checked the plugins, which lead me to perl_lib/EPrints/XHTML.pm as they call on subroutines in that file.
Here's an example that I pulled from an RSS feed on Goldsmiths (within the description tag for each item):
<description> Banissy, Michael
J. <http://research.gold.ac.uk/view/goldsmiths/Banissy=3AMichael_J=2E=3A=3A.html>; Jonas, Clare and Cohen Kadosh, Roi. 2014. Synesthesia: an introduction. Frontiers in Psychology, 5(1414), pp. 1-3. ISSN 1664-1078 [Article] </description>
I'm trying to remove the following link, which is generated because the author has other items in the same repository:
<http://research.gold.ac.uk/view/goldsmiths/Banissy=3AMichael_J=2E=3A=3A.html>
I'm stumped - I've tried turning off show_links and have also changed the _to_text_dump subroutine, which transforms <a> into " <href>" within the description tag.
Cheers,
Andrew
--
Andrew Hercules
Developer
Digital Archives & Research Technologies
University of London Computer Centre
Senate House, Malet Street, London WC1E 7HU
T: +44 (0)20 7863 1342
E: andrew.hercules@ulcc.ac.uk
W: http://www.ulcc.ac.uk/
The University of London is an exempt charity in England and Wales. We are committed to achieving a 20% cut in emissions from University buildings by 2015. Please think before
you print.
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 13 November 2015 17:00 To: 'eprints-tech@ecs.soton.ac.uk' Subject: [EP-tech] Re: EPrints and RSS feeds Hi, Have you got an example for us to take a look at? In the RSS feed, there are probably links you want/need (e.g in the individual <item>s).
The RSS feeds are generated as an export from ~/perl_lib/EPrints/Plugin/Export/RSS.pm or ~/perl_lib/EPrints/Plugin/Export/RSS2.pm
- the key to what you’re trying to do may well be in one of these…
Cheers, John
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Hercules
Hi everyone,
Just wondering if anybody has experience changing the way that RSS feeds display citation information. I'm trying to eliminate links as they are adding an additional space that's causing confusion with third-party sites that consume the RSS feed.
By default, in perl_lib/EPrints/XHTML.pm, show_links is enabled with show_links => 0. I tried changing the 0 to a 1 and to undef, but the link still persists. Likewise, I also tried modifying the _to_text_dump subroutine in perl_lib/EPrints/XHTML.pm by specifying that $contents .= "", but the link still shows.
Any thoughts or suggestions on where else I should look would be much appreciated as I'm still learning the ins and outs of EPrints.
Have a great weekend!
Cheers,
Andrew
-- Andrew Hercules Developer Digital Archives & Research Technologies University of London Computer Centre Senate House, Malet Street, London WC1E 7HU T: +44 (0)20 7863 1342
The University of London is an exempt charity in England and Wales. We are committed to achieving a 20% cut in emissions from University buildings by 2015. Please think before you print. |
- References:
- [EP-tech] EPrints and RSS feeds
- From: Andrew Hercules <Andrew.Hercules@ulcc.ac.uk>
- [EP-tech] Re: EPrints and RSS feeds
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] EPrints and RSS feeds
- Prev by Date: [EP-tech] Re: EPrints and RSS feeds
- Next by Date: [EP-tech] Re: RIS plugin problems (utf8 and journal title)
- Previous by thread: [EP-tech] Re: EPrints and RSS feeds
- Next by thread: [EP-tech] Re: EPrints and RSS feeds
- Index(es):