[koha-commits] main Koha release repository branch new/bug_3215 updated. v3.06.00-612-g95ead9a
Git repo owner
gitmaster at git.koha-community.org
Mon Feb 27 12:12:56 CET 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, new/bug_3215 has been updated
via 95ead9a42be498da827812e64795f403f4f9e6c7 (commit)
from f7a525fa09008d98340739bd930fc48debcd306f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 95ead9a42be498da827812e64795f403f4f9e6c7
Author: Owen Leonard <oleonard at myacpl.org>
Date: Fri Jan 20 15:28:09 2012 -0500
Bug 3215 [REBASED] It would be nice if "Add to Cart" changed to "Remove from Cart"
"Add to Cart" links in the OPAC should reflect whether a title
is already in the Cart. On the results, list, and detail pages
the "Add to Cart" link will say "In your cart (remove)" if the
title is in your cart. The "(remove)" link will remove the title.
This patch adds a check of the biblionumbers in the cart to the
relevant scripts and sets a variable for the template governing
whether to show "Add to cart" or "In your cart."
Pages to test:
- the search results page
- any detail page (normal, MARC, ISBD)
- any list contents page (/cgi-bin/koha/opac-shelves.pl?viewshelf=XX)
Situations to test:
- Add a single item to the Cart from the above pages
The link should change from "Add to cart" to "In your cart (remove)"
The count of items in your cart should reflect the addition, and the
notification box should appear.
- Remove a single item from the Cart from the above pages
The link should change from "In your cart (remove)" to "Add to cart."
The count of items in your cart should reflect the removal, and the
notification box should appear.
- View an item which is already in the cart from the above pages
The cart links should reflect whether the title is already in the cart.
- Remove one or more items from the Cart via the cart pop-up window
View the above pages as you do so to verify that the operation is
reflected immediately by the state of the "in your cart" links.
- Empty the Cart from the cart pop-up window
View the above pages as you do so to verify that the operation is
reflected immediately by the state of the "in your cart" links.
Tested in Firefox 9, Chrome 16, IE 7, and Opera 11.6 on Win 7
Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
-----------------------------------------------------------------------
Summary of changes:
C4/VirtualShelves/Page.pm | 11 ++++
koha-tmpl/opac-tmpl/prog/en/css/opac.css | 16 ++++++
.../opac-tmpl/prog/en/includes/doc-head-close.inc | 3 +
.../prog/en/includes/opac-detail-sidebar.inc | 6 ++-
koha-tmpl/opac-tmpl/prog/en/js/basket.js | 50 +++++++++++++++++++-
.../opac-tmpl/prog/en/modules/opac-results.tt | 8 +++-
.../opac-tmpl/prog/en/modules/opac-shelves.tt | 9 +++-
opac/opac-ISBDdetail.pl | 11 ++++
opac/opac-MARCdetail.pl | 11 ++++
opac/opac-detail.pl | 11 ++++
opac/opac-search.pl | 12 +++++
11 files changed, 142 insertions(+), 6 deletions(-)
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list