X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Fmemberentrygen.tt;h=5dfd5a27458ca7c88824a3c169e8b6e14e8a57d4;hb=1fcdef312be42c673d4ae017e3abe7722aba6048;hp=16ada5c80385d7ffeb8cb2efb169b7b280066daa;hpb=521d7173720b4acbf4ecf40ed114520d500c5f6a;p=koha.git 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 16ada5c803..5dfd5a2745 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1,134 +1,116 @@ -[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %] +[% USE Koha %] [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Patrons › -[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] [% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %][% UNLESS ( opadd ) %] [% surname %], [% firstname %][% END %] +Koha › Patrons › [% 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 %]) [% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'calendar.inc' %] - + [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] - + [% IF ( opadd ) %]
[% ELSE %]
[% END %] - +
@@ -144,30 +126,32 @@ [% END %] [% 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 %] + [% 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 ) %] - [% IF ( opadd ) %] -

- Add[% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %] [% firstname %] [% surname %] -

- [% ELSE %] -

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

- [% END %] - +

[% 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 quickadd && opadd && !check_member %] + Show full form + + [% END %] + [% IF ( check_member ) %]

Duplicate patron record?

-

View existing record

-
+

View existing record

+
+ + + +
-
+ - +
[% END %] @@ -178,16 +162,19 @@ [% IF ( ERROR_login_exist ) %]
  • Username/password already exists.
  • [% END %] - [% IF ( ERROR_cardnumber ) %] -
  • Cardnumber already in use.
  • - [% 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. +
  • Patron's age is incorrect for their category. Ages allowed are [% age_low %]-[% age_high %].
  • [% END %] [% IF ( ERROR_branch ) %]
  • Library is invalid.
  • - [% END %] + [% END %] [% IF ( ERROR_dateofbirth ) %]
  • Date of birth is invalid.
  • [% END %] @@ -204,15 +191,39 @@
  • Passwords do not match.
  • [% END %] [% IF ( ERROR_extended_unique_id_failed ) %] -
  • The attribute value - [% ERROR_extended_unique_id_failed_value %] is already in use by another patron record.
  • +
  • [% ERROR_extended_unique_id_failed_description %]: Attribute value "[% ERROR_extended_unique_id_failed_value %]" is already in use by another patron record.
  • [% END %] + [% IF ERROR_bad_email %] +
  • The primary email is invalid.
  • + [% END %] + [% IF ERROR_bad_email_secondary %] +
  • The secondary email is invalid.
  • + [% END %] + [% IF ERROR_bad_email_alternative %] +
  • The alternative email is invalid.
  • + [% END %]
    [% END %] -[% UNLESS ( check_member ) %] +
    +[% UNLESS ( check_member ) %] + [% IF quickadd && opadd %] + + [% END %] + + [% IF opadd %] + + [% ELSE %] + + [% END %] + Cancel + +[% END %] +
    + +[% UNLESS ( check_member ) %] [% END %] @@ -220,8 +231,8 @@ - - + + [% IF ( step ) %][% END %] [% IF ( opadd ) %] [% ELSIF ( opduplicate ) %] @@ -266,9 +277,9 @@ [% END %] Surname: [% IF ( uppercasesurnames ) %] - + [% ELSE %] - + [% END %] [% IF ( mandatorysurname ) %]Required[% END %] @@ -282,7 +293,7 @@ - + [% IF ( mandatoryfirstname ) %]Required[% END %] [% END %] @@ -295,11 +306,7 @@ [% END %] Date of birth: - [% IF ( dateformat == "metric" ) %] - - [% ELSE %] - - [% END %] + [% IF ( mandatorydateofbirth ) %]Required[% END %] [% IF ( ERROR_dateofbirth ) %](Error)[% END %] @@ -314,7 +321,7 @@ - + [% IF ( mandatoryinitials ) %]Required[% END %] [% END %] @@ -327,7 +334,7 @@ - + [% IF ( mandatoryothernames ) %]Required[% END %] [% IF ( I ) %][% END %] @@ -335,22 +342,29 @@ [% UNLESS ( I ) %] [% UNLESS nosex %]
  • - - [% IF ( female ) %] - -[% ELSE %] - -[% END %] - [% IF ( male ) %] - -[% ELSE %] - -[% END %] -[% IF ( none ) %] - -[% ELSE %] - -[% END %] + + [% UNLESS ( opduplicate ) %] + [% IF ( female ) %] + + [% ELSE %] + + [% END %] + [% IF ( male ) %] + + [% ELSE %] + + [% END %] + [% IF ( none ) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + + + + [% END %] +
  • [% END %] [% END %] @@ -358,9 +372,13 @@ [% END # hide fieldset %] -[% IF ( showguarantor ) %] -
    - Guarantor information +[% IF ( showguarantor ) %] + + [% UNLESS step_6 %] + + [% END %] +
    + Guarantor information
      [% IF ( P ) %] [% IF ( guarantorid ) %] @@ -376,7 +394,7 @@ [% contactname %] [% ELSE %] - + [% END %] [% ELSE %] @@ -395,7 +413,7 @@ [% contactname %] [% ELSE %] - + [% END %] [% END %] @@ -406,7 +424,7 @@ [% contactfirstname %] [% ELSE %] - + [% END %] [% END %] @@ -429,141 +447,37 @@
    1.   [% IF ( guarantorid ) %] - + [% ELSE %] - + [% END %]
    2. + [% IF guarantorid && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] +
    3. + + +
      Allow guarantor of this patron to view this patron's checkouts from the OPAC
      +
    4. + [% END %]
    [% END %] [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] -
    - Main address
      - [% UNLESS nostreetnumber %] -
    1. - [% IF ( mandatorystreetnumber ) %] -
    2. - [% END %] - [% UNLESS nostreettype %] - [% IF roadtypes %] -
    3. - [% IF ( mandatorystreettype ) %] -
    4. - [% END %] - [% END %] - [% UNLESS noaddress %] -
    5. - [% IF ( mandatoryaddress ) %] -
    6. - [% END %] - [% UNLESS noaddress2 %] -
    7. - [% IF ( mandatoryaddress2 ) %] -
    8. - [% END %] - [% UNLESS nocity %] -
    9. - [% IF ( mandatorycity ) %] -
    10. - [% END %] - [% UNLESS nostate %] -
    11. - [% IF ( mandatorystate ) %] -
    12. - [% END %] - [% UNLESS nozipcode %] -
    13. - [% IF ( mandatoryzipcode ) %] -
    14. - [% END %] - [% UNLESS nocountry %] -
    15. - [% IF ( mandatorycountry ) %] -
    16. - [% END %] -
    -
    + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% ELSE %] + [% INCLUDE 'member-main-address-style-us.inc' %] + [% END %] [% END # nostreet && nocity etc group%] [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] @@ -571,13 +485,13 @@ Contact
      [% UNLESS nophone %]
    1. - [% IF ( mandatoryphone ) %] + [% IF ( mandatoryphone ) %]
    2. @@ -590,7 +504,7 @@ - + [% IF ( mandatoryphonepro ) %]Required[% END %] [% END %] @@ -602,7 +516,7 @@ - + [% IF ( mandatorymobile ) %]Required[% END %] [% END %] @@ -614,20 +528,20 @@ - + [% IF ( mandatoryemail ) %]Required[% END %]
      Shows on transit slips
      [% END %] [% UNLESS noemailpro %]
    3. - [% IF ( mandatoryemailpro ) %] + [% IF ( mandatoryemailpro ) %]
    4. [% END %] @@ -639,7 +553,7 @@ - + [% IF ( mandatoryfax ) %]Required[% END %] [% END %] @@ -652,233 +566,20 @@ [% IF ( step_6 ) %] [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] -
      - Alternate address
        - [% UNLESS noB_address %] -
      1. - [% IF ( mandatoryB_address ) %] -
      2. - [% END %] - [% UNLESS noB_address2 %] -
      3. - [% IF ( mandatoryB_address2 ) %] -
      4. - [% END %] - [% UNLESS noB_city %] -
      5. - [% IF ( mandatoryB_city ) %] -
      6. - [% END %] - [% UNLESS noB_state %] -
      7. - [% IF ( mandatoryB_state ) %] -
      8. - [% END %] - [% UNLESS noB_zipcode %] -
      9. - [% IF ( mandatoryB_zipcode ) %] -
      10. - [% END %] - [% UNLESS noB_country %] -
      11. - [% IF ( mandatoryB_country ) %] -
      12. - [% END %] - [% UNLESS noB_phone %] -
      13. - [% IF ( mandatoryB_phone ) %] -
      14. - [% END %] - [% UNLESS noB_email %] -
      15. - [% IF ( mandatoryB_email ) %] -
      16. + [% INCLUDE 'member-alt-address-style-us.inc' %] [% END %] - [% UNLESS nocontactnote %] -
      17. - [% IF ( mandatorycontactnote ) %] -
      18. - [% END %] -
      -
      [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] [% END %] [% IF ( step_2 ) %] [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] -
      - Alternate contact
        - [% UNLESS noaltcontactsurname %] -
      1. - [% IF ( mandatoryaltcontactsurname ) %] -
      2. - [% END %] - [% UNLESS noaltcontactfirstname %] -
      3. - [% IF ( mandatoryaltcontactfirstname ) %] -
      4. - [% END %] - [% UNLESS noaltcontactaddress1 %] -
      5. - [% IF ( mandatoryaltcontactaddress1 ) %] -
      6. - [% END %] - [% UNLESS noaltcontactaddress2 %] -
      7. - [% IF ( mandatoryaltcontactaddress2 ) %] -
      8. - [% END %] - [% UNLESS noaltcontactaddress3 %] -
      9. - [% IF ( mandatoryaltcontactaddress3 ) %] -
      10. - [% END %] - [% UNLESS noaltcontactstate %] -
      11. - [% IF ( mandatoryaltcontactstate ) %] -
      12. - [% END %] - [% UNLESS noaltcontactzipcode %] -
      13. - [% IF ( mandatoryaltcontactzipcode ) %] -
      14. - [% END %] - [% UNLESS noaltcontactcountry %] -
      15. - [% IF ( mandatoryaltcontactcountry ) %] -
      16. - [% END %] - [% UNLESS noaltcontactphone %] -
      17. - [% IF ( mandatoryaltcontactphone ) %] -
      18. + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% ELSE %] + [% INCLUDE 'member-alt-contact-style-us.inc' %] [% END %] -
      -
      [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] [% END %] @@ -886,17 +587,34 @@
      Library management
        - [% UNLESS nocardnumber %] -
      1. [% IF ( mandatorycardnumber ) %] -
      2. - [% END %] - [% UNLESS nobranchcode %] + [% UNLESS nocardnumber %] +
      3. + [% IF ( mandatorycardnumber ) %] +
      4. + [% END %] + [% UNLESS nobranchcode %]
      5. + + - [% IF ( mandatorysort1 ) %]Required[% END %] - [% END %] + [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] + [% IF ( mandatorysort1 ) %]Required[% END %]
      6. [% END %] [% UNLESS nosort2 %] @@ -961,15 +675,42 @@ - [% IF ( CGIsort2 ) %] - [% CGIsort2 %] - [% ELSE %] - - [% IF ( mandatorysort2 ) %]Required[% END %] - [% END %] + [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] + [% IF ( mandatorysort2 ) %]Required[% END %] [% END %] -
      + [% IF ( Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 ) %] +
    5. + + [% IF ( sync == 0 ) %] + Yes + No + [% ELSE %] + Yes + No + [% END %] +
    6. + [% END %] + [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] +
    7. + +
    8. + [% END %] +
    [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
    @@ -1002,16 +743,16 @@ [% ELSE %] + Expiry date (leave blank for auto calc): [% IF ( dateformat == "metric" ) %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] [% ELSE %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] @@ -1026,22 +767,22 @@
    [% END # hide fieldset %][% END %] - [% UNLESS ( opadd ) %] -
    - Patron account flags + [% UNLESS ( opadd || opduplicate ) %] +
    + Patron account flags
      [% FOREACH flagloo IN flagloop %]
    -
    - Patron restrictions +
    + Patron restrictions - [% IF ( debarments.size < 1 ) %] -

    Patron is currently unrestricted.

    - [% ELSE %] + [% IF ( debarments ) %] @@ -1223,7 +965,13 @@ [% FOREACH d IN debarments %] - + [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
    [% d.type %][% d.comment %] + [% IF d.comment.search('OVERDUES_PROCESS') %] + Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %] + [% ELSE %] + [% d.comment %] + [% END %] + [% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] @@ -1234,12 +982,15 @@ [% END %]
    + [% ELSE %] +

    Patron is currently unrestricted.

    [% END %] + [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]

    Add manual restriction

    - Add manual restriction + Add manual restriction
    1. @@ -1247,7 +998,7 @@

    - Cancel + Cancel

    [% END %] @@ -1258,12 +1009,12 @@ [% IF ( step_4 ) %][% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
    - Additional attributes and identifiers + Additional attributes and identifiers [% FOREACH pa_loo IN patron_attributes %] [% IF pa_loo.class %]
    - [% pa_loo.lib %] + [% pa_loo.lib %] [% END %]
      [% FOREACH patron_attribute IN pa_loo.items %] @@ -1274,7 +1025,7 @@ [% END %] - [% IF ( patron_attribute.password_allowed ) %] - ( ) - [% END %] - Clear + Clear [% IF ( patron_attribute.repeatable ) %] - New + New [% END %] [% END %] @@ -1317,10 +1064,10 @@ $('#memberentry_messaging_prefs > *').change(function() { message_prefs_dirty = true; }); - $('#categorycode').change(function() { + $('#categorycode_entry').change(function() { var categorycode = $(this).val(); if (message_prefs_dirty) { - if (!confirm('Change messaging preferences to default for this category?')) { + if (!confirm(_("Change messaging preferences to default for this category?"))) { return; } } @@ -1331,15 +1078,15 @@ var transports = ['email', 'rss', 'sms']; $.each(transports, function(j, transport) { if (item['transports_' + transport] == 1) { - $('#' + transport + attrid).attr('checked', 'checked'); + $('#' + transport + attrid).prop('checked', true); } else { - $('#' + transport + attrid).removeAttr('checked'); + $('#' + transport + attrid).prop('checked', false); } }); if (item.digest && item.digest != ' ') { - $('#digest' + attrid).attr('checked', item.digest); + $('#digest' + attrid).prop('checked', true); } else { - $('#digest' + attrid).removeAttr('checked'); + $('#digest' + attrid).prop('checked', false); } if (item.takes_days == '1') { $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance); @@ -1354,30 +1101,64 @@ [% END %] - [% IF type_only %] -

      If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved

      - [% END %] [% INCLUDE 'messaging-preference-form.inc' %] [% IF ( SMSSendDriver ) %]

      - + +

      +

      + +

      [% END %]
    [% END %] [% END %] -[% UNLESS ( check_member ) %] -
    - - [% IF ( opadd ) %] - Cancel - [% ELSE %] - Cancel - [% END %] -
    -[% END %] - + +[% IF quickadd && opadd && !check_member %] +
    +
    Quick add +
      +
    +
    +
    + +[% END %]