EPrints Technical Mailing List Archive

Message: #05178


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

[EP-tech] Re: EPrint history only shows 10 entries.


Hi Brian,

I believe this was fixed sometime (3.3.13 or 3.3.14?): https://github.com/eprints/eprints/issues/219


Be careful rendering all the items - if you have things with big revision histories, they can take a bit of grunt to process...


Cheers,

John






From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Brian D. Gregg <bdgregg@pitt.edu>
Sent: 25 November 2015 21:34
To: 'eprints-tech@ecs.soton.ac.uk'
Subject: [EP-tech] EPrint history only shows 10 entries.
 

All,

 

I thought I’d share this little tidbit for those that ever wondered why their history tab on an EPrint only shows 10 items.

 

In /opt/eprints/perl_lib/EPrints/DataObj/EPrint.pm the function render_history is hard coded to only show the last 10 items in the history.  At least it is in our 3.2.8 installation.

 

If you want to be able to view all of the history (too bad there’s no pagination for this) comment out the “limit => 10,” line and restart your web server for the change to take effect.

 

You should now see all of the history for the EPrint.

 

I hope this helps someone else.

-Brian.

 

Brian D. Gregg

Solutions Architect | Manager Systems Development

University of Pittsburgh | University Library System

Address: 7500 Thomas Blvd.  Room 129 Pittsburgh, PA 15208

Tel: (412) 648-3264 | Email: bdgregg@pitt.edu | Fax: (412) 648-3585