Bug 7540

Summary: Add ids to the legend elements to make it easier to tweak with javascript
Product: Koha Reporter: Robin Sheat <robin>
Component: PatronsAssignee: Robin Sheat <robin>
Status: CLOSED FIXED QA Contact: Ian Walls <koha.sekjal>
Severity: minor    
Priority: P5 - low CC: gmcharlt, paul.poulain, wizzyrea
Version: 3.6   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16159
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 7540 - add id values to the legends in the patron entry form
Bug 7540 [3.6.x] - add id values to the legends in the patron entry form
Bug 7540 - add id values to the legends in the patron entry form

Description Robin Sheat 2012-02-14 23:25:30 UTC
This adds some IDs to the legends to make them easier to alter without customising templates.
Comment 1 Robin Sheat 2012-02-14 23:37:47 UTC Comment hidden (obsolete)
Comment 2 Robin Sheat 2012-02-14 23:47:40 UTC
Created attachment 7649 [details] [review]
Bug 7540 [3.6.x] - add id values to the legends in the patron entry form

This adds the following IDs to the legends in the patron entry form:
 main_address_lgd contact_lgd alt_address_lgd alt_contact_lgd
 library_management_lgd library_setup_lgd opac_staff_login_lgd
 patron_messaging_prefs_lgd

With these in place, then jquery like:
$(document).ready(function(){
        $('#main_address_lgd').text('Postal Address');
        $('#alt_address_lgd').text('Residential Address');
});
in intranetuserjs can be used to rename things to taste.
Comment 3 Liz Rea 2012-02-16 04:22:28 UTC
Created attachment 7675 [details] [review]
Bug 7540 - add id values to the legends in the patron entry form

This adds the following IDs to the legends in the patron entry form:
 main_address_lgd contact_lgd alt_address_lgd alt_contact_lgd
 library_management_lgd library_setup_lgd opac_staff_login_lgd
 patron_messaging_prefs_lgd

With these in place, then jquery like:
$(document).ready(function(){
        $('#main_address_lgd').text('Postal Address');
        $('#alt_address_lgd').text('Residential Address');
});
in intranetuserjs can be used to rename things to taste.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
I see the id's in there, they appear consistent and complete.
Comment 4 Ian Walls 2012-02-16 17:06:21 UTC
Template only change to add unique ID attributes to elements (always a good thing).  Marking as Passed QA.
Comment 5 Paul Poulain 2012-02-17 10:55:28 UTC
changed importance to "minor", it's not really an ENH.
chris_n, there is a 3.6 patch for this one
Comment 6 Jared Camins-Esakov 2012-05-23 23:14:55 UTC
This patch will be included in the upcoming 3.6.5 release.