Bug 11821: disable catalog edit menu items and provide explanations when actions...
authorOwen Leonard <oleonard@myacpl.org>
Fri, 21 Feb 2014 20:27:41 +0000 (15:27 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 12 Mar 2014 14:44:44 +0000 (14:44 +0000)
commit5c1691a8013bd38d6bae8b00a8950e1417695176
tree48ca96cbcc837e9d35d7ea886e3a6aaee658195c
parent0039eee40c6f70023bfb93e8d3d011b47da6867a
Bug 11821: disable catalog edit menu items and provide explanations when actions cannot be done

Biblio edit menu items which are disabled should trigger a tooltip
on hover and an alert on click with explanations. This patch implements
this for the relevent menu items.

To test, apply the patch for Bug 11829 if necessary. Find a record which
has no items attached. Test the following views:

- Normal
- MARC
- Labeled MARC
- ISBD
- Items

Test these Edit menu items:

- Edit items in a batch
- Delete items in a batch
- Delete all items

Hovering over these menu items should trigger an explanatory tooltip.
Clicking the menu items should trigger a similar alert.

Next, locate a title with items attached. On the same pages above, test
the Edit -> Delete record menu item. Hovering should trigger an
explanatory tooltip. Clicking it should trigger a similar alert.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, works nicely.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc