EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05319


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

[EP-tech] Re: Views Pagination



…but this feels like it would be a really hairy piece of work.


One thing you could look at is a local render_view_items function:


https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/views_render_items_example.pl


…but you’d need to build the navigation between each page by hand, and make sure each page is generated with a sensible name.

 

Jisc

Adam Field
SHERPA services analyst developer


From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Monica Wood <monica.wood@utas.edu.au>
Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 13 January 2016 01:26
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Re: Views Pagination

Thanks Adam,

Unfortunately separating the pages through multiple fields isn’t what we’re after, as each collection is slightly different.
We do have some alternate grouping on it already and the pagination is only for those collections that have a lot of records.

Do you know which .pm renders the views list pages? Maybe I can look at adding the EPrints::Paginate->paginate_list( $session, $basename, $list, %opts ) routine in there somehow, I’m just unsure which files to look at right now. 

Cheers,

Monica Wood
Library Systems Officer
Library | Division of Students & Education
University of Tasmania
Locked Bag 25
Hobart 7001
T +61 3 6226 1849
http://www.utas.edu.au/library

Available Times
Tues: 9am – 5pm
Wed: 1pm – 5pm
Fri: 9am – 5pm


From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Adam Field <af05v@ecs.soton.ac.uk>
Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Tuesday, 12 January 2016 at 7:15 PM
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Re: Views Pagination

So, I don't believe there is a way of pagination to a list page (i.e. the results themselves), but you can further break down the list by adding another field to the configuration (e.g. first collection, then year).

The best pages in the documentation for Browse Views are:


--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services



On 12 Jan 2016, at 05:24, Monica Wood <Monica.Wood@utas.edu.au> wrote:

Hi there,

Some of our views can shows over 1000 items on a single page (http://eprints.utas.edu.au/view/collections/theses.html Our Theses collection is over 5k),
so I’ve been looking for a way to add Pagination to these pages.

Can anyone point me in the right direction? 

Cheers,

Monica Wood
Library Systems Officer
Library | Division of Students & Education
University of Tasmania
Locked Bag 25
Hobart 7001
T +61 3 6226 1849
http://www.utas.edu.au/library



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.

*** 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/


Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.