[EP-tech] Re: "max_items" limit
Field A.N.
af05v at ecs.soton.ac.uk
Tue Sep 1 13:43:08 BST 2015
Fantastic! Thanks, Brian.
--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814
On 27 Aug 2015, at 15:27, Brian D. Gregg wrote:
> All,
>
> I've gone ahead and added it to the views documentation here: http://wiki.eprints.org/w/Views.pl
>
> Brian Gregg
> University of Pittsburgh.
>
>
> -----Original Message-----
> From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of John Salter
> Sent: Thursday, August 27, 2015 9:52 AM
> To: 'eprints-tech at ecs.soton.ac.uk' <eprints-tech at ecs.soton.ac.uk>
> Subject: [EP-tech] Re: "max_items" limit
>
> It has been added to the default 'cfg.d/views.pl':
> https://github.com/eprints/eprints/commit/dce1d9c2eca1dcdd89f1906388ba0e45825092ff
>
> - but you're right- this should get a mention in the docs!
>
> Cheers,
> John
>
> -----Original Message-----
> From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Tomasz Neugebauer
> Sent: 27 August 2015 14:41
> To: eprints-tech at ecs.soton.ac.uk
> Subject: [EP-tech] Re: "max_items" limit
>
> Thanks, Gilles. We should try to add this option to the views documentation
>
> http://wiki.eprints.org/w/Views.pl
>
> Tomasz
>
> ________________________________________
> From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Gilles Fournié [gilles.fournie at cirad.fr]
> Sent: Thursday, August 27, 2015 2:06 AM
> To: eprints-tech at ecs.soton.ac.uk
> Subject: [EP-tech] Re: "max_items" limit
>
> Hi,
>
> You can also change max_items in your cfg.d/views.pl :
>
> {
> id => 'year',
> citation => 'view',
> menus => [
> {
> fields => [ 'date;res=year' ],
> reverse_order => 1,
> allow_null => 1,
> }
> ],
> hideup => 1,
> *max_items => 3000*,
> ...
>
> Regards,
> GF
>
> Le 26/08/2015 19:08, Tomasz Neugebauer a écrit :
>> I thought I would share something that we stumbled on recently: there is a max_items limit set somewhere EPrints (I'm not sure where?) that will result in the following error message for browse views that exceed it:
>>
>> "The number of items (2001) for this view has exceeded system limits (2000). The system administrator either needs to increase "max_items" or apply additional filters to this view."
>>
>> Google search of this error message reveals that are a few EPrints repositories that stumble on this limit in their browse views.
>>
>> For us, it was the browse by doctype > theses, as we have more than 2000 theses. We solved this issue by further sub-dividing by year the browse view that was attempting to display more than max_items:
>>
>> id=> "doctype",
>> allow_null => 1,
>> hideempty => 1,
>> menus=>[
>> {
>> fields=>["type"],
>> allow_null => 1,
>> hideempty => 1,
>> },
>> {
>> fields => [ "date;res=year" ],
>> reverse_order => 1,
>> allow_null => 1,
>> hideempty => 1,
>> new_column_at => [10,10],
>> }
>> ],
>> order=>"-date"
>>
>>
>> Tomasz
>>
>>
>>
>> *** 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/
>
> *** 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/
>
> *** 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/
More information about the Eprints-tech
mailing list