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

[EP-tech] Re: Views Pagination



https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Update/Views.pm#L484

?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]<http://www.jisc.ac.uk/>

Adam Field
SHERPA services analyst developer


From: <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of Monica Wood <monica.wood at utas.edu.au<mailto:monica.wood at utas.edu.au>>
Reply-To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Date: Wednesday, 13 January 2016 01:26
To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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 at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of Adam Field <af05v at ecs.soton.ac.uk<mailto:af05v at ecs.soton.ac.uk>>
Reply-To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Date: Tuesday, 12 January 2016 at 7:15 PM
To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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:

http://wiki.eprints.org/w/index.php/Trianing_Video:Browse_View_configuration
http://wiki.eprints.org/w/index.php/Adding_new_views
http://wiki.eprints.org/w/index.php/Views.pl

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



On 12 Jan 2016, at 05:24, Monica Wood <Monica.Wood at utas.edu.au<mailto:Monica.Wood at 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.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160113/01bcc6bf/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6B9928AE-9C97-4E75-8330-7E24168F02D7[16].png
Type: image/png
Size: 1264 bytes
Desc: 6B9928AE-9C97-4E75-8330-7E24168F02D7[16].png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160113/01bcc6bf/attachment-0001.png