Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Owen Leonard 97b27b94bb Bug 16228 - Move some patron entry form JavaScript into members.js again
Bug 15206 undid the changes Bug 15692 made to memberentrygen.tt. This
patch re-removes the JS from the template and moves the additions made
by Bug 15206 into members.js.

Two other minor edits: Changes to quiet JSHint errors.

To test, apply the patch and repeat the test plan for Bug 15692. Confirm
that the following interactions still work on the patron entry form:

1. clear_entry(): With ExtendedPatronAttributes enabled, the "Clear"
   link next to any attribute form field should work to clear the field.

2. clone_entry(): With ExtendedPatronAttributes enabled and a repeatable
   attribute defined, it should be possible to click the "New" link to
   add another instance of that attribute's entry field.

3. update_category_code(): With ExtendedPatronAttributes enabled and an
   attribute defined which is limited to a single patron category,
   changing the patron category selection should correctly show or hide
   the attribute entry form.

4. select_user(): When adding or editing a patron with a "Child"
   category it should be possible to search for and select a guarantor
   to add to the record by clicking the "Set to patron" button.
   Selecting a new guarantor should change the text of the button from
   "Set to patron" to "Change."

5. noEnterSubmit(): This function should be correctly preventing you
   from hitting "ENTER" in any form field to submit the form.

6. guarantordelete(): When adding or editing a patron with a "Child"
   category, it should be possible to clear existing guarantor
   information by clicking the "Delete" button. Clicking the "Delete"
   button should change the text of the adjacent button to "Set to
   patron."

7. select_city(): With one or more cities defined it should be possible
   to use the drop-down menu of cities to populate the city, state, zip,
   and country fields.

8. Date of birth entry should have a maximum date limit of yesterday.
   The drop-down menu of years should go back 100 years.

9. Selecting a date of birth should replace the date format hint with a
   message showing the user's age in years or months. Test with values
   which will show an age of 1 month, between 2 and 11 months, 1 year,
   and more than one year.

10. Client-side validation rules should be in effect, requiring that a
   valid email address be entered in the primary email, secondary email,
   and alternate address email fields.

11.When editing a patron, the "Add manual restriction" link should
   display the form for adding a manual restriction, and clicking the
   "Cancel" link should hide it.

Followed test plan, everything works OK.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-04-29 15:33:39 +00:00
..
tables Bug 16120: Add the actions class to all actions td 2016-03-24 17:07:32 +00:00
boraccount.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
deletemem.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
discharge.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
discharges.tt Bug 8007: Discharge management 2015-04-30 12:33:56 -03:00
files.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
mancredit.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
maninvoice.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
member-flags.tt Bug 16238: Use .prop() instead of .attr() for 'disabled' 2016-04-29 14:18:24 +00:00
member-password.tt Bug 14509: (follow-up) Reject invalid passwords 2015-09-28 11:51:09 -03:00
member.tt Bug 16238: Use .prop() instead of .attr() for 'disabled' 2016-04-29 14:18:24 +00:00
memberentrygen.tt Bug 16228 - Move some patron entry form JavaScript into members.js again 2016-04-29 15:33:39 +00:00
members-update.tt Bug 15195 - patron details should open in tab 2016-01-27 04:21:58 +00:00
moremember-brief.tt Bug 14990: Format the date template-side for moremember 2015-10-19 10:13:02 -03:00
moremember-print.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
moremember-receipt.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
moremember.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
nl-search.tt Bug 15304: Remove Norwegian strings from nl-search.tt 2015-12-30 23:39:57 +00:00
notices.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
pay.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
paycollect.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
printfeercpt.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
printinvoice.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
purchase-suggestions.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
readingrec.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
routing-lists.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
statistics.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
update-child.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00