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=dc4ff751256323298b107d1b9d17e9f966cf0666;hpb=3c344c20cf8837d294a47ff81dc2a4cac66473cf;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 dc4ff75125..44cdb94df9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -3,139 +3,17 @@ [% USE KohaDates %] [% USE AuthorisedValues %] [% USE ColumnsSettings %] +[% 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' %] @@ -143,7 +21,7 @@ function validate1(date) {
@@ -152,9 +30,7 @@ function validate1(date) {
-[% UNLESS ( unknowuser ) %] [% INCLUDE 'members-toolbar.inc' %] -[% END %] [% IF ( error ) %]
@@ -178,10 +54,7 @@ function validate1(date) { [% END %]
-[% IF ( unknowuser ) %] -
This patron does not exist. Find another patron?
-[% ELSE %] - [% IF ( was_renewed ) %]
Patron's account has been renewed until [% dateexpiry | $KohaDates %]
[% END %] + [% IF ( was_renewed ) %]
Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
[% END %] [% IF fines %]
@@ -190,6 +63,31 @@ function validate1(date) {
[% 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 ) %]
@@ -212,18 +110,17 @@ function validate1(date) { 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 | html %] [% firstname | html %] [% END %] [% surname | html %] ([% cardnumber | html %])

    + [% patron.title | html %] [% patron.firstname | html %] [% END %] [% patron.surname | html %] ([% patron.cardnumber | html %])
    - [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames | html %]”[% END %] + [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
    [% IF Koha.Preference( 'AddressFormat' ) %] @@ -234,52 +131,50 @@ function validate1(date) {
    -
      - [% IF ( I ) %] - [% IF ( phonepro ) %]
    1. Organization phone: [% phonepro | html %]
    2. [% END %] - [% IF ( emailpro ) %][% END %] - [% ELSE %] - [% IF ( phone ) %]
    3. Primary phone: [% phone | html %]
    4. [% END %] - [% IF ( phonepro ) %]
    5. Secondary phone: [% phonepro | html %]
    6. [% END %] - [% IF ( mobile ) %]
    7. Other phone: [% mobile | html %]
    8. [% END %] +
        + [% 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 %] - - [% IF ( fax ) %]
      15. Fax: [% fax %]
      16. [% END %] - [% UNLESS ( I ) %] - [% IF ( email ) %][% END %] - [% IF ( emailpro ) %][% END %] - [% END %] - [% IF ( initials ) %]
      17. Initials: [% initials %]
      18. [% END %] - [% IF ( dateofbirth ) %]
      19. Date of birth:[% dateofbirth | $KohaDates %] ([% age %] years)
      20. [% END %] - [% IF ( sex ) %]
      21. Gender: - [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %] -
      22. [% END %][% END %] - [% IF guarantees %] -
      23. - Guarantees: - -
      24. - [% ELSIF guarantor %] -
      25. - Guarantor: - [% IF guarantor.borrowernumber %] - [% guarantor.firstname | html %] [% guarantor.surname | html %] - [% ELSE %] - [% guarantor.firstname | html %] [% guarantor.surname | html %] - [% END %] -
      26. - [% END %] -
      + + [% END %] +
    [% IF ( guarantor.borrowernumber ) %] - Edit + Edit [% ELSE %] - Edit + Edit [% END %]
    @@ -291,18 +186,18 @@ function validate1(date) { [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
    - [% IF ( picture ) %] + [% IF ( patron.image ) %] Manage patron image -
    To update the image for [% title | html %] [% surname | html %], select a new image file and click 'Upload.'
    Click the 'Delete' button to remove the current 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 | html %] [% surname | html %] does not currently have an image available. To import an image for [% title %] [% surname | html %], enter the name of an image file to upload. +
    [% 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.
    - - + +
    1. @@ -312,7 +207,7 @@ function validate1(date) { - [% IF ( picture ) %]Delete[% END %] + [% IF ( patron.image ) %]Delete[% END %]
    @@ -346,7 +241,7 @@ function validate1(date) {
    - + [% END %] [% IF ( ExtendedPatronAttributes ) %] @@ -375,7 +270,7 @@ function validate1(date) {
    [% END %]
    - + [% END %] [% END %] @@ -385,11 +280,11 @@ function validate1(date) {

    Patron messaging preferences

    [% INCLUDE 'messaging-preference-form.inc' %] [% IF ( SMSSendDriver ) %] -
    1. SMS number:[% SMSnumber %] + [% END %]
    - + [% END %]
    @@ -398,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 | $KohaDates %]
    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 | $KohaDates %] + [% patron.dateexpiry | $KohaDates %] [% ELSE %] - [% dateexpiry | $KohaDates %] + [% patron.dateexpiry | $KohaDates %] [% END %]
    18. @@ -428,18 +323,18 @@ function validate1(date) { [% END %] - [% IF ( sort1 ) %]
    19. Sort field 1:[% AuthorisedValues.GetByCode('Bsort1', sort1) %]
    20. [% END %] - [% IF ( sort2 ) %]
    21. Sort field 2:[% AuthorisedValues.GetByCode('Bsort2', sort2) %]
    22. [% END %] -
    23. Username: [% userid %]
    24. + [% IF ( patron.sort1 ) %]
    25. Sort field 1:[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]
    26. [% END %] + [% IF ( patron.sort2 ) %]
    27. Sort field 2:[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]
    28. [% END %] +
    29. Username: [% patron.userid |html %]
    30. Password: - [% IF ( password ) %] + [% IF ( patron.password ) %] ******* [% ELSE %] - Undefined + Undefined [% END %]
    31. - [% IF ( borrowernotes ) %]
    32. Circulation note: [% borrowernotes %]
    33. [% END %] - [% IF ( opacnote ) %]
    34. OPAC note:[% opacnote %]
    35. [% END %] + [% IF ( patron.borrowernotes ) %]
    36. Circulation note: [% patron.borrowernotes |html %]
    37. [% END %] + [% IF ( patron.opacnote ) %]
    38. OPAC note:[% patron.opacnote |html %]
    39. [% END %] [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %] [% IF ( sync == 1 ) %]
    40. Activate sync: Yes
    41. @@ -451,21 +346,26 @@ function validate1(date) { [% END %] [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
    42. Check previous checkouts: - [% IF ( checkprevcheckout == 'yes' ) %] + [% IF ( patron.checkprevcheckout == 'yes' ) %] Yes - [% ELSIF ( checkprevcheckout == 'no' ) %] + [% ELSIF ( patron.checkprevcheckout == 'no' ) %] No [% ELSE %] Inherited [% END %]
    43. + [% END %] + [% IF Koha.Preference('TranslateNotices') %] +
    44. + Preferred language for notices: + [% patron.translated_language %] +
    45. [% END %]
    -
    Edit
    +
    Edit
    - [% UNLESS ( I ) %]

    Alternate address

    @@ -476,33 +376,31 @@ function validate1(date) { [% END %]
      - [% IF ( B_phone ) %]
    1. Phone: [% B_phone %]
    2. [% END %] - [% IF ( B_email ) %][% END %] - [% IF ( contactnote ) %]
    3. Contact note: [% contactnote %]
    4. [% END %] + [% IF ( patron.B_phone ) %]
    5. Phone: [% patron.B_phone |html %]
    6. [% END %] + [% IF ( patron.B_email ) %][% END %] + [% IF ( patron.contactnote ) %]
    7. Contact note: [% patron.contactnote |html %]
    8. [% END %]
    -
    Edit
    - [% END %] +
    Edit

    Alternative contact

    -
    1. Surname: [% altcontactsurname | html %]
    2. -
    3. First name: [% altcontactfirstname | html %]
    4. -
    5. Address: [% altcontactaddress1 | html %]
    6. -
    7. Address 2: [% altcontactaddress2 | html %]
    8. -
    9. City: [% altcontactaddress3 | html %]
    10. - [% IF ( altcontactstate ) %]
    11. State: [% altcontactstate | html %]
    12. [% END %] -
    13. ZIP/Postal code: [% altcontactzipcode | html %]
    14. - [% IF ( altcontactcountry ) %]
    15. Country: [% altcontactcountry | html %]
    16. [% END %] - [% IF ( altcontactphone ) %]
    17. Phone: [% altcontactphone | html %]
    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 %]
    -
    Edit
    +
    Edit
    -
    -[% END %] - @@ -644,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' %]