Koha/koha-tmpl/opac-tmpl/prog/en
Owen Leonard 95ead9a42b 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@biblibre.com>
2012-02-27 12:12:07 +01:00
..
css Bug 3215 [REBASED] It would be nice if "Add to Cart" changed to "Remove from Cart" 2012-02-27 12:12:07 +01:00
includes Bug 3215 [REBASED] It would be nice if "Add to Cart" changed to "Remove from Cart" 2012-02-27 12:12:07 +01:00
js Bug 3215 [REBASED] It would be nice if "Add to Cart" changed to "Remove from Cart" 2012-02-27 12:12:07 +01:00
lib Bug 6836: Add jQuery dataTables plugin 2012-01-27 11:33:11 +01:00
modules Bug 3215 [REBASED] It would be nice if "Add to Cart" changed to "Remove from Cart" 2012-02-27 12:12:07 +01:00
xslt Bug 6496 - correct the order of the author display in the OPAC 2012-02-17 18:57:42 +01:00