From 14032e616afb3ca1107edf5ef1e741aa49e34abd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Nov 2012 17:05:45 +0100 Subject: [PATCH] Bug 10858: Browse selected biblios After launching a search, some people would like to browse some results from several pages. This patch adds, at the OPAC, a link "Browse selected biblios >>" when at least one biblio is checked. You can choose biblios from several page, not the current one. In this way, checkboxes already checked become again checked when you come back on this results page. After clicking the link, the "Browse results" block is filled with selected biblios, not (like as the current behavior) with the classic results. Test plan: - Launch a search at the OPAC - Check some biblios - Go on another page - Check some biblios - Come back to the first page and check that already checked biblio is automatically checked. - Click on the "Browse selected biblios >>" link - Check that you are able to browse results you had checked. --- .../opac-tmpl/prog/en/includes/doc-head-close.inc | 3 + koha-tmpl/opac-tmpl/prog/en/js/commons.js | 72 +++++++ .../en/lib/jquery/plugins/jquery.cookie.min.js | 1 + .../prog/en/lib/jquery/plugins/jquery.json.js | 199 ++++++++++++++++++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 17 +- .../opac-tmpl/prog/en/modules/opac-results.tt | 48 +++++ opac/opac-detail.pl | 21 ++- 7 files changed, 353 insertions(+), 8 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/en/js/commons.js create mode 100644 koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.cookie.min.js create mode 100644 koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.json.js diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index 66666f4..6002472 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -35,6 +35,9 @@ + + + [% IF ( OPACAmazonCoverImages ) %]