[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Brian D. Gregg <bdgregg at pitt.edu>
Sent: 25 November 2015 21:34
To: 'eprints-tech at 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<https://maps.google.com/maps?q=7500+Thomas+Blvd,+Pittsburgh,+PA&hl=en&sll=41.117935,-77.604698&sspn=7.662465,13.73291&oq=7500+Tho&t=h&hnear=7500+Thomas+Blvd,+Pittsburgh,+Pennsylvania+15208&z=17>

Tel: (412) 648-3264 | Email: bdgregg at pitt.edu<mailto:bdgregg at pitt.edu> | Fax: (412) 648-3585


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20151125/741bd451/attachment-0001.html