Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard d567733f23 Bug 11534: fix bug that made it impossible to remove instructors from a course
In some cases clicking the "remove" link to remove a course instructor
when editing a course reserves course doesn't work. I suspect this is
caused by leading zeroes in the card number. This patch refactors the
relevant function to fix the problem and to remove inline JavaScript
from generated markup.

Other changes:

- Make the "Remove" text translatable
- Re-order the first name and last name when added by JavaScript to
match the template's "surname, firstname" order.

To test:

1. If necessary, create or modify a patron to have a card number
   with leading zeroes.
2. Go to Course reserves and add or edit a course.
3. If you are editing a course and there are existing instructors, click
   the "remove" link. Nothing will happen.
4. Perform a patron search and choose one of the results. The name
   should be added to the list of instructors in the format "surname,
   firstname."
5. Click the "remove" link next to the patron name which was just added.
   Nothing will happen.
6. Apply the patch and repeat step 4. The "remove" link should work.
7. Add an instructor and save the course reserve. Repeat steps 2 and 3.
   The "remove" link should now work.

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

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-01-31 15:45:56 +00:00
..
acqui Bug 11579: Show ordernumber in basket.pl tables 2014-01-29 22:35:17 +00:00
admin Bug 11616: remove jQuery tablesorter plugin 2014-01-31 15:24:01 +00:00
authorities Bug 10691: use authority ID in see-also links in authority search results (staff) 2014-01-16 22:35:58 +00:00
basket Bug 9218: fix intranet cart email for non english templates 2013-10-31 23:53:25 +00:00
batch Bug 9210: wrap long lines in printed hold notices 2014-01-15 15:51:44 +00:00
catalogue Bug 11397: Remove the itemnumber list on the Acquisition detail tab 2014-01-23 16:41:43 +00:00
cataloguing Bug 11503: [Follow-up] fix another typo 2014-01-14 20:08:58 +00:00
circ Bug 11616: remove jQuery tablesorter plugin 2014-01-31 15:24:01 +00:00
course_reserves Bug 11534: fix bug that made it impossible to remove instructors from a course 2014-01-31 15:45:56 +00:00
errors
help Bug 11503: fix several typos 2014-01-13 20:47:03 +00:00
installer
labels Bug 11363: make units in label printer profile form translatable 2014-01-17 15:09:55 +00:00
members Bug 11486: Don't display the number of remaining renewals if == 0 2014-01-23 17:40:28 +00:00
offline_circ
patron_lists Bug 10565: (follow-up) improve navigation aids 2013-10-14 22:43:03 +00:00
patroncards Bug 9924 - Simplify and rename patron card creator error message include 2013-09-08 19:19:23 +00:00
plugins
reports Bug 10718: fix items with no checkouts report 2013-09-08 20:04:43 +00:00
reserve Bug 9788: QA followup 2014-01-17 05:10:42 +00:00
reviews
rotating_collections
serials Bug 10429: improve display of library and library filter on serials claim page 2014-01-06 15:33:28 +00:00
services
sms
suggestion Bug 10626: Remove doubled up TT plugins - Merge KohaAuthorisedValues and AuthorisedValues 2013-12-20 04:14:45 +00:00
tags Bug 2693: add ability to filter by reviewer name on tag review page 2013-12-02 15:58:04 +00:00
test
tools Bug 11477: (follow-up) improve display of user/patrons in logs tool 2014-01-17 06:06:53 +00:00
virtualshelves
z3950
about.tt Bug 7143: add another name to the about page 2014-01-16 15:30:43 +00:00
auth.tt Bug 11146: Show a go back link on no permission page 2013-11-23 19:43:37 +00:00
intranet-main.tt Bug 10888: Don't hide authorities module from users who lack permission to edit authorities 2013-09-21 17:59:05 +00:00