[Koha-patches] [PATCH] Bug 7540 - add id values to the legends in the patron entry form
Robin Sheat
robin at catalyst.net.nz
Wed Feb 15 00:38:32 CET 2012
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.
---
.../prog/en/modules/members/memberentrygen.tt | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
index 34fef89..7377ec6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -184,7 +184,7 @@
[% IF ( step_1 ) %]
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
<fieldset class="rows" id="memberentry_identity">
- <legend>[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
+ <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
<ol>
[% UNLESS ( I ) %]
[% UNLESS notitle %]
@@ -424,7 +424,7 @@
[% END %]
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
<fieldset class="rows">
- <legend>Main address</legend><ol>
+ <legend id="main_address_lgd">Main address</legend><ol>
[% UNLESS nostreetnumber %]
<li>
[% IF ( mandatorystreetnumber ) %]
@@ -566,7 +566,7 @@
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
<fieldset class="rows" id="memberentry_contact">
- <legend>Contact</legend><ol>
+ <legend id="contact_lgd">Contact</legend><ol>
[% UNLESS nophone %]
<li>
[% IF ( mandatoryphone ) %]
@@ -675,7 +675,7 @@
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
<fieldset class="rows" id="memberentry_address">
- <legend>Alternate address</legend><ol>
+ <legend id="alt_address_lgd">Alternate address</legend><ol>
[% UNLESS noB_address %]
<li>
[% IF ( mandatoryB_address ) %]
@@ -814,7 +814,7 @@
[% IF ( step_2 ) %]
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
<fieldset class="rows" id="memberentry_altaddress">
- <legend>Alternate Contact</legend><ol>
+ <legend id="alt_contact_lgd">Alternate Contact</legend><ol>
[% UNLESS noaltcontactsurname %]
<li>
[% IF ( mandatoryaltcontactsurname ) %]
@@ -959,7 +959,7 @@
[% IF ( step_3 ) %]
<fieldset class="rows" id="memberentry_library_management">
- <legend>Library Management</legend><ol>
+ <legend id="library_management_lgd">Library Management</legend><ol>
[% UNLESS nocardnumber %]
<li> [% IF ( mandatorycardnumber ) %]
<label for="cardnumber" class="required">
@@ -1051,7 +1051,7 @@
</fieldset>
[% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %]
<fieldset class="rows" id="memberentry_subscription">
- <legend>Library set-up</legend><ol>
+ <legend id="library_setup_lgd">Library set-up</legend><ol>
[% UNLESS nodateenrolled %]
<li>
[% IF ( mandatorydateenrolled ) %]
@@ -1148,7 +1148,7 @@
[% UNLESS nouserid && nopassword %]
<fieldset class="rows" id="memberentry_userid">
- <legend>OPAC/Staff Login</legend><ol>
+ <legend id="opac_staff_login_lgd">OPAC/Staff Login</legend><ol>
[% UNLESS nouserid %]
<li>
[% IF ( mandatoryuserid ) %]
@@ -1442,7 +1442,7 @@
</script>
[% END %]
<input type="hidden" name="setting_messaging_prefs" value="1" />
- <legend>Patron messaging preferences</legend>
+ <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
[% IF type_only %]
<i>If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved</i>
[% END %]
--
1.7.5.4
More information about the Koha-patches
mailing list