Bug 11636 - make it possible to remove patrons from patron list during add process
authorOwen Leonard <oleonard@myacpl.org>
Wed, 29 Jan 2014 17:17:09 +0000 (12:17 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 4 Feb 2014 18:37:18 +0000 (18:37 +0000)
commitf3d5887870bad581e312b40bd474b38b5788122d
tree5e5d501ebab8dcde5da894c47911d9ad79884def
parent7f6f3b924e5bc9343bb475a1add714923a025913
Bug 11636 - make it possible to remove patrons from patron list during add process

If your patrons have card numbers with leading zeroes this causes
problems removing patron entries during the process of adding patrons to
an existing list. This patch refactors the relevant JavaScript to
correct the problem and to remove inline "onclick" from generated HTML.

This patch also includes a fix for Bug 11632 - Untranslatable string
"Remove" in patron lists.

To test:

1. If necessary, create or modify a patron to have a card number
   with leading zeroes.
2. Go to Tools -> Patron lists.
3. Click "Add patrons" on an existing list.
4. Perform a patron search and choose one of the results.
5. Click the "remove" link next to the patron name which was just added.
   Nothing will happen.
6. Apply the patch and test again. The "remove" link should now work.

To test the fix for Bug 11632, after applying the patch run "translate
update [language code]" and confirm that the "Remove" string is listed
in the updated po file for patron_lists/list.tt.

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 as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt