]> git.koha-community.org Git - koha.git/commit
Bug 10225 - If an item isn't editable, don't show the onclick Edit/Delete menu
authorOwen Leonard <oleonard@myacpl.org>
Thu, 9 May 2013 19:08:41 +0000 (15:08 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 15 May 2013 21:47:11 +0000 (09:47 +1200)
commita49d2d7875505064f5983e6d80e005f0ea6bc42d
treebe13d46e344bc10c45e3e0a06594bdadc91fbeb1
parentf05bb04470a96eb66fa30c1b93ac7b8357db6446
Bug 10225 - If an item isn't editable, don't show the onclick Edit/Delete menu

The user should not be shown edit/delete links when clicking on a row in
additems which they cannot edit because of the IndependantBranches
setting. This patch adds a class to the row to exclude such rows in the
JavaScript onclick handler.

To test:

- Turn IndependantBranches on and edit items for a title which
  has holdings from various branches including your own.
- Click a row for an item which is held by your library. You should see
  the "Edit/Delete" links appear.
- Click a row for an item which is held by another library. No links
  should appear.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
All test pass

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Changes to the templates include no string changes.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit b36d3bc796fd1b0a4db32729c994287425f10326)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 1a8db0ba7d62a70cd6b49ee705a5db9b11ad7672)

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Conflicts:
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
(cherry picked from commit 0394a8f8ce88b6883cd2a14d57971713f98be346)
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt