X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Fmoremember.tt;h=44cdb94df95c3c0dc0c114bcba87b85a86608339;hb=8a118d01bf3e2415b02fd4a8a820203491a2af90;hp=d25cdead60bb500c1c1aed3815a48b82a5a39b0a;hpb=6ebdbf04819aaeca82d2a5d5dfbcf120e08ee153;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index d25cdead60..44cdb94df9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -1,129 +1,19 @@ [% USE Koha %] +[% USE Branches %] [% USE KohaDates %] +[% USE AuthorisedValues %] [% USE ColumnsSettings %] -[% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %] - [% SET exports_enabled = 1 %] -[% END %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › -[% IF ( unknowuser ) %] - Patron does not exist -[% ELSE %] - Patron details for [% INCLUDE 'patron-title.inc' %] +[% UNLESS blocking_error %] + Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %] [% END %] [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'calendar.inc' %] - -[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'columns_settings.inc' %] -[% INCLUDE 'strings.inc' %] - - -[% INCLUDE 'timepicker.inc' %] - - - - - - + + [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] @@ -131,31 +21,32 @@ function validate1(date) { -
+
+ [% INCLUDE 'members-toolbar.inc' %] + [% IF ( error ) %]
- [% IF ( AUTH_UPDATE_FAILED ) %] -

Userid / Password update failed

- Insufficient privileges. -

Other fields updated.

- [% END %] - [% IF ( CANT_DELETE_STAFF ) %] + [% IF ( error == 'CANT_DELETE_STAFF' ) %]

Unable to delete staff user

Insufficient privileges.

[% END %] - [% IF ( CANT_DELETE_OTHERLIBRARY ) %] + [% IF ( error == 'CANT_DELETE_YOURSELF' ) %] +

Not allowed to delete own account

+

Deleting your own account would lock you out of Koha.

+ [% END %] + [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]

Unable to delete patrons from other libraries with current settings

Insufficient privileges.

[% END %] - [% IF ( CANT_DELETE ) %] + [% IF ( error == 'CANT_DELETE' ) %]

Unable to delete patron

Insufficient privileges.

[% END %] @@ -163,10 +54,40 @@ function validate1(date) { [% END %]
-[% IF ( unknowuser ) %] -
This patron does not exist.
-[% ELSE %] - [% IF ( was_renewed ) %]
Patron's account has been renewed until [% dateexpiry %]
[% END %] + [% IF ( was_renewed ) %]
Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
[% END %] + + [% IF fines %] +
+
    + [% INCLUDE 'blocked-fines.inc' %] +
+
+ [% END %] +
+

Messages:

+
    + [% FOREACH patron_message IN patron_messages %] +
  • + [% IF(patron_message.message_type == "L") %] + + [% ELSE %] + + [% END %] + [% patron_message.message_date | $KohaDates %] + [% Branches.GetName( patron_message.branchcode ) %] + [% IF patron_message.manager_id %] + ( [% patron_message.get_column('manager_firstname') %] [% patron_message.get_column('manager_surname') %] ) + [% END %] + "[% patron_message.message | html %]" + + [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %] + Delete + [% END %] +
  • + [% END %] +
+ Add a new message +
[% IF ( flagged ) %]
@@ -178,77 +99,82 @@ function validate1(date) { [% END %] [% IF ( debarredcomment ) %] - with the explanation: [% debarredcomment | html_line_break %] + with the explanation: + [% IF debarredcomment.search('OVERDUES_PROCESS') %] + Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %] + [% ELSE %] + [% debarredcomment | html_line_break %] + [% END %] + [% END %] - View restrictions + View restrictions [% END %] - [% IF ( gonenoaddress ) %]
  • Patron's address is in doubt.
  • [% END %] + [% IF ( patron.gonenoaddress ) %]
  • Patron's address is in doubt.
  • [% END %] [% IF ( lost ) %]
  • Patron's card has been reported lost.
  • [% END %]
    [% END %] -

    [% UNLESS ( I ) %] - [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])

    + [% patron.title | html %] [% patron.firstname | html %] [% END %] [% patron.surname | html %] ([% patron.cardnumber | html %])
    - [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames %]”[% END %] + [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %] -

    - [% address %]
    - [% IF ( address2 ) %][% address2 %]
    [% END %] - [% IF ( city ) %][% city %][% END %] - [% IF ( state ) %][% state %][% END %] - [% IF ( zipcode ) %][% zipcode %]
    [% END %] - [% IF ( country ) %][% country %][% END %]

    - -
    -
      - [% IF ( I ) %] - [% IF ( phonepro ) %]
    1. Organization phone: [% phonepro %]
    2. [% END %] - [% IF ( emailpro ) %]
    3. Organization email: [% emailpro %]
    4. [% END %] +
      + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] [% ELSE %] - [% IF ( phone ) %]
    5. Primary phone: [% phone %]
    6. [% END %] - [% IF ( phonepro ) %]
    7. Secondary phone: [% phonepro %]
    8. [% END %] - [% IF ( mobile ) %]
    9. Other phone: [% mobile %]
    10. [% END %] + [% INCLUDE 'member-display-address-style-us.inc' %] [% END %] - - [% IF ( P ) %] - [% IF ( phone ) %]
    11. Primary phone: [% phone %]
    12. [% END %] - [% IF ( mobile ) %]
    13. Other phone: [% mobile %]
    14. [% END %] - [% END %] - [% IF ( fax ) %]
    15. Fax: [% fax %]
    16. [% END %] - [% UNLESS ( I ) %] - [% IF ( email ) %]
    17. Primary email:[% email %]
    18. [% END %] - [% IF ( emailpro ) %]
    19. Secondary email: [% emailpro %]
    20. [% END %] - [% END %] - [% IF ( initials ) %]
    21. Initials: [% initials %]
    22. [% END %] - [% IF ( dateofbirth ) %]
    23. Date of birth:[% dateofbirth %]
    24. [% END %] - [% IF ( sex ) %]
    25. Gender: - [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %] -
    26. [% END %][% END %] - [% IF ( printethnicityline ) %] -
    27. Ethnicity:[% ethnicity %]
    28. -
    29. Ethnicity notes: [% ethnotes %]
    30. - [% END %] - [% IF ( isguarantee ) %] - [% IF ( guaranteeloop ) %] -
    31. Guarantees:
    32. +
      + +
      +
        + [% IF ( patron.phone ) %]
      1. Primary phone: [% patron.phone | html %]
      2. [% END %] + [% IF ( patron.phonepro ) %]
      3. Secondary phone: [% patron.phonepro | html %]
      4. [% END %] + [% IF ( patron.mobile ) %]
      5. Other phone: [% patron.mobile | html %]
      6. [% END %] + [% IF ( patron.fax ) %]
      7. Fax: [% patron.fax |html %]
      8. [% END %] + [% IF ( patron.email ) %][% END %] + [% IF ( patron.emailpro ) %][% END %] + [% UNLESS ( I ) %] + [% IF ( patron.initials ) %]
      9. Initials: [% patron.initials | html %]
      10. [% END %] + [% IF ( patron.dateofbirth ) %]
      11. Date of birth:[% patron.dateofbirth | $KohaDates %] ([% age %] years)
      12. [% END %] + [% IF ( patron.sex ) %]
      13. Gender: + [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %] +
      14. [% END %] [% END %] - [% ELSE %] - [% IF ( guarantorborrowernumber ) %] -
      15. Guarantor:[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]
      16. + [% IF guarantees %] +
      17. + Guarantees: + +
      18. + [% ELSIF guarantor %] +
      19. + Guarantor: + [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %] + [% guarantor.firstname | html %] [% guarantor.surname | html %] + [% ELSE %] + [% guarantor.firstname | html %] [% guarantor.surname | html %] + [% END %] +
      20. [% END %] - [% END %] -
      +
    - [% IF ( guarantorborrowernumber ) %] - Edit + [% IF ( guarantor.borrowernumber ) %] + Edit [% ELSE %] - Edit + Edit [% END %]
    @@ -260,27 +186,28 @@ function validate1(date) { [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
    - [% IF ( picture ) %] - Manage Patron Image -
    To update the image for [% title %] [% surname %], select a new image file and click 'Upload.'
    Click the 'Delete' button to remove the current image. + [% IF ( patron.image ) %] + Manage patron image +
    To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.'
    Click the 'Delete' button to remove the current image. [% ELSE %] - Upload Patron Image -
    [% title %] [% firstname %] [% surname %] does not currently have an image available. To import an image for [% title %] [% surname %], enter the name of an image file to upload. + Upload patron image +
    [% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload. [% END %]
    Only PNG, GIF, JPEG, XPM formats are supported.
    - - + +
    + - [% IF ( picture ) %]Delete[% END %] + [% IF ( patron.image ) %]Delete[% END %]
    @@ -290,6 +217,33 @@ function validate1(date) { +[% IF Koha.Preference('HouseboundModule') %] +
    +

    Housebound roles

    +
    +
      +
    1. + Chooser: + [% IF ( housebound_role.housebound_chooser == 1 ) %] + Yes + [% ELSE %] + No + [% END %] +
    2. +
    3. + Deliverer: + [% IF ( housebound_role.housebound_deliverer == 1 ) %] + Yes + [% ELSE %] + No + [% END %] +
    4. +
    +
    +
    + +[% END %] + [% IF ( ExtendedPatronAttributes ) %] [% UNLESS ( no_patron_attribute_types ) %]
    @@ -316,20 +270,21 @@ function validate1(date) {
    [% END %]
    - + [% END %] [% END %] + [% IF ( EnhancedMessagingPreferences ) %]

    Patron messaging preferences

    [% INCLUDE 'messaging-preference-form.inc' %] [% IF ( SMSSendDriver ) %] -
    1. SMS number:[% SMSnumber %] + [% END %]
    - + [% END %]
    @@ -338,16 +293,16 @@ function validate1(date) {

    Library use

      -
    1. Card number: [% cardnumber %]
    2. -
    3. Borrowernumber: [% borrowernumber %]
    4. -
    5. Category: [% description %] ([% categorycode %])
    6. -
    7. Registration date: [% dateenrolled %]
    8. - +
    9. Card number: [% patron.cardnumber %]
    10. +
    11. Borrowernumber: [% patron.borrowernumber %]
    12. +
    13. Category: [% patron.category.description %] ([% patron.categorycode %])
    14. +
    15. Registration date: [% patron.dateenrolled | $KohaDates %]
    16. +
    17. Expiration date: [% IF ( was_renewed ) %] - [% dateexpiry %] + [% patron.dateexpiry | $KohaDates %] [% ELSE %] - [% dateexpiry %] + [% patron.dateexpiry | $KohaDates %] [% END %]
    18. @@ -358,18 +313,28 @@ function validate1(date) { [% IF ( privacy1 ) %]Default[% END %] [% IF ( privacy2 ) %]Never[% END %] [% END %] - [% IF ( sort1 ) %]
    19. Sort field 1:[% lib1 %]
    20. [% END %] - [% IF ( sort2 ) %]
    21. Sort field 2:[% lib2 %]
    22. [% END %] -
    23. Username: [% userid %]
    24. + +
    25. + Show checkouts to guarantor + [% IF privacy_guarantor_checkouts %] + Yes + [% ELSE %] + No + [% END %] +
    26. + + [% IF ( patron.sort1 ) %]
    27. Sort field 1:[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]
    28. [% END %] + [% IF ( patron.sort2 ) %]
    29. Sort field 2:[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]
    30. [% END %] +
    31. Username: [% patron.userid |html %]
    32. Password: - [% IF ( password ) %] + [% IF ( patron.password ) %] ******* [% ELSE %] - Undefined + Undefined [% END %]
    33. - [% IF ( borrowernotes ) %]
    34. Circulation note: [% borrowernotes %]
    35. [% END %] - [% IF ( opacnote ) %]
    36. OPAC note:[% opacnote %]
    37. [% END %] + [% IF ( patron.borrowernotes ) %]
    38. Circulation note: [% patron.borrowernotes |html %]
    39. [% END %] + [% IF ( patron.opacnote ) %]
    40. OPAC note:[% patron.opacnote |html %]
    41. [% END %] [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %] [% IF ( sync == 1 ) %]
    42. Activate sync: Yes
    43. @@ -378,48 +343,64 @@ function validate1(date) { [% ELSE %]
    44. Activate sync: No
    45. [% END %] + [% END %] + [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] +
    46. Check previous checkouts: + [% IF ( patron.checkprevcheckout == 'yes' ) %] + Yes + [% ELSIF ( patron.checkprevcheckout == 'no' ) %] + No + [% ELSE %] + Inherited + [% END %] +
    47. + [% END %] + [% IF Koha.Preference('TranslateNotices') %] +
    48. + Preferred language for notices: + [% patron.translated_language %] +
    49. [% END %]
    - + - [% UNLESS ( I ) %]

    Alternate address

    -
    1. Address: [% B_address %]
    2. -
    3. Address 2: [% B_address2 %]
    4. -
    5. City: [% B_city %]
    6. - [% IF ( B_state ) %]
    7. State: [% B_state %]
    8. [% END %] -
    9. Zip/Postal code: [% B_zipcode %]
    10. - [% IF ( B_country ) %]
    11. Country: [% B_country %]
    12. [% END %] - [% IF ( B_phone ) %]
    13. Phone: [% B_phone %]
    14. [% END %] - [% IF ( B_email ) %]
    15. Email: [% B_email %]
    16. [% END %] - [% IF ( contactnote ) %]
    17. Contact note: [% contactnote %]
    18. [% END %] + + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% ELSE %] + [% INCLUDE 'member-display-alt-address-style-us.inc' %] + [% END %] + +
        + [% IF ( patron.B_phone ) %]
      1. Phone: [% patron.B_phone |html %]
      2. [% END %] + [% IF ( patron.B_email ) %][% END %] + [% IF ( patron.contactnote ) %]
      3. Contact note: [% patron.contactnote |html %]
      4. [% END %]
    - - [% END %] +

    Alternative contact

    -
    1. Surname: [% altcontactsurname %]
    2. -
    3. First name: [% altcontactfirstname %]
    4. -
    5. Address: [% altcontactaddress1 %]
    6. -
    7. Address 2: [% altcontactaddress2 %]
    8. -
    9. City: [% altcontactaddress3 %]
    10. - [% IF ( altcontactstate ) %]
    11. State: [% altcontactstate %]
    12. [% END %] -
    13. Zip/Postal code: [% altcontactzipcode %]
    14. - [% IF ( altcontactcountry ) %]
    15. Country: [% altcontactcountry %]
    16. [% END %] - [% IF ( altcontactphone ) %]
    17. Phone: [% altcontactphone %]
    18. [% END %] +
      1. Surname: [% patron.altcontactsurname | html %]
      2. +
      3. First name: [% patron.altcontactfirstname | html %]
      4. +
      5. Address: [% patron.altcontactaddress1 | html %]
      6. +
      7. Address 2: [% patron.altcontactaddress2 | html %]
      8. +
      9. City: [% patron.altcontactaddress3 | html %]
      10. + [% IF ( patron.altcontactstate ) %]
      11. State: [% patron.altcontactstate | html %]
      12. [% END %] +
      13. ZIP/Postal code: [% patron.altcontactzipcode | html %]
      14. + [% IF ( patron.altcontactcountry ) %]
      15. Country: [% patron.altcontactcountry | html %]
      16. [% END %] + [% IF ( patron.altcontactphone ) %]
      17. Phone: [% patron.altcontactphone | html %]
      18. [% END %]
    - +
    -
    [% INCLUDE "checkouts-table.inc" %] @@ -444,13 +440,16 @@ function validate1(date) { + + + @@ -467,6 +466,12 @@ function validate1(date) { [% END %] +[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %] +
    + Loading... +
    +[% END %] + [% INCLUDE borrower_debarments.inc %]
    @@ -480,9 +485,11 @@ function validate1(date) {
    + +
    Due date hidden not formatted Due date Title Item typeLocation Checked out on Checked out from Call no ChargeFine Price Patron
    Title Call number BarcodePickup at Expiration Priority Delete?Suspend?
    @@ -492,16 +499,16 @@ function validate1(date) { - [% IF SuspendHoldsIntranet %] + [% IF Koha.Preference('SuspendHoldsIntranet') %]
    - + - [% IF AutoResumeSuspendedHolds %] + [% IF Koha.Preference('AutoResumeSuspendedHolds') %] - + Specify date on which to resume [% INCLUDE 'date-format.inc' %]: [% END %]
    @@ -510,7 +517,7 @@ function validate1(date) {
    - +
    @@ -520,9 +527,12 @@ function validate1(date) { [% ELSE %]

    Patron has nothing on hold.

    [% END %]
    -
    -[% END %] +[% IF Koha.Preference('ArticleRequests') %] + [% INCLUDE 'patron-article-requests.inc' %] +[% END %] + +
    @@ -530,4 +540,130 @@ function validate1(date) { [% INCLUDE 'circ-menu.inc' %]
    + +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] + [% INCLUDE 'strings.inc' %] + [% INCLUDE 'calendar.inc' %] + + + [% INCLUDE 'timepicker.inc' %] + + + + + + + +[% END %] + [% INCLUDE 'intranet-bottom.inc' %]