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=c544584f6cf9d5de6fed3d67698f03ec386ce9b7;hpb=2937eaeeae1b3c05aaeac6c8c16c51221ad402c5;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 c544584f6c..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,108 +1,83 @@ -[% 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 %] - +
@@ -145,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 %] @@ -186,12 +169,12 @@
  • 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 %] @@ -208,14 +191,39 @@
  • 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.
  • +
  • [% 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 %] @@ -269,9 +277,9 @@ [% END %] Surname: [% IF ( uppercasesurnames ) %] - + [% ELSE %] - + [% END %] [% IF ( mandatorysurname ) %]Required[% END %] @@ -298,11 +306,7 @@ [% END %] Date of birth: - [% IF ( dateformat == "metric" ) %] - - [% ELSE %] - - [% END %] + [% IF ( mandatorydateofbirth ) %]Required[% END %] [% IF ( ERROR_dateofbirth ) %](Error)[% END %] @@ -317,7 +321,7 @@ - + [% IF ( mandatoryinitials ) %]Required[% END %] [% END %] @@ -330,7 +334,7 @@ - + [% IF ( mandatoryothernames ) %]Required[% END %] [% IF ( I ) %][% END %] @@ -351,14 +355,14 @@ [% END %] [% IF ( none ) %] - + [% ELSE %] - + [% END %] [% ELSE %] - + [% END %] @@ -368,9 +372,13 @@ [% END # hide fieldset %] -[% IF ( showguarantor ) %] -
    - Guarantor information +[% IF ( showguarantor ) %] + + [% UNLESS step_6 %] + + [% END %] +
    + Guarantor information
      [% IF ( P ) %] [% IF ( guarantorid ) %] @@ -386,7 +394,7 @@ [% contactname %] [% ELSE %] - + [% END %] [% ELSE %] @@ -405,7 +413,7 @@ [% contactname %] [% ELSE %] - + [% END %] [% END %] @@ -416,7 +424,7 @@ [% contactfirstname %] [% ELSE %] - + [% END %] [% END %] @@ -439,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 %] @@ -581,13 +485,13 @@ Contact
      [% UNLESS nophone %]
    1. - [% IF ( mandatoryphone ) %] + [% IF ( mandatoryphone ) %]
    2. @@ -600,7 +504,7 @@ - + [% IF ( mandatoryphonepro ) %]Required[% END %] [% END %] @@ -611,8 +515,8 @@ [% ELSE %] - + Other phone: + [% IF ( mandatorymobile ) %]Required[% END %] [% END %] @@ -624,20 +528,20 @@ - + [% IF ( mandatoryemail ) %]Required[% END %]
      Shows on transit slips
      [% END %] [% UNLESS noemailpro %]
    3. - [% IF ( mandatoryemailpro ) %] + [% IF ( mandatoryemailpro ) %]
    4. [% END %] @@ -649,7 +553,7 @@ - + [% IF ( mandatoryfax ) %]Required[% END %] [% END %] @@ -662,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. - [% END %] - [% UNLESS nocontactnote %] -
      17. - [% IF ( mandatorycontactnote ) %] -
      18. + [% INCLUDE 'member-alt-address-style-us.inc' %] [% 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 %] @@ -905,15 +596,22 @@ [% END %] Card number: [% IF minlength_cardnumber == maxlength_cardnumber %] - + + [% IF ( mandatorycardnumber ) %]Required[% END %] +
      Card number must be exactly [% minlength_cardnumber %] characters.
      [% ELSIF minlength_cardnumber && maxlength_cardnumber %] - + + [% IF ( mandatorycardnumber ) %]Required[% END %] +
      Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters.
      [% ELSIF maxlength_cardnumber %] - + + [% IF ( mandatorycardnumber ) %]Required[% END %] +
      Card number can be up to [% maxlength_cardnumber %] characters.
      [% ELSE %] - + + [% IF ( mandatorycardnumber ) %]Required[% END %] +
      There is no minimum or maximum character length.
      [% END %] - [% IF ( mandatorycardnumber ) %]Required[% END %] [% END %] [% UNLESS nobranchcode %] @@ -932,8 +630,8 @@ [% END %]
    5. - - [% FOREACH typeloo IN typeloop %] [% FOREACH categoryloo IN typeloo.categoryloop %] [% IF ( loop.first ) %] @@ -965,7 +663,7 @@ - [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, class=focusAction, size = 20 %] + [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] [% IF ( mandatorysort1 ) %]Required[% END %]
    6. [% END %] @@ -977,7 +675,7 @@ - [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, class=focusAction, size = 20 %] + [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] [% IF ( mandatorysort2 ) %]Required[% END %] [% END %] @@ -993,7 +691,26 @@ [% END %] [% END %] -
    + [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] +
  • + +
  • + [% END %] +
    [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
    @@ -1026,7 +743,7 @@ [% ELSE %] + Expiry date (leave blank for auto calc): [% IF ( dateformat == "metric" ) %] [% UNLESS ( opadd ) %] @@ -1050,7 +767,7 @@