From f964d6ed10b840bad70eac98d9e46c9231fdbf8d Mon Sep 17 00:00:00 2001 From: Your Full Name Date: Tue, 19 Apr 2016 13:50:43 +0000 Subject: [PATCH] Bug 3534 - Fix tabs to spaces --- .../prog/en/modules/members/memberentrygen.tt | 766 ++++++++++----------- 1 file changed, 383 insertions(+), 383 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 8fc26e0..b30d935 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -8,126 +8,126 @@ // 0 ){ - var category_code = $("#categorycode_entry").find("option:selected").val(); - update_category_code( category_code ); - } - [% END %] - $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" }); - dateformat = $("#dateofbirth").siblings(".hint").first().html(); - write_age(); - $("#entryform").validate({ - rules: { - email: { - email: true - }, - emailpro: { - email: true - }, - B_email: { - email: true - } - }, - submitHandler: function(form) { - $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); - if (form.beenSubmitted) - return false; - else - form.beenSubmitted = true; - form.submit(); - } - }); - - var mrform = $("#manual_restriction_form"); - var mrlink = $("#add_manual_restriction"); - mrform.hide(); - mrlink.on("click",function(e){ - $(this).hide(); - mrform.show(); - e.preventDefault(); - }); - $("#cancel_manual_restriction").on("click",function(e){ - $('#debarred_expiration').val(''); - $('#add_debarment').val(0); - $('#debarred_comment').val(''); - mrlink.show(); - mrform.hide(); - e.preventDefault(); - }); + [% IF categorycode %] + update_category_code( "[% categorycode %]" ); + [% ELSE %] + if ( $("#categorycode_entry").length > 0 ){ + var category_code = $("#categorycode_entry").find("option:selected").val(); + update_category_code( category_code ); + } + [% END %] + $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" }); + dateformat = $("#dateofbirth").siblings(".hint").first().html(); + write_age(); + $("#entryform").validate({ + rules: { + email: { + email: true + }, + emailpro: { + email: true + }, + B_email: { + email: true + } + }, + submitHandler: function(form) { + $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); + if (form.beenSubmitted) + return false; + else + form.beenSubmitted = true; + form.submit(); + } + }); + + var mrform = $("#manual_restriction_form"); + var mrlink = $("#add_manual_restriction"); + mrform.hide(); + mrlink.on("click",function(e){ + $(this).hide(); + mrform.show(); + e.preventDefault(); + }); + $("#cancel_manual_restriction").on("click",function(e){ + $('#debarred_expiration').val(''); + $('#add_debarment').val(0); + $('#debarred_comment').val(''); + mrlink.show(); + mrform.hide(); + e.preventDefault(); + }); }); function clear_entry(node) { - var original = $(node).parent(); - $("textarea", original).attr('value', ''); - $("select", original).attr('value', ''); + var original = $(node).parent(); + $("textarea", original).attr('value', ''); + $("select", original).attr('value', ''); } function clone_entry(node) { - var original = $(node).parent(); - var clone = original.clone(); - - var newId = 50 + parseInt(Math.random() * 100000); - $("input,select,textarea", clone).attr('id', function() { - return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId); - }); - $("input,select,textarea", clone).attr('name', function() { - return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId); - }); - $("label", clone).attr('for', function() { - return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId); - }); - $("input#patron_attr_" + newId, clone).attr('value',''); - $("select#patron_attr_" + newId, clone).attr('value',''); - $(original).after(clone); - return false; + var original = $(node).parent(); + var clone = original.clone(); + + var newId = 50 + parseInt(Math.random() * 100000); + $("input,select,textarea", clone).attr('id', function() { + return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId); + }); + $("input,select,textarea", clone).attr('name', function() { + return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId); + }); + $("label", clone).attr('for', function() { + return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId); + }); + $("input#patron_attr_" + newId, clone).attr('value',''); + $("select#patron_attr_" + newId, clone).attr('value',''); + $(original).after(clone); + return false; } function update_category_code(category_code) { - if ( $(category_code).is("select") ) { - category_code = $("#categorycode_entry").find("option:selected").val(); - } - var mytables = $(".attributes_table"); - $(mytables).find("li").hide(); - $(mytables).find(" li[data-category_code='"+category_code+"']").show(); - $(mytables).find(" li[data-category_code='']").show(); + if ( $(category_code).is("select") ) { + category_code = $("#categorycode_entry").find("option:selected").val(); + } + var mytables = $(".attributes_table"); + $(mytables).find("li").hide(); + $(mytables).find(" li[data-category_code='"+category_code+"']").show(); + $(mytables).find(" li[data-category_code='']").show(); } function select_user(borrowernumber, borrower) { - var form = $('#entryform').get(0); - if (form.guarantorid.value) { - $("#contact-details").find('a').remove(); - $("#contactname, #contactfirstname").parent().find('span').remove(); - } - - var id = borrower.borrowernumber; - form.guarantorid.value = id; - $('#contact-details') - .show() - .find('span') - .after('' + id + ''); - - $(form.contactname) - .val(borrower.surname) - .before('' + borrower.surname + '').get(0).type = 'hidden'; - $(form.contactfirstname) - .val(borrower.firstname) - .before('' + borrower.firstname + '').get(0).type = 'hidden'; - - form.streetnumber.value = borrower.streetnumber; - form.address.value = borrower.address; - form.address2.value = borrower.address2; - form.city.value = borrower.city; - form.state.value = borrower.state; - form.zipcode.value = borrower.zipcode; - form.country.value = borrower.country; - form.branchcode.value = borrower.branchcode; - - form.guarantorsearch.value = _("Change"); - - return 0; + var form = $('#entryform').get(0); + if (form.guarantorid.value) { + $("#contact-details").find('a').remove(); + $("#contactname, #contactfirstname").parent().find('span').remove(); + } + + var id = borrower.borrowernumber; + form.guarantorid.value = id; + $('#contact-details') + .show() + .find('span') + .after('' + id + ''); + + $(form.contactname) + .val(borrower.surname) + .before('' + borrower.surname + '').get(0).type = 'hidden'; + $(form.contactfirstname) + .val(borrower.firstname) + .before('' + borrower.firstname + '').get(0).type = 'hidden'; + + form.streetnumber.value = borrower.streetnumber; + form.address.value = borrower.address; + form.address2.value = borrower.address2; + form.city.value = borrower.city; + form.state.value = borrower.state; + form.zipcode.value = borrower.zipcode; + form.country.value = borrower.country; + form.branchcode.value = borrower.branchcode; + + form.guarantorsearch.value = _("Change"); + + return 0; } function write_age() { @@ -217,8 +217,8 @@ $(document).ready(function() { [% IF ( opadd ) %]
[% ELSE %]
[% END %]
-
-
+
+
[% IF error_alert %] [% IF ( error_alert == "no_email" ) %]
This member has no email
@@ -230,16 +230,16 @@ $(document).ready(function() {
Email has been sent.
[% END %] - [% IF ( no_add ) %]

Cannot add patron

+ [% IF ( no_add ) %]

Cannot add patron

[% IF ( no_branches ) %]

There are no libraries defined. [% IF ( CAN_user_parameters ) %]Please add a library.[% ELSE %]An administrator must define at least one library.[% END %]

[% END %] [% IF ( no_categories ) %]

There are no patron categories defined. [% IF ( CAN_user_parameters ) %]Please add a patron category.[% ELSE %]An administrator must define at least one patron category.

[% END %][% END %]
[% END %] - [% UNLESS ( no_add ) %] + [% UNLESS ( no_add ) %]

[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])

- [% IF ( check_member ) %] -
-

Duplicate patron record?

+ [% IF ( check_member ) %] +
+

Duplicate patron record?

View existing record

@@ -249,50 +249,50 @@ $(document).ready(function() {
- + -
- [% END %] - - [% IF ( nok ) %] -
-

The following fields are wrong. Please fix them.

-
    - [% IF ( ERROR_login_exist ) %] -
  • Username/password already exists.
  • - [% END %] +
+ [% END %] + + [% IF ( nok ) %] +
+

The following fields are wrong. Please fix them.

+
    + [% IF ( ERROR_login_exist ) %] +
  • Username/password already exists.
  • + [% END %] [% IF ERROR_cardnumber_already_exists %]
  • Cardnumber already in use.
  • [% END %] [% IF ERROR_cardnumber_length %]
  • Cardnumber length is incorrect.
  • [% END %] - [% IF ( ERROR_age_limitations ) %] -
  • Patron's age is incorrect for their category. + [% IF ( ERROR_age_limitations ) %] +
  • Patron's age is incorrect for their category. Ages allowed are [% age_low %]-[% age_high %].
  • - [% END %] - [% IF ( ERROR_branch ) %] -
  • Library is invalid.
  • - [% END %] - [% IF ( ERROR_dateofbirth ) %] -
  • Date of birth is invalid.
  • - [% END %] - [% IF ( ERROR_dateenrolled ) %] -
  • Date of enrollment is invalid.
  • - [% END %] - [% IF ( ERROR_dateexpiry ) %] -
  • Date of expiration is invalid.
  • - [% END %] - [% IF ( ERROR_short_password ) %] -
  • Password must be at least [% minPasswordLength %] characters long.
  • - [% END %] - [% IF ( ERROR_password_mismatch ) %] -
  • Passwords do not match.
  • - [% END %] + [% END %] + [% IF ( ERROR_branch ) %] +
  • Library is invalid.
  • + [% END %] + [% IF ( ERROR_dateofbirth ) %] +
  • Date of birth is invalid.
  • + [% END %] + [% IF ( ERROR_dateenrolled ) %] +
  • Date of enrollment is invalid.
  • + [% END %] + [% IF ( ERROR_dateexpiry ) %] +
  • Date of expiration is invalid.
  • + [% END %] + [% IF ( ERROR_short_password ) %] +
  • Password must be at least [% minPasswordLength %] characters long.
  • + [% END %] + [% IF ( ERROR_password_mismatch ) %] +
  • Passwords do not match.
  • + [% END %] [% IF ( ERROR_extended_unique_id_failed ) %]
  • [% ERROR_extended_unique_id_failed_description %] attribute value [% ERROR_extended_unique_id_failed_value %] is already in use by another patron record.
  • - [% END %] + [% END %] [% IF ERROR_bad_email %]
  • The primary email is invalid.
  • [% END %] @@ -302,9 +302,9 @@ $(document).ready(function() { [% IF ERROR_bad_email_alternative %]
  • The alternative email is invalid.
  • [% END %] -
-
- [% END %] + +
+ [% END %] [% UNLESS ( check_member ) %] @@ -333,12 +333,12 @@ $(document).ready(function() { [% IF ( step_1 ) %] [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] -
- [% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity -
    - [% UNLESS ( I ) %] +
    + [% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity +
      + [% UNLESS ( I ) %] [% UNLESS notitle %] - [% IF ( title_cgipopup ) %] + [% IF ( title_cgipopup ) %]
    1. [% IF ( mandatorytitle ) %]
    2. - [% END %] [% END %] - [% END %] + [% END %] + [% END %] [% UNLESS nosurname %] -
    3. - [% IF ( mandatorysurname ) %] -
    4. + [% IF ( mandatorysurname ) %] +
    5. [% END %] - [% UNLESS ( I ) %] + [% IF ( mandatorysurname ) %]Required[% END %] + + [% END %] + [% UNLESS ( I ) %] [% UNLESS nofirstname %]
    6. [% IF ( mandatoryfirstname ) %] @@ -394,7 +394,7 @@ $(document).ready(function() { [% IF ( mandatorydateofbirth ) %]Required[% END %] [% IF ( ERROR_dateofbirth ) %](Error)[% END %] -
      [% INCLUDE 'date-format.inc' %]
      +
      [% INCLUDE 'date-format.inc' %]
    7. [% END %] [% UNLESS noinitials %] @@ -411,21 +411,21 @@ $(document).ready(function() { [% END %] [% END %] [% UNLESS noothernames %] -
    8. - [% IF ( mandatoryothernames ) %] -
    9. + [% IF ( mandatoryothernames ) %] +
    10. + [% IF ( I ) %][% END %] + [% END %] [% UNLESS ( I ) %] [% UNLESS nosex %] -
    11. +
    12. [% UNLESS ( opduplicate ) %] [% IF ( female ) %] @@ -449,11 +449,11 @@ $(document).ready(function() { [% END %] -
    13. + [% END %] [% END %] -
    -
    +
+
[% END # hide fieldset %] [% IF ( showguarantor ) %] @@ -461,22 +461,22 @@ $(document).ready(function() { Guarantor information
    [% IF ( P ) %] - [% IF ( guarantorid ) %] -
  1. - [% ELSE %] -
  2. -
  3. - - [% IF ( guarantorid ) %] - [% contactname %] - - [% ELSE %] + [% IF ( guarantorid ) %] +
  4. + [% ELSE %] +
  5. +
  6. + + [% IF ( guarantorid ) %] + [% contactname %] + + [% ELSE %] - [% END %] -
  7. + [% END %] + [% ELSE %] [% IF ( C ) %] [% IF ( guarantorid ) %] @@ -572,7 +572,7 @@ $(document).ready(function() { [% END %] Primary phone: - [% IF ( mandatoryphone ) %]Required[% END %]
    Shows on transit slips
    + [% IF ( mandatoryphone ) %]Required[% END %]
    Shows on transit slips
    [% END %] @@ -585,7 +585,7 @@ $(document).ready(function() { [% END %] Secondary phone: - [% IF ( mandatoryphonepro ) %]Required[% END %] + [% IF ( mandatoryphonepro ) %]Required[% END %] [% END %] [% UNLESS nomobile %] @@ -597,7 +597,7 @@ $(document).ready(function() { [% END %] Other phone: - [% IF ( mandatorymobile ) %]Required[% END %] + [% IF ( mandatorymobile ) %]Required[% END %] [% END %] [% UNLESS noemail %] @@ -609,7 +609,7 @@ $(document).ready(function() { [% END %] Primary email: - [% IF ( mandatoryemail ) %]Required[% END %]
    Shows on transit slips
    + [% IF ( mandatoryemail ) %]Required[% END %]
    Shows on transit slips
    [% END %] @@ -622,7 +622,7 @@ $(document).ready(function() { [% END %] Secondary email: - [% IF ( mandatoryemailpro ) %]Required[% END %] + [% IF ( mandatoryemailpro ) %]Required[% END %] [% END %] [% UNLESS nofax %] @@ -634,10 +634,10 @@ $(document).ready(function() { [% END %] Fax: - [% IF ( mandatoryfax ) %]Required[% END %] + [% IF ( mandatoryfax ) %]Required[% END %] [% END %] -
+ [%END # hide fieldset %] @@ -771,240 +771,240 @@ $(document).ready(function() { [% END %] [% END %] - + [% UNLESS nodateenrolled && noopacnote && noborrowernotes %] -
- Library set-up
    +
    + Library set-up
      [% UNLESS nodateenrolled %] -
    1. - [% IF ( mandatorydateenrolled ) %] +
    2. + [% IF ( mandatorydateenrolled ) %] [% IF ( dateformat == "metric" ) %] [% ELSE %] [% END %] - [% IF ( mandatorydateenrolled ) %]Required[% END %] - [% IF ( ERROR_dateenrolled ) %](Error)[% END %] -
      [% INCLUDE 'date-format.inc' %]
      -
    3. + [% IF ( mandatorydateenrolled ) %]Required[% END %] + [% IF ( ERROR_dateenrolled ) %](Error)[% END %] +
      [% INCLUDE 'date-format.inc' %]
      + [% END %] [% UNLESS nodateexpiry %] -
    4. +
    5. [% ELSE %]
    6. [% END %] - [% IF ( mandatorydateexpiry ) %] + [% IF ( mandatorydateexpiry ) %] [% IF ( dateformat == "metric" ) %] - [% UNLESS ( opadd ) %] + [% UNLESS ( opadd ) %] - [% ELSE %] + [% ELSE %] - [% END %] - [% ELSE %] - [% UNLESS ( opadd ) %] + [% END %] + [% ELSE %] + [% UNLESS ( opadd ) %] - [% ELSE %] + [% ELSE %] - [% END %] - [% END %] - [% IF ( mandatorydateexpiry ) %]Required[% END %] - [% IF ( ERROR_dateexpiry ) %](Error)[% END %] -
      [% INCLUDE 'date-format.inc' %]
      -
    7. + [% END %] + [% END %] + [% IF ( mandatorydateexpiry ) %]Required[% END %] + [% IF ( ERROR_dateexpiry ) %](Error)[% END %] +
      [% INCLUDE 'date-format.inc' %]
      + [% UNLESS noopacnote %] -
    8. - [% IF ( mandatoryopacnote ) %] -
    9. + [% IF ( mandatoryopacnote ) %] +
    10. +
      This message appears on this patron's user page in the OPAC
      + [% IF ( mandatoryopacnote ) %]Required[% END %] + [% END %] [% UNLESS noborrowernotes %] -
    11. - [% IF ( mandatoryborrowernotes ) %] -
    12. + [% IF ( mandatoryborrowernotes ) %] +
    13. +
      This message displays when checking out to this patron
      + [% IF ( mandatoryborrowernotes ) %]Required[% END %] + [% END %] -
    -
    +
+
[% END # hide fieldset %] [% UNLESS nouserid && nopassword %] -
+
OPAC/Staff login
    [% UNLESS nouserid %] -
  1. - [% IF ( mandatoryuserid ) %] -
  2. + [% IF ( mandatoryuserid ) %] +
  3. + [% IF ( mandatoryuserid ) %]Required[% END %] + [%END %] [% UNLESS nopassword %] -
  4. - [% IF ( mandatorypassword ) %] -
  5. + [% IF ( mandatorypassword ) %] +
  6. -
  7. - [% IF ( mandatorypassword ) %] -
  8. +
  9. + [% IF ( mandatorypassword ) %] +
  10. -
-
+ [% ELSE %] + [% IF ( password ) %] + [% IF ( NoUpdateLogin ) %] + + [% ELSE %] + [% IF ( opduplicate ) %] + + [% ELSE %] + + [% END %] + [% END %] + [% ELSE %] + [% IF ( NoUpdateLogin ) %] + + [% ELSE %] + + [% END %] + [% END %] + [% END %] + [% IF ( mandatorypassword ) %]Required[% END %][% IF ( ERROR_password_mismatch ) %]Passwords do not match[% END %] + + +
[% END # hide fieldset %][% END %] - + [% UNLESS ( opadd || opduplicate ) %] -
+
Patron account flags -
    - [% FOREACH flagloo IN flagloop %] -
+ +
Patron restrictions @@ -1058,7 +1058,7 @@ $(document).ready(function() {
[% END %] - [% END %] + [% END %] [% END %] @@ -1190,9 +1190,9 @@ $(document).ready(function() { [% IF ( opadd ) %] Cancel - [% ELSE %] - Cancel - [% END %] + [% ELSE %] + Cancel + [% END %] [% END %] -- 2.1.4