]> git.koha-community.org Git - koha.git/commit
Bug 10856: Improve the previous and next items on the shelf browser
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 14 May 2013 13:11:11 +0000 (15:11 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 4 Oct 2013 15:56:35 +0000 (15:56 +0000)
commit5c0fa5ec3da4d1aa9665e1d7db00581df6a263fb
tree88663e5fa788193b63203553a5a915811acf22e1
parentb26af80f81e1f7b6543f32ba212c447c5207c5c1
Bug 10856: Improve the previous and next items on the shelf browser

The next and previous links should completely refresh the shelf.

For example:
[<] [1] [2] [3] [4] [5] [6] [>]
Before this patch, the next and previous links were the same as the 1
and 6.
With this patch, after clicking on next, we will get:
[<] [7] [8] [9] [10] [11] [12] [13] [>]

This patch adds a new AJAX script to get the shelf browser block.

Test plan:
- On a detail biblio page, click on a "Browse shelf" link.
- Play with the next and previous links.
- Deactivate Javascript (using NoScript for example) and check that you
  get the same behavior (but the page is reloaded).
- Launch the unit tests: prove t/db_dependent/ShelfBrowser.t

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/ShelfBrowser.pm
koha-tmpl/opac-tmpl/prog/en/includes/shelfbrowser.inc [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/prog/en/modules/svc/shelfbrowser.tt [new file with mode: 0644]
opac/opac-detail.pl
opac/svc/shelfbrowser.pl [new file with mode: 0755]
t/db_dependent/ShelfBrowser.t [new file with mode: 0644]