EPrints Technical Mailing List Archive
Message: #05435
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] RSS Feed Max. items
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] RSS Feed Max. items
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Date: Tue, 23 Feb 2016 12:05:25 +0000
I agree, these are separate concepts that should have their own settings. Exporting 100+ search results with RSS should be possible without changing the latest items feed. Tomasz ---- Alan.Stiles wrote ---- The 2 things do seem quite separate concepts – you may well want 50-100 items in an RSS feed, but only 10 or so in your latest items (depending on frequency of deposit!)
A separate value seems sensible to me.
Alan
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of John Salter
Excellent :o)
What are people’s thoughts on reusing the latest_tools setting for the export? To me this seems a bit clunky – altering this value now means people using the feeds will get 100 results too…
Would having an ‘export_items_max’ config value be more sensible?
Cheers, John
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Tomasz Neugebauer
Hi John,
Thank you for the quick and efficient answer.
I confirm that adding the following to latest_tool.pl worked:
$c->{latest_tool_modes} = { default => { citation => "result", max => 100 } };
Best wishes, Tomasz
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of John Salter
Hi, A bit of code inspection leads me to this… https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/Search.pm#L516-L536 - which refers to # borrow the max from latest_tool (which we're replicating anyway) my $limit = $self->{session}->config( "latest_tool_modes", "default", "max" );
- the latest_tool_modes is defined in ~/archives/ARCHIVEID/cfg/cfg.d/latest_tool.pl (copied from https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/latest_tool.pl), but currently it doesn’t contain a max value – so the fallback value of 20 in Screen::Search is used.
Does this look like it’s the right thing? Adding a max to latest_tool.pl might work e.g.: $c->{latest_tool_modes} = { default => { citation => "result", max => 100 } };
If that does work, let me know and I’ll add some documentation in latest_tool.pl.
Cheers, John
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Tomasz Neugebauer
Does anyone know how to set the maximum number of items that are shown in the RSS export in EPrints? I searched and found this thread from 2009 with the $self->{number_to_show} parameter described, but that doesn’t seem to be working for me. Thanks!
Tomasz
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of David Kane
Hi John,
You were right. Changing the RSS.pm solved the problem.
Thanks,
David. 2009/10/1 John Salter <J.Salter@leeds.ac.uk>
|
- References:
- [EP-tech] Re: RSS Feed Max. items
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- [EP-tech] Re: RSS Feed Max. items
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] RSS Feed Max. items
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] RSS Feed Max. items
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] RSS Feed Max. items
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Re: RSS Feed Max. items
- Prev by Date: Re: [EP-tech] RSS Feed Max. items
- Next by Date: Re: [EP-tech] RSS Feed Max. items
- Previous by thread: Re: [EP-tech] RSS Feed Max. items
- Next by thread: Re: [EP-tech] RSS Feed Max. items
- Index(es):