View | Details | Raw Unified | Return to bug 20988
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt (-27 / +28 lines)
Lines 1-17 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[%- USE Price -%]
2
[%- USE Price -%]
2
[%- USE KohaDates -%]
3
[%- USE KohaDates -%]
3
[%- USE AuthorisedValues -%]
4
[%- USE AuthorisedValues -%]
4
[%- USE Branches -%]
5
[%- USE Branches -%]
5
6
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
8
<title>[% t('Koha › Patrons › Account for') %] [% INCLUDE 'patron-title.inc' %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
<body id="pat_discharges" class="pat">
11
<body id="pat_discharges" class="pat">
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account for [% INCLUDE 'patron-title.inc' %]</a> &rsaquo; Details for account line [% accountline.id %]</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  › <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account for') %] [% INCLUDE 'patron-title.inc' %]</a> [% t('› Details for account line') %] [% accountline.id %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
<div id="bd">
18
<div id="bd">
Lines 19-37 Link Here
19
        <div class="yui-b">
20
        <div class="yui-b">
20
            [% IF accountline %]
21
            [% IF accountline %]
21
                [% IF type == 'credit' %]
22
                [% IF type == 'credit' %]
22
                    <h2>Details for payment</h2>
23
                    <h2>[% t('Details for payment') %]</h2>
23
                [% ELSIF type == 'debit' %]
24
                [% ELSIF type == 'debit' %]
24
                    <h2>Details for fee</h2>
25
                    <h2>[% t('Details for fee') %]</h2>
25
                [% END %]
26
                [% END %]
26
27
27
                <table id="table_account_fines">
28
                <table id="table_account_fines">
28
                    <thead>
29
                    <thead>
29
                        <tr>
30
                        <tr>
30
                            <th class="title-string">Date</th>
31
                            <th class="title-string">[% t('Date') %]</th>
31
                            <th>Description of charges</th>
32
                            <th>[% t('Description of charges') %]</th>
32
                            <th>Note</th>
33
                            <th>[% t('Note') %]</th>
33
                            <th>Amount</th>
34
                            <th>[% t('Amount') %]</th>
34
                            <th>Outstanding</th>
35
                            <th>[% t('Outstanding') %]</th>
35
                        </tr>
36
                        </tr>
36
                    </thead>
37
                    </thead>
37
38
Lines 49-58 Link Here
49
                                    , [% accountline.description %]
50
                                    , [% accountline.description %]
50
                                [%- END -%]
51
                                [%- END -%]
51
52
52
                                &nbsp;
53
                                 
53
                                [% IF ( accountline.itemnumber ) %]
54
                                [% IF ( accountline.itemnumber ) %]
54
                                    [% SET biblio = accountline.item.biblio %]
55
                                    [% SET biblio = accountline.item.biblio %]
55
                                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]&amp;itemnumber=[% accountline.itemnumber %]">[% biblio.title |html %]</a>
56
                                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]&itemnumber=[% accountline.itemnumber %]">[% biblio.title |html %]</a>
56
                                [% END %]
57
                                [% END %]
57
                            </td>
58
                            </td>
58
59
Lines 72-97 Link Here
72
                </table>
73
                </table>
73
74
74
                [% IF type == 'credit' %]
75
                [% IF type == 'credit' %]
75
                    <h3>Fees paid</h3>
76
                    <h3>[% t('Fees paid') %]</h3>
76
                [% ELSIF type == 'debit' %]
77
                [% ELSIF type == 'debit' %]
77
                    <h3>Payments</h3>
78
                    <h3>[% t('Payments') %]</h3>
78
                [% END %]
79
                [% END %]
79
80
80
                [% IF account_offsets %]
81
                [% IF account_offsets %]
81
                    <table class="accountline-offsets-table" id="accountline-debits-table">
82
                    <table class="accountline-offsets-table" id="accountline-debits-table">
82
                        <thead>
83
                        <thead>
83
                            <tr>
84
                            <tr>
84
                                <th>Date created</th>
85
                                <th>[% t('Date created') %]</th>
85
                                <th>Date updated</th>
86
                                <th>[% t('Date updated') %]</th>
86
                                <th>Amount</th>
87
                                <th>[% t('Amount') %]</th>
87
                                <th>Amount outstanding</th>
88
                                <th>[% t('Amount outstanding') %]</th>
88
                                <th>Type</th>
89
                                <th>[% t('Type') %]</th>
89
                                <th>Note</th>
90
                                <th>[% t('Note') %]</th>
90
                                <th>Transacting librarian</th>
91
                                <th>[% t('Transacting librarian') %]</th>
91
                                <th>Date/Time of change</th>
92
                                <th>[% t('Date/Time of change') %]</th>
92
                                <th>Amount of change</th>
93
                                <th>[% t('Amount of change') %]</th>
93
                                <th>Type of change</th>
94
                                <th>[% t('Type of change') %]</th>
94
                                <th>&nbsp;</th>
95
                                <th> </th>
95
                            </tr>
96
                            </tr>
96
                        </thead>
97
                        </thead>
97
98
Lines 115-132 Link Here
115
                                        <td>[% ao.created_on | $KohaDates with_hours => 1 %]</td>
116
                                        <td>[% ao.created_on | $KohaDates with_hours => 1 %]</td>
116
                                        <td>[% ao.amount | $Price %]</td>
117
                                        <td>[% ao.amount | $Price %]</td>
117
                                        <td>[% INCLUDE 'account_offset_type.inc' account_offset => ao %]</td>
118
                                        <td>[% INCLUDE 'account_offset_type.inc' account_offset => ao %]</td>
118
                                        <td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td>
119
                                        <td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> [% t('Details') %]</a></td>
119
                                    </tr>
120
                                    </tr>
120
                                [% END %]
121
                                [% END %]
121
                            [% END %]
122
                            [% END %]
122
                        </tbody>
123
                        </tbody>
123
                    </table>
124
                    </table>
124
                [% ELSE %]
125
                [% ELSE %]
125
                    No details available for this payment.
126
                    [% t('No details available for this payment.') %]
126
                [% END %]
127
                [% END %]
127
            [% ELSE %]
128
            [% ELSE %]
128
                <div class="dialog message">
129
                <div class="dialog message">
129
                    <p>Account line not found.</p>
130
                    <p>[% t('Account line not found.') %]</p>
130
                </div>
131
                </div>
131
            [% END %]
132
            [% END %]
132
        </div>
133
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt (-21 / +22 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% USE Asset %]
3
[% USE Asset %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Patrons &rsaquo; API Keys</title>
6
<title>[% t('Koha › Patrons › API Keys') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="pat_apikeys" class="pat">
9
<body id="pat_apikeys" class="pat">
Lines 10-20 Link Here
10
[% INCLUDE 'patron-search.inc' %]
11
[% INCLUDE 'patron-search.inc' %]
11
12
12
<div id="breadcrumbs">
13
<div id="breadcrumbs">
13
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
14
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
14
    &rsaquo;
15
15
    <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
16
    <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
16
    &rsaquo;
17
17
    API Keys for [% INCLUDE 'patron-title.inc' %]
18
    [% t('API Keys for') %] [% INCLUDE 'patron-title.inc' %]
18
</div>
19
</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
Lines 23-41 Link Here
23
            <div class="yui-b">
24
            <div class="yui-b">
24
                [% INCLUDE 'members-toolbar.inc' %]
25
                [% INCLUDE 'members-toolbar.inc' %]
25
26
26
                <h1>API keys for [% INCLUDE 'patron-title.inc' %]</h1>
27
                <h1>[% t('API keys for') %] [% INCLUDE 'patron-title.inc' %]</h1>
27
                <form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none">
28
                <form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none">
28
                    <input type="hidden" name="patron_id" value="[% patron.id %]" />
29
                    <input type="hidden" name="patron_id" value="[% patron.id %]" />
29
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
30
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
30
                    <input type="hidden" name="op" value="generate" />
31
                    <input type="hidden" name="op" value="generate" />
31
                    <fieldset class="brief">
32
                    <fieldset class="brief">
32
                        <legend>Generate new client id/secret pair</legend>
33
                        <legend>[% t('Generate new client id/secret pair') %]</legend>
33
                        <ol>
34
                        <ol>
34
                            <li>
35
                            <li>
35
                                <label for="description">Description: </label>
36
                                <label for="description">[% t('Description:') %] </label>
36
                                <input type="text" name="description" />
37
                                <input type="text" name="description" />
37
                                <input type="submit" value="Save" />
38
                                <input type="submit" value="Save" />
38
                                <a href="#" class="cancel toggle_element" data-element="#add-api-key">Cancel</a>
39
                                <a href="#" class="cancel toggle_element" data-element="#add-api-key">[% t('Cancel') %]</a>
39
                            </li>
40
                            </li>
40
                        </ol>
41
                        </ol>
41
                    </fieldset>
42
                    </fieldset>
Lines 44-59 Link Here
44
                <div id="keys">
45
                <div id="keys">
45
                    [% IF api_keys && api_keys.size > 0 %]
46
                    [% IF api_keys && api_keys.size > 0 %]
46
                        <p>
47
                        <p>
47
                            <button class="btn btn-default btn-xs toggle_element" type="submit" id="show-api-form" data-element="#add-api-key"><i class="fa fa-plus"></i> Generate a new client id/key pair</button>
48
                            <button class="btn btn-default btn-xs toggle_element" type="submit" id="show-api-form" data-element="#add-api-key"><i class="fa fa-plus"></i> [% t('Generate a new client id/key pair') %]</button>
48
                        </p>
49
                        </p>
49
                        <table>
50
                        <table>
50
                            <thead>
51
                            <thead>
51
                                <tr>
52
                                <tr>
52
                                    <th>Description</th>
53
                                    <th>[% t('Description') %]</th>
53
                                    <th>Client ID</th>
54
                                    <th>[% t('Client ID') %]</th>
54
                                    <th>Secret</th>
55
                                    <th>[% t('Secret') %]</th>
55
                                    <th>Active</th>
56
                                    <th>[% t('Active') %]</th>
56
                                    <th>Actions</th>
57
                                    <th>[% t('Actions') %]</th>
57
                                </tr>
58
                                </tr>
58
                            </thead>
59
                            </thead>
59
                            <tbody>
60
                            <tbody>
Lines 62-75 Link Here
62
                                        <td>[% key.description %]</td>
63
                                        <td>[% key.description %]</td>
63
                                        <td>[% key.client_id %]</td>
64
                                        <td>[% key.client_id %]</td>
64
                                        <td>[% key.secret %]</td>
65
                                        <td>[% key.secret %]</td>
65
                                        <td>[% IF key.active %]Yes[% ELSE %]No[% END %]</td>
66
                                        <td>[% IF key.active %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
66
                                        <td>
67
                                        <td>
67
                                            <form action="/cgi-bin/koha/members/apikeys.pl" method="post">
68
                                            <form action="/cgi-bin/koha/members/apikeys.pl" method="post">
68
                                                <input type="hidden" name="patron_id" value="[% patron.id %]" />
69
                                                <input type="hidden" name="patron_id" value="[% patron.id %]" />
69
                                                <input type="hidden" name="key" value="[% key.id %]" />
70
                                                <input type="hidden" name="key" value="[% key.id %]" />
70
                                                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
71
                                                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
71
                                                <input type="hidden" name="op" value="delete" />
72
                                                <input type="hidden" name="op" value="delete" />
72
                                                <button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash"></i> Delete</button>
73
                                                <button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
73
                                            </form>
74
                                            </form>
74
                                            <form action="/cgi-bin/koha/members/apikeys.pl" method="post">
75
                                            <form action="/cgi-bin/koha/members/apikeys.pl" method="post">
75
                                                <input type="hidden" name="patron_id" value="[% patron.id %]" />
76
                                                <input type="hidden" name="patron_id" value="[% patron.id %]" />
Lines 77-86 Link Here
77
                                                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
78
                                                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
78
                                                [% IF key.active %]
79
                                                [% IF key.active %]
79
                                                    <input type="hidden" name="op" value="revoke" />
80
                                                    <input type="hidden" name="op" value="revoke" />
80
                                                    <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-remove"></i> Revoke</button>
81
                                                    <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-remove"></i> [% t('Revoke') %]</button>
81
                                                [% ELSE %]
82
                                                [% ELSE %]
82
                                                    <input type="hidden" name="op" value="activate" />
83
                                                    <input type="hidden" name="op" value="activate" />
83
                                                    <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-play"></i> Activate</button>
84
                                                    <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-play"></i> [% t('Activate') %]</button>
84
                                                [% END %]
85
                                                [% END %]
85
                                            </form>
86
                                            </form>
86
                                        </td>
87
                                        </td>
Lines 89-95 Link Here
89
                            </tbody>
90
                            </tbody>
90
                        </table>
91
                        </table>
91
                    [% ELSE %]
92
                    [% ELSE %]
92
                        <div class="dialog message">No keys defined for the current patron. <a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"><i class="fa fa-plus"></i> Generate a new client id/secret pair</div>
93
                        <div class="dialog message">[% t('No keys defined for the current patron.') %] <a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"><i class="fa fa-plus"></i> [% t('Generate a new client id/secret pair') %]</div>
93
                    [% END %]
94
                    [% END %]
94
                </div>
95
                </div>
95
            </div>
96
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-22 / +23 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
Lines 7-13 Link Here
7
[% USE Branches %]
8
[% USE Branches %]
8
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
[% INCLUDE 'doc-head-open.inc' %]
10
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
11
<title>[% t('Koha › Patrons › Account for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
12
[% Asset.css("css/datatables.css") %]
13
[% Asset.css("css/datatables.css") %]
13
</head>
14
</head>
Lines 16-22 Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'patron-search.inc' %]
18
[% INCLUDE 'patron-search.inc' %]
18
19
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</div>
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Account for') %] [% INCLUDE 'patron-title.inc' %]</div>
20
21
21
<div id="doc3" class="yui-t2">
22
<div id="doc3" class="yui-t2">
22
   <div id="bd">
23
   <div id="bd">
Lines 28-52 Link Here
28
<!-- The manual invoice and credit buttons -->
29
<!-- The manual invoice and credit buttons -->
29
<div class="statictabs">
30
<div class="statictabs">
30
<ul>
31
<ul>
31
    <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li>
32
    <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account') %]</a></li>
32
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li>
33
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines') %]</a></li>
33
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li>
34
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual invoice') %]</a></li>
34
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li>
35
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual credit') %]</a></li>
35
</ul>
36
</ul>
36
<div class="tabs-container">
37
<div class="tabs-container">
37
<!-- The table with the account items -->
38
<!-- The table with the account items -->
38
<table id="table_account_fines">
39
<table id="table_account_fines">
39
    <thead>
40
    <thead>
40
      <tr>
41
      <tr>
41
          <th class="title-string">Date</th>
42
          <th class="title-string">[% t('Date') %]</th>
42
          <th>Description of charges</th>
43
          <th>[% t('Description of charges') %]</th>
43
          <th>Note</th>
44
          <th>[% t('Note') %]</th>
44
          <th>Amount</th>
45
          <th>[% t('Amount') %]</th>
45
          <th>Outstanding</th>
46
          <th>[% t('Outstanding') %]</th>
46
          [% IF ( reverse_col ) %]
47
          [% IF ( reverse_col ) %]
47
              <th>Actions</th>
48
              <th>[% t('Actions') %]</th>
48
          [% ELSE %]
49
          [% ELSE %]
49
              <th>&nbsp;</th>
50
              <th> </th>
50
          [% END %]
51
          [% END %]
51
        </tr>
52
        </tr>
52
    </thead>
53
    </thead>
Lines 60-82 Link Here
60
        [% INCLUDE 'accounttype.inc' accountline => account %]
61
        [% INCLUDE 'accounttype.inc' accountline => account %]
61
        [%- IF account.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) %][% END %]
62
        [%- IF account.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) %][% END %]
62
        [%- IF account.description %], [% account.description %][% END %]
63
        [%- IF account.description %], [% account.description %][% END %]
63
        &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% account.item.biblio.title |html %]</a>[% END %]</td>
64
         [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&itemnumber=[% account.itemnumber %]">[% account.item.biblio.title |html %]</a>[% END %]</td>
64
      <td>[% account.note | html_line_break %]</td>
65
      <td>[% account.note | html_line_break %]</td>
65
      [% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount | $Price %]</td>
66
      [% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount | $Price %]</td>
66
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price %]</td>
67
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price %]</td>
67
      <td class="actions">
68
      <td class="actions">
68
        [% IF ( account.payment ) %]
69
        [% IF ( account.payment ) %]
69
          <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
70
          <a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> [% t('Print') %]</a>
70
        [% ELSE %]
71
        [% ELSE %]
71
          <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
72
          <a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> [% t('Print') %]</a>
72
        [% END %]
73
        [% END %]
73
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>
74
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> [% t('Details') %]</a>
74
        [% IF ( reverse_col) %]
75
        [% IF ( reverse_col) %]
75
          [% IF ( account.payment ) %]
76
          [% IF ( account.payment ) %]
76
            <a href="boraccount.pl?action=reverse&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-undo"></i> Reverse</a>
77
            <a href="boraccount.pl?action=reverse&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-undo"></i> [% t('Reverse') %]</a>
77
            <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-ban"></i> Void</a>
78
            <a href="boraccount.pl?action=void&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-ban"></i> [% t('Void') %]</a>
78
          [% ELSE %][% SET footerjs = 1 %]
79
          [% ELSE %][% SET footerjs = 1 %]
79
            &nbsp;
80
             
80
          [% END %]
81
          [% END %]
81
        [% END %]
82
        [% END %]
82
      </td>
83
      </td>
Lines 85-95 Link Here
85
  [% END %]
86
  [% END %]
86
<tfoot>
87
<tfoot>
87
  <tr>
88
  <tr>
88
    <td colspan="4">Total due</td>
89
    <td colspan="4">[% t('Total due') %]</td>
89
    [% IF ( totalcredit ) %]
90
    [% IF ( totalcredit ) %]
90
        <td class="credit" style="text-align: right;">[% total | $Price %]</td>
91
        <td class="credit" style="text-align: right;">[% total | $Price %]</td>
91
    [% ELSE %]
92
    [% ELSE %]
92
       <td class="debit"style="text-align: right;">[% total | $Price %]</td>
93
       <td class="debit" style="text-align: right;">[% total | $Price %]</td>
93
    [% END %]
94
    [% END %]
94
    <td></td>
95
    <td></td>
95
  </tr>
96
  </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt (-13 / +14 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Price %]
3
[% USE Price %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Delete patron [% patron.firstname %] [% patron.surname %]</title>
7
<title>[% t('Koha › Delete patron') %] [% patron.firstname %] [% patron.surname %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
<body id="pat_deletemem" class="pat">
10
<body id="pat_deletemem" class="pat">
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'patron-search.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Delete patron [% patron.firstname %] [% patron.surname %]</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a> [% t('› Delete patron') %] [% patron.firstname %] [% patron.surname %]</div>
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
   
16
   
16
   <div id="bd">
17
   <div id="bd">
Lines 19-57 Link Here
19
    [% INCLUDE 'members-toolbar.inc' %]
20
    [% INCLUDE 'members-toolbar.inc' %]
20
    [% IF ( ItemsOnIssues || charges || guarantees ) %]
21
    [% IF ( ItemsOnIssues || charges || guarantees ) %]
21
        <div class="dialog alert">
22
        <div class="dialog alert">
22
        <h3>Cannot delete patron</h3>
23
        <h3>[% t('Cannot delete patron') %]</h3>
23
            <ul>
24
            <ul>
24
            [% IF ( ItemsOnIssues ) %]
25
            [% IF ( ItemsOnIssues ) %]
25
                <li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
26
                <li>[% t('Patron has') %] [% ItemsOnIssues %] [% t('item(s) checked out.') %]</li>
26
            [% END %]
27
            [% END %]
27
            [% IF ( charges ) %]
28
            [% IF ( charges ) %]
28
                <li>Patron has [% charges | $Price %] in fines.</li>
29
                <li>[% t('Patron has') %] [% charges | $Price %] [% t('in fines.') %]</li>
29
            [% END %]
30
            [% END %]
30
            [% IF ( guarantees ) %]
31
            [% IF ( guarantees ) %]
31
                <li>Patron's record has guaranteed accounts attached.</li>
32
                <li>[% t('Patron\'s record has guaranteed accounts attached.') %]</li>
32
            [% END %]
33
            [% END %]
33
            </ul>
34
            </ul>
34
    </div>
35
    </div>
35
    [% ELSIF op == 'delete_confirm' and patron %]
36
    [% ELSIF op == 'delete_confirm' and patron %]
36
        [%# TODO add "patron does not exist" unless patron %]
37
        [%# TODO add "patron does not exist" unless patron %]
37
        <div class="dialog alert">
38
        <div class="dialog alert">
38
            <h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3>
39
            <h3>[% t('Are you sure you want to delete the patron') %] [% patron.firstname %] [% patron.surname %][% t('? This cannot be undone.') %]</h3>
39
            <form action="/cgi-bin/koha/members/deletemem.pl">
40
            <form action="/cgi-bin/koha/members/deletemem.pl">
40
                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
41
                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
41
                <input type="hidden" name="member" value="[% patron.borrowernumber %]"/>
42
                <input type="hidden" name="member" value="[% patron.borrowernumber %]" />
42
                <input type="hidden" name="op" value="delete_confirmed" />
43
                <input type="hidden" name="op" value="delete_confirmed" />
43
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
44
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
44
            </form>
45
            </form>
45
            <form action="/cgi-bin/koha/members/moremember.pl">
46
            <form action="/cgi-bin/koha/members/moremember.pl">
46
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
47
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
47
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
48
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
48
            </form>
49
            </form>
49
        </div>
50
        </div>
50
    [% END %]
51
    [% END %]
51
    [% IF ( keeplocal ) %]
52
    [% IF ( keeplocal ) %]
52
        <div class="dialog message">
53
        <div class="dialog message">
53
        <h3>Remote record deleted, local record kept</h3>
54
        <h3>[% t('Remote record deleted, local record kept') %]</h3>
54
        <p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
55
        <p>[% t('Patron was marked for deletion from Norwegian national patron database, but the local record was kept.') %]</p>
55
        </div>
56
        </div>
56
    [% END %]
57
    [% END %]
57
</div>
58
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt (-12 / +13 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; [% UNLESS blocking_error  %]Discharge for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %]</title>
8
<title>[% t('Koha › Patrons ›') %] [% UNLESS blocking_error  %][% t('Discharge for') %] [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
<body id="discharge" class="discharge">
11
<body id="discharge" class="discharge">
Lines 12-20 Link Here
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs">
15
<div id="breadcrumbs">
15
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
16
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
17
› <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
17
&rsaquo; [% UNLESS blocking_error  %]Discharge for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %]
18
› [% UNLESS blocking_error  %][% t('Discharge for') %] [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %]
18
</div>
19
</div>
19
20
20
<div id="doc3" class="yui-t1">
21
<div id="doc3" class="yui-t1">
Lines 22-41 Link Here
22
    <div id="yui-main">
23
    <div id="yui-main">
23
    <div class="yui-b">
24
    <div class="yui-b">
24
<div class="yui-g">
25
<div class="yui-g">
25
<h3>Discharge</h3>
26
<h3>[% t('Discharge') %]</h3>
26
[% FOR message IN messages %]
27
[% FOR message IN messages %]
27
    <div class="dialog [% message.type %]">
28
    <div class="dialog [% message.type %]">
28
    [% IF message.code == "unable_to_generate_pdf" %]
29
    [% IF message.code == "unable_to_generate_pdf" %]
29
        An error occurs when generating the pdf file.
30
        [% t('An error occurs when generating the pdf file.') %]
30
        Please contact the administrator to resolve this problem.
31
        [% t('Please contact the administrator to resolve this problem.') %]
31
    [% END %]
32
    [% END %]
32
    </div>
33
    </div>
33
[% END %]
34
[% END %]
34
[% UNLESS can_be_discharged %]
35
[% UNLESS can_be_discharged %]
35
    <p>Cannot edit discharge: the patron has checked out items.</p>
36
    <p>[% t('Cannot edit discharge: the patron has checked out items.') %]</p>
36
[% ELSE %]
37
[% ELSE %]
37
    [% IF patron.holds.count %]
38
    [% IF patron.holds.count %]
38
        <p>Borrower has reserves: they will be canceled if the discharge is generated.</p>
39
        <p>[% t('Borrower has reserves: they will be canceled if the discharge is generated.') %]</p>
39
    [% END %]
40
    [% END %]
40
    <form method="post">
41
    <form method="post">
41
        <input type="submit" value="Generate discharge" name="discharge" />
42
        <input type="submit" value="Generate discharge" name="discharge" />
Lines 44-55 Link Here
44
[% END %]
45
[% END %]
45
46
46
[% IF validated_discharges %]
47
[% IF validated_discharges %]
47
    <h2>Already validated discharges</h2>
48
    <h2>[% t('Already validated discharges') %]</h2>
48
    <table>
49
    <table>
49
        <thead>
50
        <thead>
50
            <tr>
51
            <tr>
51
                <th>Requested</th>
52
                <th>[% t('Requested') %]</th>
52
                <th>Validated</th>
53
                <th>[% t('Validated') %]</th>
53
            </tr>
54
            </tr>
54
        </thead>
55
        </thead>
55
        <tbody>
56
        <tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt (-9 / +10 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Patrons &rsaquo; Pending discharge requests</title>
7
<title>[% t('Koha › Patrons › Pending discharge requests') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
</head>
10
</head>
Lines 11-32 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Pending discharge requests</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a> [% t('› Pending discharge requests') %]</div>
15
16
16
    <div class="main container-fluid">
17
    <div class="main container-fluid">
17
        <div class="row">
18
        <div class="row">
18
            <div class="col-md-8 col-md-offset-2">
19
            <div class="col-md-8 col-md-offset-2">
19
20
20
    [% IF pending_discharges %]
21
    [% IF pending_discharges %]
21
      <h2>Pending discharge requests</h2>
22
      <h2>[% t('Pending discharge requests') %]</h2>
22
      <div id="pending_updates">
23
      <div id="pending_updates">
23
        <table>
24
        <table>
24
          <thead>
25
          <thead>
25
            <tr>
26
            <tr>
26
              <th>Patron</th>
27
              <th>[% t('Patron') %]</th>
27
              <th>Library</th>
28
              <th>[% t('Library') %]</th>
28
              <th class="title-string">Date requested</th>
29
              <th class="title-string">[% t('Date requested') %]</th>
29
              <th>Allow</th>
30
              <th>[% t('Allow') %]</th>
30
            </tr>
31
            </tr>
31
          </thead>
32
          </thead>
32
          <tbody>
33
          <tbody>
Lines 35-41 Link Here
35
                <td><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% d.borrower.borrowernumber %]">[% d.borrower.surname %], [% d.borrower.firstname %]</a></td>
36
                <td><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% d.borrower.borrowernumber %]">[% d.borrower.surname %], [% d.borrower.firstname %]</a></td>
36
                <td>[% d.borrower.branchcode.branchname %]</td>
37
                <td>[% d.borrower.branchcode.branchname %]</td>
37
                <td><span title="[% d.needed %]">[% d.needed | $KohaDates %]</span></td>
38
                <td><span title="[% d.needed %]">[% d.needed | $KohaDates %]</span></td>
38
                <td><a class="btn btn-xs btn-default" href="/cgi-bin/koha/members/discharges.pl?op=allow&borrowernumber=[% d.borrower.borrowernumber %]"><i class="fa fa-check"></i> Allow</a></td>
39
                <td><a class="btn btn-xs btn-default" href="/cgi-bin/koha/members/discharges.pl?op=allow&borrowernumber=[% d.borrower.borrowernumber %]"><i class="fa fa-check"></i> [% t('Allow') %]</a></td>
39
              </tr>
40
              </tr>
40
            [% END %]
41
            [% END %]
41
          </tbody>
42
          </tbody>
Lines 43-49 Link Here
43
      </div>
44
      </div>
44
    [% ELSE %]
45
    [% ELSE %]
45
      <div class="dialog message">
46
      <div class="dialog message">
46
        <p>There are no pending discharge requests.</p>
47
        <p>[% t('There are no pending discharge requests.') %]</p>
47
      </div>
48
      </div>
48
    [% END %]
49
    [% END %]
49
50
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt (-16 / +17 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE AuthorisedValues %]
5
[% USE AuthorisedValues %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Files for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
<title>[% t('Files for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Files for [% INCLUDE 'patron-title.inc' %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Files for') %] [% INCLUDE 'patron-title.inc' %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
    <div id="bd">
19
    <div id="bd">
Lines 20-31 Link Here
20
            <div class="yui-b">
21
            <div class="yui-b">
21
                [% INCLUDE 'members-toolbar.inc' %]
22
                [% INCLUDE 'members-toolbar.inc' %]
22
23
23
                <h1>Files</h1>
24
                <h1>[% t('Files') %]</h1>
24
25
25
                [% IF errors %]
26
                [% IF errors %]
26
                    <div class="dialog alert">
27
                    <div class="dialog alert">
27
                        [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
28
                        [% IF errors.empty_upload %][% t('The file you are attempting to upload has no contents.') %][% END %]
28
                        [% IF errors.no_file %]You did not select a file to upload.[% END %]
29
                        [% IF errors.no_file %][% t('You did not select a file to upload.') %][% END %]
29
                    </div>
30
                    </div>
30
                [% END %]
31
                [% END %]
31
32
Lines 33-76 Link Here
33
                <table>
34
                <table>
34
                    <thead>
35
                    <thead>
35
                        <tr>
36
                        <tr>
36
                            <th>Name</th>
37
                            <th>[% t('Name') %]</th>
37
                            <th>Type</th>
38
                            <th>[% t('Type') %]</th>
38
                            <th>Description</th>
39
                            <th>[% t('Description') %]</th>
39
                            <th>Uploaded</th>
40
                            <th>[% t('Uploaded') %]</th>
40
                            [% IF CAN_user_borrowers_edit_borrowers %]<th>&nbsp;</th>[% END %]
41
                            [% IF CAN_user_borrowers_edit_borrowers %]<th> </th>[% END %]
41
                        </tr>
42
                        </tr>
42
                    </thead>
43
                    </thead>
43
44
44
                    <tbody>
45
                    <tbody>
45
                        [% FOREACH f IN files %]
46
                        [% FOREACH f IN files %]
46
                            <tr>
47
                            <tr>
47
                                 <td><a href="?borrowernumber=[% patron.borrowernumber %]&amp;op=download&amp;file_id=[% f.file_id %]">[% f.file_name %]</a></td>
48
                                 <td><a href="?borrowernumber=[% patron.borrowernumber %]&op=download&file_id=[% f.file_id %]">[% f.file_name %]</a></td>
48
                                 <td>[% f.file_type %]</td>
49
                                 <td>[% f.file_type %]</td>
49
                                 <td>[% f.file_description %]</td>
50
                                 <td>[% f.file_description %]</td>
50
                                 <td>[% f.date_uploaded | $KohaDates %]</td>
51
                                 <td>[% f.date_uploaded | $KohaDates %]</td>
51
                                 [% IF CAN_user_borrowers_edit_borrowers %]<td><a class="btn btn-default btn-xs confirmdelete" href="?borrowernumber=[% patron.borrowernumber %]&amp;op=delete&amp;file_id=[% f.file_id %]"><i class="fa fa-trash"></i> Delete</a></td>[% END %]
52
                                 [% IF CAN_user_borrowers_edit_borrowers %]<td><a class="btn btn-default btn-xs confirmdelete" href="?borrowernumber=[% patron.borrowernumber %]&op=delete&file_id=[% f.file_id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>[% END %]
52
                            </tr>
53
                            </tr>
53
                        [% END %]
54
                        [% END %]
54
                    </tbody>
55
                    </tbody>
55
                </table>
56
                </table>
56
                [% ELSE %]
57
                [% ELSE %]
57
                <div class="dialog message">
58
                <div class="dialog message">
58
                    <p>This patron has no files attached.</p>
59
                    <p>[% t('This patron has no files attached.') %]</p>
59
                </div>
60
                </div>
60
                [% END %]
61
                [% END %]
61
62
62
                <form method="post" action="/cgi-bin/koha/members/files.pl" enctype="multipart/form-data">
63
                <form method="post" action="/cgi-bin/koha/members/files.pl" enctype="multipart/form-data">
63
                    <fieldset class="rows">
64
                    <fieldset class="rows">
64
                        <legend>Upload new file</legend>
65
                        <legend>[% t('Upload new file') %]</legend>
65
                        <ol>
66
                        <ol>
66
                        <li><input type="hidden" name="op" value="upload" />
67
                        <li><input type="hidden" name="op" value="upload" />
67
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
68
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
68
                        <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
69
                        <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
69
70
70
                        <label for="description">Description:</label>
71
                        <label for="description">[% t('Description:') %]</label>
71
                        <input name="description" id="description" type="text" /></li>
72
                        <input name="description" id="description" type="text" /></li>
72
73
73
                        <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
74
                        <li><label for="uploadfile">[% t('File:') %]</label><input name="uploadfile" type="file" id="uploadfile" /></li>
74
75
75
                        </ol>
76
                        </ol>
76
                        <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload file" /></fieldset>
77
                        <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload file" /></fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-24 / +25 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Koha %]
4
[% USE Koha %]
Lines 6-12 Link Here
6
[% USE ColumnsSettings %]
7
[% USE ColumnsSettings %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10
<title>[% t('Holds history for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
12
</head>
13
</head>
Lines 15-50 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'patron-search.inc' %]
17
[% INCLUDE 'patron-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Holds history for [% INCLUDE 'patron-title.inc' %]</div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Holds history for') %] [% INCLUDE 'patron-title.inc' %]</div>
19
20
20
<div id="doc3" class="yui-t2">
21
<div id="doc3" class="yui-t2">
21
    <div id="bd">
22
    <div id="bd">
22
    <div id="yui-main">
23
    <div id="yui-main">
23
    <div class="yui-b">
24
    <div class="yui-b">
24
[% INCLUDE 'members-toolbar.inc' %]
25
[% INCLUDE 'members-toolbar.inc' %]
25
<h1>Holds history</h1>
26
<h1>[% t('Holds history') %]</h1>
26
27
27
[% UNLESS Koha.Preference('intranetreadinghistory') %]
28
[% UNLESS Koha.Preference('intranetreadinghistory') %]
28
    <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
29
    <div class="dialog alert">[% t('Staff members are not allowed to access patron\'s holds history') %]</div>
29
[% ELSIF is_anonymous %]
30
[% ELSIF is_anonymous %]
30
    <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
31
    <div class="dialog alert">[% t('This is the anonymous patron, so no holds history is displayed.') %]</div>
31
[% ELSIF ( !holds ) %]
32
[% ELSIF ( !holds ) %]
32
    <div class="dialog message">This patron has no holds history.</div>
33
    <div class="dialog message">[% t('This patron has no holds history.') %]</div>
33
[% ELSE %]
34
[% ELSE %]
34
35
35
<div id="holdshistory" style="overflow:hidden">
36
<div id="holdshistory" style="overflow:hidden">
36
  <table id="table_holdshistory">
37
  <table id="table_holdshistory">
37
      <thead>
38
      <thead>
38
        <th class="anti-the">Title</th>
39
        <th class="anti-the">[% t('Title') %]</th>
39
        <th>Author</th>
40
        <th>[% t('Author') %]</th>
40
        <th>Barcode</th>
41
        <th>[% t('Barcode') %]</th>
41
        <th>Library</th>
42
        <th>[% t('Library') %]</th>
42
        <th class="title-string">Hold date</th>
43
        <th class="title-string">[% t('Hold date') %]</th>
43
        <th class="title-string">Expiration date</th>
44
        <th class="title-string">[% t('Expiration date') %]</th>
44
        <th class="title-string">Waiting date</th>
45
        <th class="title-string">[% t('Waiting date') %]</th>
45
        <th class="title-string">Cancellation date</th>
46
        <th class="title-string">[% t('Cancellation date') %]</th>
46
        <th>Item type</th>
47
        <th>[% t('Item type') %]</th>
47
        <th>Status</th>
48
        <th>[% t('Status') %]</th>
48
      </thead>
49
      </thead>
49
      <tbody>
50
      <tbody>
50
      [% FOREACH hold IN holds %]
51
      [% FOREACH hold IN holds %]
Lines 57-91 Link Here
57
              [% IF hold.expirationdate %]
58
              [% IF hold.expirationdate %]
58
                  <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
59
                  <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
59
              [% ELSE %]
60
              [% ELSE %]
60
                  <span title="0000-00-00"></span>
61
                  <span title="[% t('0000-00-00') %]"></span>
61
              [% END %]
62
              [% END %]
62
          </td>
63
          </td>
63
          <td>
64
          <td>
64
              [% IF hold.waitingdate %]
65
              [% IF hold.waitingdate %]
65
                  <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
66
                  <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
66
              [% ELSE %]
67
              [% ELSE %]
67
                  <span title="0000-00-00"></span>
68
                  <span title="[% t('0000-00-00') %]"></span>
68
              [% END %]
69
              [% END %]
69
          </td>
70
          </td>
70
          <td>
71
          <td>
71
              [% IF hold.cancellationdate %]
72
              [% IF hold.cancellationdate %]
72
                  <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
73
                  <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
73
              [% ELSE %]
74
              [% ELSE %]
74
                  <span title="0000-00-00"></span>
75
                  <span title="[% t('0000-00-00') %]"></span>
75
              [% END %]
76
              [% END %]
76
          </td>
77
          </td>
77
          <td>[% hold.itemtype %]</td>
78
          <td>[% hold.itemtype %]</td>
78
          <td>
79
          <td>
79
          [% IF hold.found == 'F' %]
80
          [% IF hold.found == 'F' %]
80
              Fulfilled
81
              [% t('Fulfilled') %]
81
          [% ELSIF hold.cancellationdate %]
82
          [% ELSIF hold.cancellationdate %]
82
              Cancelled
83
              [% t('Cancelled') %]
83
          [% ELSIF hold.found == 'W' %]
84
          [% ELSIF hold.found == 'W' %]
84
              Waiting
85
              [% t('Waiting') %]
85
          [% ELSIF hold.found == 'T' %]
86
          [% ELSIF hold.found == 'T' %]
86
              In transit
87
              [% t('In transit') %]
87
          [% ELSE %]
88
          [% ELSE %]
88
              Pending
89
              [% t('Pending') %]
89
          [% END %]
90
          [% END %]
90
          </td>
91
          </td>
91
        </tr>
92
        </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-123 / +110 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
Lines 5-11 Link Here
5
[% USE Branches %]
6
[% USE Branches %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Housebound &rsaquo; Details for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
<title>[% t('Koha › Housebound › Details for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
11
12
Lines 14-22 Link Here
14
[% INCLUDE 'patron-search.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
15
16
16
<div id="breadcrumbs">
17
<div id="breadcrumbs">
17
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
18
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
19
› <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
19
&rsaquo; Details for [% INCLUDE 'patron-title.inc' %]
20
[% t('› Details for') %] [% INCLUDE 'patron-title.inc' %]
20
</div>
21
</div>
21
22
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
Lines 29-64 Link Here
29
        <div class="yui-g">
30
        <div class="yui-g">
30
31
31
          <!-- Title -->
32
          <!-- Title -->
32
          <h3>Housebound details for [% INCLUDE 'patron-title.inc' %]</h3>
33
          <h3>[% t('Housebound details for') %] [% INCLUDE 'patron-title.inc' %]</h3>
33
          <div class="first">
34
          <div class="first">
34
35
35
            [% FOR m IN messages %]
36
            [% FOR m IN messages %]
36
                <div class="dialog [% m.type %]">
37
                <div class="dialog [% m.type %]">
37
                    [% SWITCH m.code %]
38
                    [% SWITCH m.code %]
38
                    [% CASE 'error_on_profile_store' %]
39
                    [% CASE 'error_on_profile_store' %]
39
                        An error occurred whilst updating this housebound profile.
40
                        [% t('An error occurred whilst updating this housebound profile.') %]
40
                    [% CASE 'error_on_profile_create' %]
41
                    [% CASE 'error_on_profile_create' %]
41
                        An error occurred whilst creating this housebound profile.
42
                        [% t('An error occurred whilst creating this housebound profile.') %]
42
                    [% CASE 'error_on_visit_load' %]
43
                    [% CASE 'error_on_visit_load' %]
43
                        An error occurred whilst loading the housebound visit.
44
                        [% t('An error occurred whilst loading the housebound visit.') %]
44
                    [% CASE 'error_on_visit_delete' %]
45
                    [% CASE 'error_on_visit_delete' %]
45
                        An error occurred whilst deleting a housebound visit.
46
                        [% t('An error occurred whilst deleting a housebound visit.') %]
46
                    [% CASE 'error_on_visit_store' %]
47
                    [% CASE 'error_on_visit_store' %]
47
                        An error occurred whilst updating a housebound visit.
48
                        [% t('An error occurred whilst updating a housebound visit.') %]
48
                    [% CASE 'error_on_visit_create' %]
49
                    [% CASE 'error_on_visit_create' %]
49
                        An error occurred whilst creating a new housebound visit.
50
                        [% t('An error occurred whilst creating a new housebound visit.') %]
50
                    [% CASE %]
51
                    [% CASE %]
51
                        [% m.code %]
52
                        [% m.code %]
52
                    [% END %]
53
                    [% END %]
53
                    Please try again later.
54
                    [% t('Please try again later.') %]
54
                </div>
55
                </div>
55
            [% END %]
56
            [% END %]
56
57
57
            <!-- Create or edit housebound_profile -->
58
            <!-- Create or edit housebound_profile -->
58
            [% IF ( method == 'update_or_create' ) %]
59
            [% IF ( method == 'update_or_create' ) %]
59
              <h4>Manage housebound profile</h4>
60
              <h4>[% t('Manage housebound profile') %]</h4>
60
              <form id="editform" method="post" name="editform"
61
              <form id="editform" method="post" name="editform" action="/cgi-bin/koha/members/housebound.pl">
61
                    action="/cgi-bin/koha/members/housebound.pl">
62
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
62
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
63
                [% IF ( housebound_profile ) %]
63
                [% IF ( housebound_profile ) %]
64
                  <input type="hidden" name="method" value="updateconfirm" />
64
                  <input type="hidden" name="method" value="updateconfirm" />
Lines 66-135 Link Here
66
                  <input type="hidden" name="method" value="createconfirm" />
66
                  <input type="hidden" name="method" value="createconfirm" />
67
                [% END %]
67
                [% END %]
68
                <fieldset id="houseboundentry" class="rows">
68
                <fieldset id="houseboundentry" class="rows">
69
                  <legend>Housebound details</legend>
69
                  <legend>[% t('Housebound details') %]</legend>
70
                  <ol>
70
                  <ol>
71
                    <li>
71
                    <li>
72
                      <label for="day" class="required">Delivery day:</label>
72
                      <label for="day" class="required">[% t('Delivery day:') %]</label>
73
                      <select id="day" name="day" class="required" required="required">
73
                      <select id="day" name="day" class="required" required="required">
74
                        <option value="">Select a day</option>
74
                        <option value="">[% t('Select a day') %]</option>
75
                        [% IF ( housebound_profile ) %]
75
                        [% IF ( housebound_profile ) %]
76
                          [% IF ( housebound_profile.day == 'any' ) %]
76
                          [% IF ( housebound_profile.day == 'any' ) %]
77
                            <option value="any" selected='selected'>Any</option>
77
                            <option value="any" selected="selected">[% t('Any') %]</option>
78
                          [% ELSE %]
78
                          [% ELSE %]
79
                            <option value="any">Any</option>
79
                            <option value="any">[% t('Any') %]</option>
80
                          [% END %]
80
                          [% END %]
81
                          [% IF ( housebound_profile.day == 'monday' ) %]
81
                          [% IF ( housebound_profile.day == 'monday' ) %]
82
                            <option value="monday" selected='selected'>Monday</option>
82
                            <option value="monday" selected="selected">[% t('Monday') %]</option>
83
                          [% ELSE %]
83
                          [% ELSE %]
84
                            <option value="monday">Monday</option>
84
                            <option value="monday">[% t('Monday') %]</option>
85
                          [% END %]
85
                          [% END %]
86
                          [% IF ( housebound_profile.day == 'tuesday' ) %]
86
                          [% IF ( housebound_profile.day == 'tuesday' ) %]
87
                            <option value="tuesday" selected='selected'>Tuesday</option>
87
                            <option value="tuesday" selected="selected">[% t('Tuesday') %]</option>
88
                          [% ELSE %]
88
                          [% ELSE %]
89
                            <option value="tuesday">Tuesday</option>
89
                            <option value="tuesday">[% t('Tuesday') %]</option>
90
                          [% END %]
90
                          [% END %]
91
                          [% IF ( housebound_profile.day == 'wednesday' ) %]
91
                          [% IF ( housebound_profile.day == 'wednesday' ) %]
92
                            <option value="wednesday" selected='selected'>Wednesday</option>
92
                            <option value="wednesday" selected="selected">[% t('Wednesday') %]</option>
93
                          [% ELSE %]
93
                          [% ELSE %]
94
                            <option value="wednesday">Wednesday</option>
94
                            <option value="wednesday">[% t('Wednesday') %]</option>
95
                          [% END %]
95
                          [% END %]
96
                          [% IF ( housebound_profile.day == 'thursday' ) %]
96
                          [% IF ( housebound_profile.day == 'thursday' ) %]
97
                            <option value="thursday" selected='selected'>Thursday</option>
97
                            <option value="thursday" selected="selected">[% t('Thursday') %]</option>
98
                          [% ELSE %]
98
                          [% ELSE %]
99
                            <option value="thursday">Thursday</option>
99
                            <option value="thursday">[% t('Thursday') %]</option>
100
                          [% END %]
100
                          [% END %]
101
                          [% IF ( housebound_profile.day == 'friday' ) %]
101
                          [% IF ( housebound_profile.day == 'friday' ) %]
102
                            <option value="friday" selected='selected'>Friday</option>
102
                            <option value="friday" selected="selected">[% t('Friday') %]</option>
103
                          [% ELSE %]
103
                          [% ELSE %]
104
                            <option value="friday">Friday</option>
104
                            <option value="friday">[% t('Friday') %]</option>
105
                          [% END %]
105
                          [% END %]
106
                          [% IF ( housebound_profile.day == 'saturday' ) %]
106
                          [% IF ( housebound_profile.day == 'saturday' ) %]
107
                            <option value="saturday" selected='selected'>Saturday</option>
107
                            <option value="saturday" selected="selected">[% t('Saturday') %]</option>
108
                          [% ELSE %]
108
                          [% ELSE %]
109
                            <option value="saturday">Saturday</option>
109
                            <option value="saturday">[% t('Saturday') %]</option>
110
                          [% END %]
110
                          [% END %]
111
                          [% IF ( housebound_profile.day == 'sunday' ) %]
111
                          [% IF ( housebound_profile.day == 'sunday' ) %]
112
                            <option value="sunday" selected='selected'>Sunday</option>
112
                            <option value="sunday" selected="selected">[% t('Sunday') %]</option>
113
                          [% ELSE %]
113
                          [% ELSE %]
114
                            <option value="sunday">Sunday</option>
114
                            <option value="sunday">[% t('Sunday') %]</option>
115
                          [% END %]
115
                          [% END %]
116
                        [% ELSE %]
116
                        [% ELSE %]
117
                          <option value="any">Any</option>
117
                          <option value="any">[% t('Any') %]</option>
118
                          <option value="monday">Monday</option>
118
                          <option value="monday">[% t('Monday') %]</option>
119
                          <option value="tuesday">Tuesday</option>
119
                          <option value="tuesday">[% t('Tuesday') %]</option>
120
                          <option value="wednesday">Wednesday</option>
120
                          <option value="wednesday">[% t('Wednesday') %]</option>
121
                          <option value="thursday">Thursday</option>
121
                          <option value="thursday">[% t('Thursday') %]</option>
122
                          <option value="friday">Friday</option>
122
                          <option value="friday">[% t('Friday') %]</option>
123
                          <option value="saturday">Saturday</option>
123
                          <option value="saturday">[% t('Saturday') %]</option>
124
                          <option value="sunday">Sunday</option>
124
                          <option value="sunday">[% t('Sunday') %]</option>
125
                        [% END %]
125
                        [% END %]
126
                      </select>
126
                      </select>
127
                      <span class="required">Required</span>
127
                      <span class="required">[% t('Required') %]</span>
128
                    </li>
128
                    </li>
129
                    <li>
129
                    <li>
130
                      <label for="frequency" class="required">Frequency:</label>
130
                      <label for="frequency" class="required">[% t('Frequency:') %]</label>
131
                      <select id="frequency" name="frequency" class="required" required="required">
131
                      <select id="frequency" name="frequency" class="required" required="required">
132
                        <option value="">Select a frequency</option>
132
                        <option value="">[% t('Select a frequency') %]</option>
133
                        [% FOREACH frequency IN AuthorisedValues.GetAuthValueDropbox('HSBND_FREQ') %]
133
                        [% FOREACH frequency IN AuthorisedValues.GetAuthValueDropbox('HSBND_FREQ') %]
134
                          [% IF housebound_profile.frequency == frequency.authorised_value %]
134
                          [% IF housebound_profile.frequency == frequency.authorised_value %]
135
                            <option value="[% frequency.authorised_value %]" selected="selected">[% frequency.lib %]</option>
135
                            <option value="[% frequency.authorised_value %]" selected="selected">[% frequency.lib %]</option>
Lines 138-186 Link Here
138
                          [% END %]
138
                          [% END %]
139
                        [% END %]
139
                        [% END %]
140
                      </select>
140
                      </select>
141
                      <span class="required">Required</span>
141
                      <span class="required">[% t('Required') %]</span>
142
                    </li>
142
                    </li>
143
                    <li>
143
                    <li>
144
                      <label for="fav_itemtypes">Preferred materials:</label>
144
                      <label for="fav_itemtypes">[% t('Preferred materials:') %]</label>
145
                      [% IF ( housebound_profile ) %]
145
                      [% IF ( housebound_profile ) %]
146
                        <input id="fav_itemtypes" type="text" size="50" name="fav_itemtypes"
146
                        <input id="fav_itemtypes" type="text" size="50" name="fav_itemtypes" value="[% housebound_profile.fav_itemtypes %]">
147
                               value="[% housebound_profile.fav_itemtypes %]">
148
                      [% ELSE %]
147
                      [% ELSE %]
149
                        <input id="fav_itemtypes" type="text" value="" size="50" name="fav_itemtypes">
148
                        <input id="fav_itemtypes" type="text" value="" size="50" name="fav_itemtypes">
150
                      [% END %]
149
                      [% END %]
151
                    </li>
150
                    </li>
152
                    <li>
151
                    <li>
153
                      <label for="fav_subjects">Subjects:</label>
152
                      <label for="fav_subjects">[% t('Subjects:') %]</label>
154
                      [% IF ( housebound_profile ) %]
153
                      [% IF ( housebound_profile ) %]
155
                        <input id="fav_subjects" type="text" size="50" name="fav_subjects"
154
                        <input id="fav_subjects" type="text" size="50" name="fav_subjects" value="[% housebound_profile.fav_subjects %]">
156
                               value="[% housebound_profile.fav_subjects %]">
157
                      [% ELSE %]
155
                      [% ELSE %]
158
                        <input id="fav_subjects" type="text" value="" size="50" name="fav_subjects">
156
                        <input id="fav_subjects" type="text" value="" size="50" name="fav_subjects">
159
                      [% END %]
157
                      [% END %]
160
                    </li>
158
                    </li>
161
                    <li>
159
                    <li>
162
                      <label for="fav_authors">Authors:</label>
160
                      <label for="fav_authors">[% t('Authors:') %]</label>
163
                      [% IF ( housebound_profile ) %]
161
                      [% IF ( housebound_profile ) %]
164
                        <input id="fav_authors" type="text" size="50" name="fav_authors"
162
                        <input id="fav_authors" type="text" size="50" name="fav_authors" value="[% housebound_profile.fav_authors %]">
165
                               value="[% housebound_profile.fav_authors %]">
166
                      [% ELSE %]
163
                      [% ELSE %]
167
                        <input id="fav_authors" type="text" value="" size="50" name="fav_authors">
164
                        <input id="fav_authors" type="text" value="" size="50" name="fav_authors">
168
                      [% END %]
165
                      [% END %]
169
                    </li>
166
                    </li>
170
                    <li>
167
                    <li>
171
                      <label for="referral">Referral:</label>
168
                      <label for="referral">[% t('Referral:') %]</label>
172
                      [% IF ( housebound_profile ) %]
169
                      [% IF ( housebound_profile ) %]
173
                        <input id="referral" type="text" size="50" name="referral"
170
                        <input id="referral" type="text" size="50" name="referral" value="[% housebound_profile.referral %]">
174
                               value="[% housebound_profile.referral %]">
175
                      [% ELSE %]
171
                      [% ELSE %]
176
                        <input id="referral" type="text" value="" size="50" name="referral">
172
                        <input id="referral" type="text" value="" size="50" name="referral">
177
                      [% END %]
173
                      [% END %]
178
                    </li>
174
                    </li>
179
                    <li>
175
                    <li>
180
                      <label for="notes">Notes:</label>
176
                      <label for="notes">[% t('Notes:') %]</label>
181
                      [% IF ( housebound_profile ) %]
177
                      [% IF ( housebound_profile ) %]
182
                        <input id="notes" type="text" size="50" name="notes"
178
                        <input id="notes" type="text" size="50" name="notes" value="[% housebound_profile.notes %]">
183
                               value="[% housebound_profile.notes %]">
184
                      [% ELSE %]
179
                      [% ELSE %]
185
                        <input id="notes" type="text" value="" size="50" name="notes">
180
                        <input id="notes" type="text" value="" size="50" name="notes">
186
                      [% END %]
181
                      [% END %]
Lines 188-206 Link Here
188
                  </ol>
183
                  </ol>
189
                </fieldset>
184
                </fieldset>
190
                <fieldset class="action">
185
                <fieldset class="action">
191
                  <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save changes</button>
186
                  <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> [% t('Save changes') %]</button>
192
                  <a class="cancel btn btn-link btn-sm"
187
                  <a class="cancel btn btn-link btn-sm" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">
193
                     href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">
188
                    [% t('Cancel') %]
194
                    Cancel
195
                  </a>
189
                  </a>
196
                </fieldset>
190
                </fieldset>
197
              </form>
191
              </form>
198
192
199
            <!-- Create or edit housebound_visit -->
193
            <!-- Create or edit housebound_visit -->
200
            [% ELSIF ( method == 'visit_update_or_create' ) %]
194
            [% ELSIF ( method == 'visit_update_or_create' ) %]
201
              <h4>Manage housebound deliveries</h4>
195
              <h4>[% t('Manage housebound deliveries') %]</h4>
202
              <form name="form" id="instance_form" method="post"
196
              <form name="form" id="instance_form" method="post" action="/cgi-bin/koha/members/housebound.pl">
203
                    action="/cgi-bin/koha/members/housebound.pl">
204
                [% IF ( visit ) %]
197
                [% IF ( visit ) %]
205
                  <input type="hidden" name="method" value="editvisitconfirm" />
198
                  <input type="hidden" name="method" value="editvisitconfirm" />
206
                  <input type="hidden" name="visit_id" value="[% visit.id %]" />
199
                  <input type="hidden" name="visit_id" value="[% visit.id %]" />
Lines 209-268 Link Here
209
                [% END %]
202
                [% END %]
210
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
203
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
211
                <fieldset class="rows" id="instance">
204
                <fieldset class="rows" id="instance">
212
                  <legend>Delivery details</legend>
205
                  <legend>[% t('Delivery details') %]</legend>
213
                  <ol>
206
                  <ol>
214
                    <li>
207
                    <li>
215
                      <label for="date" class="required">Date: </label>
208
                      <label for="date" class="required">[% t('Date:') %] </label>
216
                      [% IF ( visit ) %]
209
                      [% IF ( visit ) %]
217
                        <input type="text" id="date" class="datepicker required"
210
                        <input type="text" id="date" class="datepicker required" value="[% visit.appointment_date | $KohaDates %]" name="date" size="20" required="required" />
218
                               value="[% visit.appointment_date | $KohaDates %]"
219
                               name="date" size="20" required="required"/>
220
                      [% ELSE %]
211
                      [% ELSE %]
221
                        <input type="text" id="date" class="datepicker required"
212
                        <input type="text" id="date" class="datepicker required" value="" name="date" size="20" required="required" />
222
                               value="" name="date" size="20" required="required"/>
223
                      [% END %]
213
                      [% END %]
224
                      <span class="required">Required</span>
214
                      <span class="required">[% t('Required') %]</span>
225
                      <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
215
                      <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
226
                    </li>
216
                    </li>
227
                    <li>
217
                    <li>
228
                      <label for="segment" class="required">Time:</label>
218
                      <label for="segment" class="required">[% t('Time:') %]</label>
229
                      <select id="segment" name="segment" required="required"
219
                      <select id="segment" name="segment" required="required" class="required">
230
                              class="required">
220
                        <option value="">[% t('Select a time') %]</option>
231
                        <option value="">Select a time</option>
232
                        [% IF ( visit ) %]
221
                        [% IF ( visit ) %]
233
                          [% IF ( visit.day_segment == 'morning' ) %]
222
                          [% IF ( visit.day_segment == 'morning' ) %]
234
                            <option value="morning" selected="selected">
223
                            <option value="morning" selected="selected">
235
                              Morning
224
                              [% t('Morning') %]
236
                            </option>
225
                            </option>
237
                          [% ELSE %]
226
                          [% ELSE %]
238
                            <option value="morning">Morning</option>
227
                            <option value="morning">[% t('Morning') %]</option>
239
                          [% END %]
228
                          [% END %]
240
                          [% IF ( visit.day_segment == 'afternoon' ) %]
229
                          [% IF ( visit.day_segment == 'afternoon' ) %]
241
                            <option value="afternoon" selected="selected">
230
                            <option value="afternoon" selected="selected">
242
                              Afternoon
231
                              [% t('Afternoon') %]
243
                            </option>
232
                            </option>
244
                          [% ELSE %]
233
                          [% ELSE %]
245
                            <option value="afternoon">Afternoon</option>
234
                            <option value="afternoon">[% t('Afternoon') %]</option>
246
                          [% END %]
235
                          [% END %]
247
                          [% IF ( visit.day_segment == 'evening' ) %]
236
                          [% IF ( visit.day_segment == 'evening' ) %]
248
                            <option value="evening" selected="selected">
237
                            <option value="evening" selected="selected">
249
                              Evening
238
                              [% t('Evening') %]
250
                            </option>
239
                            </option>
251
                          [% ELSE %]
240
                          [% ELSE %]
252
                            <option value="evening">Evening</option>
241
                            <option value="evening">[% t('Evening') %]</option>
253
                          [% END %]
242
                          [% END %]
254
                        [% ELSE %]
243
                        [% ELSE %]
255
                          <option value="morning">Morning</option>
244
                          <option value="morning">[% t('Morning') %]</option>
256
                          <option value="afternoon">Afternoon</option>
245
                          <option value="afternoon">[% t('Afternoon') %]</option>
257
                          <option value="evening">Evening</option>
246
                          <option value="evening">[% t('Evening') %]</option>
258
                        [% END %]
247
                        [% END %]
259
                      </select>
248
                      </select>
260
                      <span class="required">Required</span>
249
                      <span class="required">[% t('Required') %]</span>
261
                    </li>
250
                    </li>
262
                    <li>
251
                    <li>
263
                      <label for="chooser" class="required"> Chooser:</label>
252
                      <label for="chooser" class="required"> [% t('Chooser:') %]</label>
264
                      <select id="chooser" name="chooser" class="required" required="required">
253
                      <select id="chooser" name="chooser" class="required" required="required">
265
                        <option value="">Select a chooser</option>
254
                        <option value="">[% t('Select a chooser') %]</option>
266
                        [% IF ( visit ) %]
255
                        [% IF ( visit ) %]
267
                          [% FOREACH chooser IN choosers %]
256
                          [% FOREACH chooser IN choosers %]
268
                            [% IF ( visit.chooser_brwnumber == chooser.borrowernumber ) %]
257
                            [% IF ( visit.chooser_brwnumber == chooser.borrowernumber ) %]
Lines 283-294 Link Here
283
                          [% END %]
272
                          [% END %]
284
                        [% END %]
273
                        [% END %]
285
                      </select>
274
                      </select>
286
                      <span class="required">Required</span>
275
                      <span class="required">[% t('Required') %]</span>
287
                    </li>
276
                    </li>
288
                    <li>
277
                    <li>
289
                      <label for="deliverer" class="required">Deliverer:</label>
278
                      <label for="deliverer" class="required">[% t('Deliverer:') %]</label>
290
                      <select id="deliverer" name="deliverer" class="required" required="required">
279
                      <select id="deliverer" name="deliverer" class="required" required="required">
291
                        <option value="">Select a deliverer</option>
280
                        <option value="">[% t('Select a deliverer') %]</option>
292
                        [% IF ( visit ) %]
281
                        [% IF ( visit ) %]
293
                          [% FOREACH deliverer IN deliverers %]
282
                          [% FOREACH deliverer IN deliverers %]
294
                            [% IF ( visit.deliverer_brwnumber == deliverer.borrowernumber ) %]
283
                            [% IF ( visit.deliverer_brwnumber == deliverer.borrowernumber ) %]
Lines 309-323 Link Here
309
                          [% END %]
298
                          [% END %]
310
                        [% END %]
299
                        [% END %]
311
                      </select>
300
                      </select>
312
                      <span class="required">Required</span>
301
                      <span class="required">[% t('Required') %]</span>
313
                    </li>
302
                    </li>
314
                  </ol>
303
                  </ol>
315
                </fieldset>
304
                </fieldset>
316
                <fieldset class="action">
305
                <fieldset class="action">
317
                  <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save</button>
306
                  <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> [% t('Save') %]</button>
318
                  <a class="cancel"
307
                  <a class="cancel" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">
319
                     href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">
308
                    [% t('Cancel') %]
320
                    Cancel
321
                  </a>
309
                  </a>
322
                </fieldset>
310
                </fieldset>
323
              </form>
311
              </form>
Lines 327-388 Link Here
327
              <div class="rows">
315
              <div class="rows">
328
                <ol>
316
                <ol>
329
                  <li>
317
                  <li>
330
                    <span class="label" class="required"> Delivery day:</span>
318
                    <span class="label" class="required"> [% t('Delivery day:') %]</span>
331
                    [% hpd = housebound_profile.day %]
319
                    [% hpd = housebound_profile.day %]
332
                    [% IF hpd == 'any' %]
320
                    [% IF hpd == 'any' %]
333
                      Any
321
                      [% t('Any') %]
334
                    [% ELSIF hpd == 'monday' %]
322
                    [% ELSIF hpd == 'monday' %]
335
                      Monday
323
                      [% t('Monday') %]
336
                    [% ELSIF hpd == 'tuesday' %]
324
                    [% ELSIF hpd == 'tuesday' %]
337
                      Tuesday
325
                      [% t('Tuesday') %]
338
                    [% ELSIF hpd == 'wednesday' %]
326
                    [% ELSIF hpd == 'wednesday' %]
339
                      Wednesday
327
                      [% t('Wednesday') %]
340
                    [% ELSIF hpd == 'thursday' %]
328
                    [% ELSIF hpd == 'thursday' %]
341
                      Thursday
329
                      [% t('Thursday') %]
342
                    [% ELSIF hpd == 'friday' %]
330
                    [% ELSIF hpd == 'friday' %]
343
                      Friday
331
                      [% t('Friday') %]
344
                    [% ELSIF hpd == 'saturday' %]
332
                    [% ELSIF hpd == 'saturday' %]
345
                      Saturday
333
                      [% t('Saturday') %]
346
                    [% ELSIF hpd == 'sunday' %]
334
                    [% ELSIF hpd == 'sunday' %]
347
                      Sunday
335
                      [% t('Sunday') %]
348
                    [% END %]
336
                    [% END %]
349
                  </li>
337
                  </li>
350
                  <li>
338
                  <li>
351
                    <span class="label" class="required">Frequency:</span>
339
                    <span class="label" class="required">[% t('Frequency:') %]</span>
352
                    [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency %]
340
                    [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency %]
353
                  </li>
341
                  </li>
354
                  <li>
342
                  <li>
355
                    <span class="label">Material:</span>
343
                    <span class="label">[% t('Material:') %]</span>
356
                    [% housebound_profile.fav_itemtypes %]
344
                    [% housebound_profile.fav_itemtypes %]
357
                  </li>
345
                  </li>
358
                  <li>
346
                  <li>
359
                    <span class="label">Subjects:</span>
347
                    <span class="label">[% t('Subjects:') %]</span>
360
                    [% housebound_profile.fav_subjects %]
348
                    [% housebound_profile.fav_subjects %]
361
                  </li>
349
                  </li>
362
                  <li>
350
                  <li>
363
                    <span class="label">Authors:</span>
351
                    <span class="label">[% t('Authors:') %]</span>
364
                    [% housebound_profile.fav_authors %]
352
                    [% housebound_profile.fav_authors %]
365
                  </li>
353
                  </li>
366
                  <li>
354
                  <li>
367
                    <span class="label">Referral:</span>
355
                    <span class="label">[% t('Referral:') %]</span>
368
                    [% housebound_profile.referral %]
356
                    [% housebound_profile.referral %]
369
                  </li>
357
                  </li>
370
                  <li>
358
                  <li>
371
                    <span class="label">Notes:</span>
359
                    <span class="label">[% t('Notes:') %]</span>
372
                    [% housebound_profile.notes %]
360
                    [% housebound_profile.notes %]
373
                  </li>
361
                  </li>
374
                </ol>
362
                </ol>
375
                <div class="action">
363
                <div class="action">
376
                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a>
364
                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]&method=update_or_create"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
377
                </div>
365
                </div>
378
              </div>
366
              </div>
379
              <div>
367
              <div>
380
                <h3>Deliveries</h3>
368
                <h3>[% t('Deliveries') %]</h3>
381
                [% housebound_visits = housebound_profile.housebound_visits %]
369
                [% housebound_visits = housebound_profile.housebound_visits %]
382
                [% IF  housebound_visits.size > 0 %]
370
                [% IF  housebound_visits.size > 0 %]
383
                <table border="0" width="100%" cellpadding="3" cellspacing="0">
371
                <table border="0" width="100%" cellpadding="3" cellspacing="0">
384
                  <tr>
372
                  <tr>
385
                    <th>ID</th><th>Date</th><th>Chooser</th><th>Deliverer</th><th>Actions</th>
373
                    <th>[% t('ID') %]</th><th>[% t('Date') %]</th><th>[% t('Chooser') %]</th><th>[% t('Deliverer') %]</th><th>[% t('Actions') %]</th>
386
                  </tr>
374
                  </tr>
387
                    [% FOREACH entry IN housebound_visits %]
375
                    [% FOREACH entry IN housebound_visits %]
388
                    <tr>
376
                    <tr>
Lines 399-415 Link Here
399
                        </a>
387
                        </a>
400
                      </td>
388
                      </td>
401
                      <td class="actions">
389
                      <td class="actions">
402
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-pencil"></i> Edit</a>
390
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
403
                        <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-trash"></i> Delete</a>
391
                        <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
404
                      </td>
392
                      </td>
405
                    </tr>
393
                    </tr>
406
                    [% END %]
394
                    [% END %]
407
                </table>
395
                </table>
408
                [% END %]
396
                [% END %]
409
                <div class="action">
397
                <div class="action">
410
                  <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% patron.borrowernumber %]"
398
                  <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% patron.borrowernumber %]" class="btn btn-default btn-sm">
411
                    class="btn btn-default btn-sm">
399
                    <i class="fa fa-plus"></i> [% t('Add a new delivery') %]
412
                    <i class="fa fa-plus"></i> Add a new delivery
413
                  </a>
400
                  </a>
414
                </div>
401
                </div>
415
              </div>
402
              </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt (-15 / +16 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Patrons &rsaquo; Create manual credit</title>
7
<title>[% t('Koha › Patrons › Create manual credit') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Manual credit</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Manual credit') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
   
18
   
Lines 23-32 Link Here
23
<!-- The manual invoice and credit buttons -->
24
<!-- The manual invoice and credit buttons -->
24
<div class="statictabs">
25
<div class="statictabs">
25
<ul>
26
<ul>
26
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li>
27
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account') %]</a></li>
27
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li>
28
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines') %]</a></li>
28
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li>
29
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual invoice') %]</a></li>
29
    <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li>
30
    <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual credit') %]</a></li>
30
</ul>
31
</ul>
31
<div class="tabs-container">
32
<div class="tabs-container">
32
33
Lines 35-52 Link Here
35
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
36
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
36
37
37
<fieldset class="rows">
38
<fieldset class="rows">
38
<legend>Manual credit</legend><ol>
39
<legend>[% t('Manual credit') %]</legend><ol>
39
	<li><label for="type">Credit type: </label><select name="type" id="type">
40
	<li><label for="type">[% t('Credit type:') %] </label><select name="type" id="type">
40
<option value="C">Credit</option>
41
<option value="C">[% t('Credit') %]</option>
41
<option value="FOR">Forgiven</option>
42
<option value="FOR">[% t('Forgiven') %]</option>
42
</select></li>
43
</select></li>
43
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
44
	<li><label for="barcode">[% t('Barcode:') %] </label><input type="text" name="barcode" id="barcode" /></li>
44
	<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
45
	<li><label for="desc">[% t('Description:') %] </label><input type="text" name="desc" size="50" id="desc" /></li>
45
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
46
    <li><label for="note">[% t('Note:') %] </label><input type="text" name="note" size="50" id="note" /></li>
46
    <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li>
47
    <li><label for="amount">[% t('Amount:') %] </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> [% t('Example: 5.00') %]</li>
47
</ol></fieldset>
48
</ol></fieldset>
48
49
49
<fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
50
<fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a></fieldset>
50
</form>
51
</form>
51
52
52
</div></div>
53
</div></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt (-19 / +20 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Patrons &rsaquo; Create manual invoice</title>
7
<title>[% t('Koha › Patrons › Create manual invoice') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Manual invoice</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Manual invoice') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
   
18
   
Lines 23-64 Link Here
23
<!-- The manual invoice and credit buttons -->
24
<!-- The manual invoice and credit buttons -->
24
<div class="statictabs">
25
<div class="statictabs">
25
<ul>
26
<ul>
26
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li>
27
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account') %]</a></li>
27
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li>
28
    <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines') %]</a></li>
28
    <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li>
29
    <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual invoice') %]</a></li>
29
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li>
30
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual credit') %]</a></li>
30
</ul>
31
</ul>
31
<div class="tabs-container">
32
<div class="tabs-container">
32
33
33
[% IF ( ERROR ) %]
34
[% IF ( ERROR ) %]
34
[% IF ( ITEMNUMBER ) %]
35
[% IF ( ITEMNUMBER ) %]
35
  ERROR an invalid itemnumber was entered, please hit back and try again
36
  [% t('ERROR an invalid itemnumber was entered, please hit back and try again') %]
36
[% END %]
37
[% END %]
37
[% ELSE %]
38
[% ELSE %]
38
<form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
39
<form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
39
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
40
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
40
	<fieldset class="rows">
41
	<fieldset class="rows">
41
	<legend>Manual invoice</legend>
42
	<legend>[% t('Manual invoice') %]</legend>
42
	<ol>
43
	<ol>
43
      <li>
44
      <li>
44
        <label for="type">Type: </label>
45
        <label for="type">[% t('Type:') %] </label>
45
        <select name="type" id="invoice_type">
46
        <select name="type" id="invoice_type">
46
          <option value="L">Lost item</option>
47
          <option value="L">[% t('Lost item') %]</option>
47
          <option value="F">Fine</option>
48
          <option value="F">[% t('Fine') %]</option>
48
          <option value="A">Account management fee</option>
49
          <option value="A">[% t('Account management fee') %]</option>
49
          <option value="N">New card</option>
50
          <option value="N">[% t('New card') %]</option>
50
          <option value="M">Sundry</option>
51
          <option value="M">[% t('Sundry') %]</option>
51
          [% FOREACH invoice_types_loo IN invoice_types_loop %]
52
          [% FOREACH invoice_types_loo IN invoice_types_loop %]
52
            <option value="[% invoice_types_loo.authorised_value %]">[% invoice_types_loo.authorised_value %]</option>
53
            <option value="[% invoice_types_loo.authorised_value %]">[% invoice_types_loo.authorised_value %]</option>
53
          [% END %]
54
          [% END %]
54
        </select>
55
        </select>
55
      </li>
56
      </li>
56
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
57
	<li><label for="barcode">[% t('Barcode:') %] </label><input type="text" name="barcode" id="barcode" /></li>
57
	<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
58
	<li><label for="desc">[% t('Description:') %] </label><input type="text" name="desc" id="desc" size="50" /></li>
58
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
59
    <li><label for="note">[% t('Note:') %] </label><input type="text" name="note" size="50" id="note" /></li>
59
    <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li>
60
    <li><label for="amount">[% t('Amount:') %] </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> [% t('Example: 5.00') %]</li>
60
	</ol></fieldset>
61
	</ol></fieldset>
61
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
62
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a></fieldset>
62
</form>
63
</form>
63
64
64
[% END %]
65
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-7 / +8 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% PROCESS 'permissions.inc' %]
5
[% PROCESS 'permissions.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Patrons &rsaquo; Set permissions for [% patron.surname %], [% patron.firstname %]</title>
7
<title>[% t('Koha › Patrons › Set permissions for') %] [% patron.surname %], [% patron.firstname %]</title>
7
[% Asset.css("css/treeview/jquery.treeview.css") %]
8
[% Asset.css("css/treeview/jquery.treeview.css") %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Set permissions for [% patron.surname %], [% patron.firstname %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Set permissions for') %] [% patron.surname %], [% patron.firstname %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 25-31 Link Here
25
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
26
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
26
    <input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber %]" />
27
    <input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber %]" />
27
    <input type="hidden" name="newflags" value="1" />
28
    <input type="hidden" name="newflags" value="1" />
28
    <h1>Set permissions for [% patron.surname %], [% patron.firstname %]</h1>
29
    <h1>[% t('Set permissions for') %] [% patron.surname %], [% patron.firstname %]</h1>
29
    <!-- <ul id="permissionstree"><li class="root">All privileges<ul> -->
30
    <!-- <ul id="permissionstree"><li class="root">All privileges<ul> -->
30
    <ul id="permissionstree" class="treeview-grey">
31
    <ul id="permissionstree" class="treeview-grey">
31
        <!-- <li class="folder-close">One level down<ul> -->
32
        <!-- <li class="folder-close">One level down<ul> -->
Lines 37-50 Link Here
37
        [% END %]
38
        [% END %]
38
			[% IF ( loo.checked ) %]
39
			[% IF ( loo.checked ) %]
39
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
40
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
40
              <input type="checkbox" disabled="disabled" class="flag parent superlib" id="flag-[% loo.bit %]_disabled" name="flag" value="[% loo.flag %]" checked="checked" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
41
              <input type="checkbox" disabled="disabled" class="flag parent superlib" id="flag-[% loo.bit %]_disabled" name="flag" value="[% loo.flag %]" checked="checked" title="[% t('The system preference ProtectSuperlibrarianPrivileges is enabled') %]" />
41
              <input type="hidden" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" >
42
              <input type="hidden" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]">
42
          [% ELSE %]
43
          [% ELSE %]
43
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" />
44
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" />
44
          [% END %]
45
          [% END %]
45
			[% ELSE %]
46
			[% ELSE %]
46
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
47
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
47
              <input type="checkbox" disabled="disabled" class="flag parent" id="flag-[% loo.bit %]_disabled" name="flag" value="[% loo.flag %]" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
48
              <input type="checkbox" disabled="disabled" class="flag parent" id="flag-[% loo.bit %]_disabled" name="flag" value="[% loo.flag %]" title="[% t('The system preference ProtectSuperlibrarianPrivileges is enabled') %]" />
48
          [% ELSE %]
49
          [% ELSE %]
49
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" />
50
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" />
50
          [% END %]
51
          [% END %]
Lines 74-80 Link Here
74
    <!-- </ul></li></ul> -->
75
    <!-- </ul></li></ul> -->
75
    </ul>
76
    </ul>
76
77
77
<fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
78
<fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a></fieldset>
78
79
79
</form>
80
</form>
80
</div>
81
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt (-19 / +20 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Patrons &rsaquo; [% IF ( newpassword ) %]Password updated [% ELSE %]Update password for [% patron.surname %], [% patron.firstname %][% END %]</title>
7
<title>[% t('Koha › Patrons ›') %] [% IF ( newpassword ) %][% t('Password updated') %] [% ELSE %][% t('Update password for') %] [% patron.surname %], [% patron.firstname %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> &rsaquo; [% IF ( newpassword ) %]Password Updated[% ELSE %]Change username and/or password[% END %]</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  › <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> › [% IF ( newpassword ) %][% t('Password Updated') %][% ELSE %][% t('Change username and/or password') %][% END %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
18
Lines 21-27 Link Here
21
[% INCLUDE 'members-toolbar.inc' %]
22
[% INCLUDE 'members-toolbar.inc' %]
22
23
23
[% IF ( newpassword ) %]
24
[% IF ( newpassword ) %]
24
<h1>Password Updated</h1>
25
<h1>[% t('Password Updated') %]</h1>
25
26
26
[% ELSE %]
27
[% ELSE %]
27
28
Lines 31-90 Link Here
31
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
32
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
32
	[% IF ( errormsg ) %]
33
	[% IF ( errormsg ) %]
33
		<div class="dialog alert">
34
		<div class="dialog alert">
34
		<h4>The following errors have occurred:</h4>
35
		<h4>[% t('The following errors have occurred:') %]</h4>
35
		<ul>
36
		<ul>
36
		[% IF ( BADUSERID ) %]
37
		[% IF ( BADUSERID ) %]
37
        <li>You have entered a username that already exists. Please choose another one.</li>
38
        <li>[% t('You have entered a username that already exists. Please choose another one.') %]</li>
38
		[% END %]
39
		[% END %]
39
        [% IF ( ERROR_password_too_short ) %]
40
        [% IF ( ERROR_password_too_short ) %]
40
            <li id="ERROR_short_password">Password must be at least [% Koha.Preference('minPasswordLength') %] characters long.</li>
41
            <li id="ERROR_short_password">[% t('Password must be at least') %] [% Koha.Preference('minPasswordLength') %] [% t('characters long.') %]</li>
41
        [% END %]
42
        [% END %]
42
        [% IF ( ERROR_password_too_weak ) %]
43
        [% IF ( ERROR_password_too_weak ) %]
43
            <li id="ERROR_weak_password">Password must contain at least one digit, one lowercase and one uppercase.</li>
44
            <li id="ERROR_weak_password">[% t('Password must contain at least one digit, one lowercase and one uppercase.') %]</li>
44
        [% END %]
45
        [% END %]
45
        [% IF ( ERROR_password_has_whitespaces ) %]
46
        [% IF ( ERROR_password_has_whitespaces ) %]
46
            <li id="ERROR_weak_password">Password must not contain leading or trailing whitespaces.</li>
47
            <li id="ERROR_weak_password">[% t('Password must not contain leading or trailing whitespaces.') %]</li>
47
        [% END %]
48
        [% END %]
48
		[% IF ( NOPERMISSION ) %]
49
		[% IF ( NOPERMISSION ) %]
49
		<li>You do not have permission to edit this patron's login information.</li>
50
		<li>[% t('You do not have permission to edit this patron\'s login information.') %]</li>
50
		[% END %]
51
		[% END %]
51
		[% IF ( NOMATCH ) %]
52
		[% IF ( NOMATCH ) %]
52
		<li><strong>The passwords entered do not match</strong>. Please re-enter the new password.</li>
53
		<li><strong>[% t('The passwords entered do not match') %]</strong>[% t('. Please re-enter the new password.') %]</li>
53
		[% END %]
54
		[% END %]
54
		</ul>
55
		</ul>
55
		</div>
56
		</div>
56
	[% END %]
57
	[% END %]
57
58
58
59
59
    <fieldset class="brief"><legend>Change username and/or password for [% patron.firstname %] [% patron.surname %]</legend>
60
    <fieldset class="brief"><legend>[% t('Change username and/or password for') %] [% patron.firstname %] [% patron.surname %]</legend>
60
	<ol>
61
	<ol>
61
    <li><label for="newuserid">New username:</label>
62
    <li><label for="newuserid">[% t('New username:') %]</label>
62
    <input type="hidden" name="member" value="[% patron.borrowernumber %]" /><input type="text" id="newuserid" name="newuserid" size="20" value="[% patron.userid %]" /></li>
63
    <input type="hidden" name="member" value="[% patron.borrowernumber %]" /><input type="text" id="newuserid" name="newuserid" size="20" value="[% patron.userid %]" /></li>
63
    [% SET password_pattern = ".{" _ Koha.Preference('minPasswordLength') _ ",}" %]
64
    [% SET password_pattern = ".{" _ Koha.Preference('minPasswordLength') _ ",}" %]
64
    [% IF Koha.Preference('RequireStrongPassword') %]
65
    [% IF Koha.Preference('RequireStrongPassword') %]
65
        [% SET password_pattern = '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{' _ Koha.Preference('minPasswordLength') _ ',}' %]
66
        [% SET password_pattern = '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{' _ Koha.Preference('minPasswordLength') _ ',}' %]
66
    [% END %]
67
    [% END %]
67
    <li>
68
    <li>
68
        <label for="newpassword">New password:</label>
69
        <label for="newpassword">[% t('New password:') %]</label>
69
        <div class="hint">Koha cannot display existing passwords. Leave the field blank to leave password unchanged.</div>
70
        <div class="hint">[% t('Koha cannot display existing passwords. Leave the field blank to leave password unchanged.') %]</div>
70
        <input name="newpassword"  id="newpassword" type="password" size="20" />
71
        <input name="newpassword" id="newpassword" type="password" size="20" />
71
    </li>
72
    </li>
72
    <li>
73
    <li>
73
        <label for="newpassword2">Confirm new password:</label>
74
        <label for="newpassword2">[% t('Confirm new password:') %]</label>
74
        <input name="newpassword2"  id="newpassword2" type="password" size="20" />
75
        <input name="newpassword2" id="newpassword2" type="password" size="20" />
75
    </li>
76
    </li>
76
	</ol>
77
	</ol>
77
</fieldset>
78
</fieldset>
78
    <fieldset class="action">
79
    <fieldset class="action">
79
        <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
80
        <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
80
        <input type="submit" value="Save" />
81
        <input type="submit" value="Save" />
81
        <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a>
82
        <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a>
82
    </fieldset>
83
    </fieldset>
83
</form>[% END %]
84
</form>[% END %]
84
85
85
</div>
86
</div>
86
</div>
87
</div>
87
<div class="loading hide"><strong>Processing...</strong><img src="[% interface %]/[% theme %]/img/loading.gif" alt="" /></div>
88
<div class="loading hide"><strong>[% t('Processing...') %]</strong><img src="[% interface %]/[% theme %]/img/loading.gif" alt="" /></div>
88
<div class="yui-b">
89
<div class="yui-b">
89
[% INCLUDE 'circ-menu.inc' %]
90
[% INCLUDE 'circ-menu.inc' %]
90
</div>
91
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-56 / +57 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE ColumnsSettings %]
4
[% USE ColumnsSettings %]
Lines 5-11 Link Here
5
[% USE Categories %]
6
[% USE Categories %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Patrons [% IF ( searching ) %]&rsaquo; Search results[% END %]</title>
9
<title>[% t('Koha › Patrons') %] [% IF ( searching ) %][% t('› Search results') %][% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
</head>
12
</head>
Lines 14-20 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
16
[% INCLUDE 'patron-search.inc' %]
16
17
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; [% IF ( searching ) %]<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Search results[% ELSE %]Patrons[% END %]</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › [% IF ( searching ) %]<a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Search results') %][% ELSE %][% t('Patrons') %][% END %]</div>
18
19
19
<div id="doc3" class="yui-t2">
20
<div id="doc3" class="yui-t2">
20
  <div id="bd">
21
  <div id="bd">
Lines 23-29 Link Here
23
        <div class="yui-g">
24
        <div class="yui-g">
24
          [% IF CAN_user_tools_manage_patron_lists %]
25
          [% IF CAN_user_tools_manage_patron_lists %]
25
            <div id="patron_list_dialog" class="dialog alert">
26
            <div id="patron_list_dialog" class="dialog alert">
26
              Added <span class="patrons-length"></span> patrons to <a></a>.
27
              [% t('Added') %] <span class="patrons-length"></span> [% t('patrons to') %] <a></a>.
27
            </div>
28
            </div>
28
          [% END %]
29
          [% END %]
29
30
Lines 36-42 Link Here
36
          [% INCLUDE 'noadd-warnings.inc' %]
37
          [% INCLUDE 'noadd-warnings.inc' %]
37
38
38
          <div class="browse">
39
          <div class="browse">
39
            Browse by last name:
40
            [% t('Browse by last name:') %]
40
            [% FOREACH letter IN alphabet.split(' ') %]
41
            [% FOREACH letter IN alphabet.split(' ') %]
41
                <a href="#" class="filterByLetter">[% letter %]</a>
42
                <a href="#" class="filterByLetter">[% letter %]</a>
42
            [% END %]
43
            [% END %]
Lines 44-79 Link Here
44
45
45
          [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
46
          [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
46
            <div class="pending-info" id="patron_updates_pending">
47
            <div class="pending-info" id="patron_updates_pending">
47
              <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
48
              <a href="/cgi-bin/koha/members/members-update.pl">[% t('Patrons requesting modifications') %]</a>:
48
              <span class="number_box"><a href="/cgi-bin/koha/members/members-update.pl">[% pending_borrower_modifications %]</a></span>
49
              <span class="number_box"><a href="/cgi-bin/koha/members/members-update.pl">[% pending_borrower_modifications %]</a></span>
49
            </div>
50
            </div>
50
          [% END %]
51
          [% END %]
51
52
52
          <div id="searchresults">
53
          <div id="searchresults">
53
            <div id="searchheader">
54
            <div id="searchheader">
54
              <h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember | html %]'[% END %]</span></h3>
55
              <h3>[% t('Patrons found for:') %] <span id="searchpattern">[% IF searchmember %] [% t('for \'') %][% searchmember | html %]'[% END %]</span></h3>
55
            </div>
56
            </div>
56
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
57
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
57
              <div id="searchheader">
58
              <div id="searchheader">
58
                  <div>
59
                  <div>
59
                    [% IF CAN_user_tools_manage_patron_lists %]
60
                    [% IF CAN_user_tools_manage_patron_lists %]
60
                      <a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a>
61
                      <a href="#" id="select_all"><i class="fa fa-check"></i> [% t('Select all') %]</a>
61
                      |
62
                      |
62
                      <a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
63
                      <a href="#" id="clear_all"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
63
                      |
64
                      |
64
                      <span>
65
                      <span>
65
                          <label for="add_to_patron_list">Add selected patrons to:</label>
66
                          <label for="add_to_patron_list">[% t('Add selected patrons to:') %]</label>
66
                          <select id="add_to_patron_list" name="add_to_patron_list">
67
                          <select id="add_to_patron_list" name="add_to_patron_list">
67
                              <option value=""></option>
68
                              <option value=""></option>
68
                              [% IF patron_lists %]
69
                              [% IF patron_lists %]
69
                                  <optgroup label="Patron lists:">
70
                                  <optgroup label="[% t('Patron lists:') %]">
70
                                      [% FOREACH pl IN patron_lists %]
71
                                      [% FOREACH pl IN patron_lists %]
71
                                          <option value="[% pl.patron_list_id %]">[% pl.name |html %]</option>
72
                                          <option value="[% pl.patron_list_id %]">[% pl.name |html %]</option>
72
                                      [% END %]
73
                                      [% END %]
73
                                  </optgroup>
74
                                  </optgroup>
74
                              [% END %]
75
                              [% END %]
75
76
76
                              <option value="new">[ New list ]</option>
77
                              <option value="new">[% t('[ New list ]') %]</option>
77
                          </select>
78
                          </select>
78
79
79
                          <input type="text" id="new_patron_list" name="new_patron_list" id="new_patron_list" />
80
                          <input type="text" id="new_patron_list" name="new_patron_list" id="new_patron_list" />
Lines 87-93 Link Here
87
                    [% END %]
88
                    [% END %]
88
89
89
                    [% IF CAN_user_borrowers_edit_borrowers %]
90
                    [% IF CAN_user_borrowers_edit_borrowers %]
90
                          <button id="merge-patrons" type="submit">Merge selected patrons</button>
91
                          <button id="merge-patrons" type="submit">[% t('Merge selected patrons') %]</button>
91
                    [% END %]
92
                    [% END %]
92
                  </div>
93
                  </div>
93
                </div>
94
                </div>
Lines 97-114 Link Here
97
              <thead>
98
              <thead>
98
                <tr>
99
                <tr>
99
                [% IF CAN_user_tools_manage_patron_lists %]
100
                [% IF CAN_user_tools_manage_patron_lists %]
100
                  <th>&nbsp;</th>
101
                  <th> </th>
101
                [% END %]
102
                [% END %]
102
                  <th>Card</th>
103
                  <th>[% t('Card') %]</th>
103
                  <th>Name</th>
104
                  <th>[% t('Name') %]</th>
104
                  <th>Date of birth</th>
105
                  <th>[% t('Date of birth') %]</th>
105
                  <th>Category</th>
106
                  <th>[% t('Category') %]</th>
106
                  <th>Library</th>
107
                  <th>[% t('Library') %]</th>
107
                  <th>Expires on</th>
108
                  <th>[% t('Expires on') %]</th>
108
                  <th>OD/Checkouts</th>
109
                  <th>[% t('OD/Checkouts') %]</th>
109
                  <th>Fines</th>
110
                  <th>[% t('Fines') %]</th>
110
                  <th>Circ note</th>
111
                  <th>[% t('Circ note') %]</th>
111
                  <th>&nbsp;</th>
112
                  <th> </th>
112
                </tr>
113
                </tr>
113
              </thead>
114
              </thead>
114
              <tbody></tbody>
115
              <tbody></tbody>
Lines 121-204 Link Here
121
      <form method="get" id="searchform">
122
      <form method="get" id="searchform">
122
        <input type="hidden" id="firstletter_filter" value="" />
123
        <input type="hidden" id="firstletter_filter" value="" />
123
        <fieldset class="brief">
124
        <fieldset class="brief">
124
          <h3>Filters</h3>
125
          <h3>[% t('Filters') %]</h3>
125
          <ol>
126
          <ol>
126
            <li>
127
            <li>
127
              <label for="searchmember_filter">Search:</label>
128
              <label for="searchmember_filter">[% t('Search:') %]</label>
128
              <input type="text" id="searchmember_filter" value="[% searchmember %]"/>
129
              <input type="text" id="searchmember_filter" value="[% searchmember %]" />
129
            </li>
130
            </li>
130
            <li>
131
            <li>
131
              <label for="searchfieldstype_filter">Search fields:</label>
132
              <label for="searchfieldstype_filter">[% t('Search fields:') %]</label>
132
              <select name="searchfieldstype" id="searchfieldstype_filter">
133
              <select name="searchfieldstype" id="searchfieldstype_filter">
133
                [% IF searchfieldstype == "standard" %]
134
                [% IF searchfieldstype == "standard" %]
134
                  <option selected="selected" value='standard'>Standard</option>
135
                  <option selected="selected" value="standard">[% t('Standard') %]</option>
135
                [% ELSE %]
136
                [% ELSE %]
136
                  <option value='standard'>Standard</option>
137
                  <option value="standard">[% t('Standard') %]</option>
137
                [% END %]
138
                [% END %]
138
                [% IF searchfieldstype == "surname" %]
139
                [% IF searchfieldstype == "surname" %]
139
                  <option selected="selected" value='surname'>Surname</option>
140
                  <option selected="selected" value="surname">[% t('Surname') %]</option>
140
                [% ELSE %]
141
                [% ELSE %]
141
                  <option value='surname'>Surname</option>
142
                  <option value="surname">[% t('Surname') %]</option>
142
                [% END %]
143
                [% END %]
143
                [% IF searchfieldstype == "email" %]
144
                [% IF searchfieldstype == "email" %]
144
                  <option selected="selected" value='email'>Email</option>
145
                  <option selected="selected" value="email">[% t('Email') %]</option>
145
                [% ELSE %]
146
                [% ELSE %]
146
                  <option value='email'>Email</option>
147
                  <option value="email">[% t('Email') %]</option>
147
                [% END %]
148
                [% END %]
148
                [% IF searchfieldstype == "borrowernumber" %]
149
                [% IF searchfieldstype == "borrowernumber" %]
149
                  <option selected="selected" value='borrowernumber'>Borrower number</option>
150
                  <option selected="selected" value="borrowernumber">[% t('Borrower number') %]</option>
150
                [% ELSE %]
151
                [% ELSE %]
151
                  <option value='borrowernumber'>Borrower number</option>
152
                  <option value="borrowernumber">[% t('Borrower number') %]</option>
152
                [% END %]
153
                [% END %]
153
                [% IF searchfieldstype == "userid" %]
154
                [% IF searchfieldstype == "userid" %]
154
                  <option selected="selected" value='userid'>Username</option>
155
                  <option selected="selected" value="userid">[% t('Username') %]</option>
155
                [% ELSE %]
156
                [% ELSE %]
156
                  <option value='userid'>Username</option>
157
                  <option value="userid">[% t('Username') %]</option>
157
                [% END %]
158
                [% END %]
158
                [% IF searchfieldstype == "phone" %]
159
                [% IF searchfieldstype == "phone" %]
159
                  <option selected="selected" value='phone'>Phone number</option>
160
                  <option selected="selected" value="phone">[% t('Phone number') %]</option>
160
                [% ELSE %]
161
                [% ELSE %]
161
                  <option value='phone'>Phone number</option>
162
                  <option value="phone">[% t('Phone number') %]</option>
162
                [% END %]
163
                [% END %]
163
                [% IF searchfieldstype == "address" %]
164
                [% IF searchfieldstype == "address" %]
164
                  <option selected="selected" value='address'>Street address</option>
165
                  <option selected="selected" value="address">[% t('Street address') %]</option>
165
                [% ELSE %]
166
                [% ELSE %]
166
                  <option value='address'>Street address</option>
167
                  <option value="address">[% t('Street address') %]</option>
167
                [% END %]
168
                [% END %]
168
                [% IF searchfieldstype == "dateofbirth" %]
169
                [% IF searchfieldstype == "dateofbirth" %]
169
                  <option selected="selected" value='dateofbirth'>Date of birth</option>
170
                  <option selected="selected" value="dateofbirth">[% t('Date of birth') %]</option>
170
                [% ELSE %]
171
                [% ELSE %]
171
                  <option value='dateofbirth'>Date of birth</option>
172
                  <option value="dateofbirth">[% t('Date of birth') %]</option>
172
                [% END %]
173
                [% END %]
173
                [% IF searchfieldstype == "sort1" %]
174
                [% IF searchfieldstype == "sort1" %]
174
                  <option selected="selected" value='sort1'>Sort field 1</option>
175
                  <option selected="selected" value="sort1">[% t('Sort field 1') %]</option>
175
                [% ELSE %]
176
                [% ELSE %]
176
                  <option value='sort1'>Sort field 1</option>
177
                  <option value="sort1">[% t('Sort field 1') %]</option>
177
                [% END %]
178
                [% END %]
178
                [% IF searchfieldstype == "sort2" %]
179
                [% IF searchfieldstype == "sort2" %]
179
                  <option selected="selected" value='sort2'>Sort field 2</option>
180
                  <option selected="selected" value="sort2">[% t('Sort field 2') %]</option>
180
                [% ELSE %]
181
                [% ELSE %]
181
                  <option value='sort2'>Sort field 2</option>
182
                  <option value="sort2">[% t('Sort field 2') %]</option>
182
                [% END %]
183
                [% END %]
183
              </select>
184
              </select>
184
            </li>
185
            </li>
185
            <li>
186
            <li>
186
              <label for="searchtype_filter">Search type:</label>
187
              <label for="searchtype_filter">[% t('Search type:') %]</label>
187
              <select name="searchtype" id="searchtype_filter">
188
              <select name="searchtype" id="searchtype_filter">
188
                [% IF searchtype == "start_with" %]
189
                [% IF searchtype == "start_with" %]
189
                  <option value='start_with' selected="selected">Starts with</option>
190
                  <option value="start_with" selected="selected">[% t('Starts with') %]</option>
190
                  <option value="contain">Contains</option>
191
                  <option value="contain">[% t('Contains') %]</option>
191
                [% ELSE %]
192
                [% ELSE %]
192
                  <option value='start_with'>Starts with</option>
193
                  <option value="start_with">[% t('Starts with') %]</option>
193
                  <option value="contain" selected="selected">Contains</option>
194
                  <option value="contain" selected="selected">[% t('Contains') %]</option>
194
                [% END %]
195
                [% END %]
195
              </select>
196
              </select>
196
            </li>
197
            </li>
197
            <li>
198
            <li>
198
              <label for="categorycode_filter">Category:</label>
199
              <label for="categorycode_filter">[% t('Category:') %]</label>
199
              [% SET categories = Categories.all() %]
200
              [% SET categories = Categories.all() %]
200
              <select id="categorycode_filter">
201
              <select id="categorycode_filter">
201
                <option value="">Any</option>
202
                <option value="">[% t('Any') %]</option>
202
                [% FOREACH cat IN categories %]
203
                [% FOREACH cat IN categories %]
203
                  [% IF cat.categorycode == categorycode_filter %]
204
                  [% IF cat.categorycode == categorycode_filter %]
204
                    <option selected="selected" value="[% cat.categorycode %]">[% cat.description |html %]</option>
205
                    <option selected="selected" value="[% cat.categorycode %]">[% cat.description |html %]</option>
Lines 209-219 Link Here
209
              </select>
210
              </select>
210
            </li>
211
            </li>
211
            <li>
212
            <li>
212
              <label for="branchcode_filter">Library:</label>
213
              <label for="branchcode_filter">[% t('Library:') %]</label>
213
              [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
214
              [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
214
              <select id="branchcode_filter">
215
              <select id="branchcode_filter">
215
                [% IF branches.size != 1 %]
216
                [% IF branches.size != 1 %]
216
                  <option value="">Any</option>
217
                  <option value="">[% t('Any') %]</option>
217
                [% END %]
218
                [% END %]
218
                [% PROCESS options_for_libraries libraries => branches %]
219
                [% PROCESS options_for_libraries libraries => branches %]
219
              </select>
220
              </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-242 / +231 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; [% 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 %])</title>
8
<title>[% t('Koha › Patrons ›') %] [% IF ( opadd ) %][% t('Add') %][% ELSIF ( opduplicate ) %][% t('Duplicate') %][% ELSE %] [% t('Modify') %][% END %] [% t('patron') %] [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF categoryname %][% categoryname %][% ELSE %][% IF ( I ) %][% t('Organization') %][% END %][% IF ( A ) %][% t('Adult') %][% END %][% IF ( C ) %][% t('Child') %][% END %][% IF ( P ) %][% t('Professional') %][% END %][% IF ( S ) %][% t('Staff') %][% END %][% END %])</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 12-20 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo;
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  ›
16
[% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a>  &rsaquo;[% END %]
17
[% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a>  ›[% END %]
17
<strong>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%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 %])</strong>
18
<strong>[% IF ( opadd ) %][% t('Add') %][% ELSIF ( opduplicate ) %][% t('Duplicate') %][% ELSE %] [% t('Modify') %][% END %] [% t('patron (') %][%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %][% t('Organization') %][% END %][% IF ( A ) %][% t('Adult') %][% END %][% IF ( C ) %][% t('Child') %][% END %][% IF ( P ) %][% t('Professional') %][% END %][% IF ( S ) %][% t('Staff') %][% END %][% END %])</strong>
18
</div>
19
</div>
19
[% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
20
[% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
20
21
Lines 23-111 Link Here
23
	<div class="yui-b">
24
	<div class="yui-b">
24
    [% IF error_alert %]
25
    [% IF error_alert %]
25
        [% IF ( error_alert == "no_email" ) %]
26
        [% IF ( error_alert == "no_email" ) %]
26
            <div class="error">This member has no email</div>
27
            <div class="error">[% t('This member has no email') %]</div>
27
        [% ELSE %]
28
        [% ELSE %]
28
            <div class="error">[% error_alert %]</div>
29
            <div class="error">[% error_alert %]</div>
29
        [% END %]
30
        [% END %]
30
    [% END %]
31
    [% END %]
31
    [% IF info_alert %]
32
    [% IF info_alert %]
32
        <div class="dialog message">Email has been sent.</div>
33
        <div class="dialog message">[% t('Email has been sent.') %]</div>
33
    [% END %]
34
    [% END %]
34
35
35
    [% INCLUDE 'noadd-warnings.inc' %]
36
    [% INCLUDE 'noadd-warnings.inc' %]
36
37
37
	[% UNLESS ( no_add ) %]
38
	[% UNLESS ( no_add ) %]
38
    <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% 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 %])</h1>
39
    <h1>[% IF ( opadd ) %][% t('Add') %][% ELSIF ( opduplicate ) %][% t('Duplicate') %][% ELSE %] [% t('Modify') %][% END %] [% t('patron') %] [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %][% t('Organization') %][% END %][% IF ( A ) %][% t('Adult') %][% END %][% IF ( C ) %][% t('Child') %][% END %][% IF ( P ) %][% t('Professional') %][% END %][% IF ( S ) %][% t('Staff') %][% END %][% END %])</h1>
39
40
40
    [% IF quickadd && opadd && !check_member %]
41
    [% IF quickadd && opadd && !check_member %]
41
        <a href="#" class="toggle_quick_add"><i class="fa fa-plus-square"></i> Show full form</a>
42
        <a href="#" class="toggle_quick_add"><i class="fa fa-plus-square"></i> [% t('Show full form') %]</a>
42
        <a href="#" class="toggle_quick_add" style="display:none"><i class="fa fa-minus-square"></i> Show brief form</a>
43
        <a href="#" class="toggle_quick_add" style="display:none"><i class="fa fa-minus-square"></i> [% t('Show brief form') %]</a>
43
    [% END %]
44
    [% END %]
44
45
45
	[% IF ( check_member ) %]
46
	[% IF ( check_member ) %]
46
			<div class="dialog alert">
47
			<div class="dialog alert">
47
				<h3>Duplicate patron record?</h3>
48
				<h3>[% t('Duplicate patron record?') %]</h3>
48
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
49
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');return false;">[% t('View existing record') %]</a></p>
49
                <button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate.
50
                <button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> [% t('It is a duplicate.') %]
50
                Edit existing record</button>
51
                [% t('Edit existing record') %]</button>
51
52
52
                <button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate.
53
                <button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> [% t('Not a duplicate.') %]
53
                Save as new record</button>
54
                [% t('Save as new record') %]</button>
54
			</div>
55
			</div>
55
	[% END %]
56
	[% END %]
56
57
57
	[% IF ( nok ) %]
58
	[% IF ( nok ) %]
58
		<div class="dialog alert">
59
		<div class="dialog alert">
59
			<p>The following fields are wrong. Please fix them.</p>
60
			<p>[% t('The following fields are wrong. Please fix them.') %]</p>
60
			<ul>
61
			<ul>
61
			[% IF ( ERROR_login_exist ) %]
62
			[% IF ( ERROR_login_exist ) %]
62
				<li id="ERROR_login_exist">Username/password already exists.</li>
63
				<li id="ERROR_login_exist">[% t('Username/password already exists.') %]</li>
63
			[% END %]
64
			[% END %]
64
            [% IF ERROR_cardnumber_already_exists %]
65
            [% IF ERROR_cardnumber_already_exists %]
65
                <li id="ERROR_cardnumber">Cardnumber already in use.</li>
66
                <li id="ERROR_cardnumber">[% t('Cardnumber already in use.') %]</li>
66
            [% END %]
67
            [% END %]
67
            [% IF ERROR_cardnumber_length %]
68
            [% IF ERROR_cardnumber_length %]
68
                <li id="ERROR_cardnumber">Cardnumber length is incorrect.</li>
69
                <li id="ERROR_cardnumber">[% t('Cardnumber length is incorrect.') %]</li>
69
            [% END %]
70
            [% END %]
70
			[% IF ( ERROR_age_limitations ) %]
71
			[% IF ( ERROR_age_limitations ) %]
71
            <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
72
            <li id="ERROR_age_limitations">[% t('Patron\'s age is incorrect for their category.') %]
72
                    Ages allowed are [% age_low %]-[% age_high %].</li>
73
                    [% t('Ages allowed are') %] [% age_low %]-[% age_high %].</li>
73
			[% END %]
74
			[% END %]
74
			[% IF ( ERROR_branch ) %]
75
			[% IF ( ERROR_branch ) %]
75
				<li id="ERROR_branch">Library is invalid.</li>
76
				<li id="ERROR_branch">[% t('Library is invalid.') %]</li>
76
            [% END %]
77
            [% END %]
77
			[% IF ( ERROR_dateofbirth ) %]
78
			[% IF ( ERROR_dateofbirth ) %]
78
				<li id="ERROR_dateofbirth">Date of birth is invalid.</li>
79
				<li id="ERROR_dateofbirth">[% t('Date of birth is invalid.') %]</li>
79
			[% END %]
80
			[% END %]
80
			[% IF ( ERROR_dateenrolled ) %]
81
			[% IF ( ERROR_dateenrolled ) %]
81
				<li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
82
				<li id="ERROR_dateenrolled">[% t('Date of enrollment is invalid.') %]</li>
82
			[% END %]
83
			[% END %]
83
			[% IF ( ERROR_dateexpiry ) %]
84
			[% IF ( ERROR_dateexpiry ) %]
84
				<li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
85
				<li id="ERROR_dateexpiry">[% t('Date of expiration is invalid.') %]</li>
85
			[% END %]
86
			[% END %]
86
            [% IF ( ERROR_password_too_short ) %]
87
            [% IF ( ERROR_password_too_short ) %]
87
                <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
88
                <li id="ERROR_short_password">[% t('Password must be at least') %] [% minPasswordLength %] [% t('characters long.') %]</li>
88
            [% END %]
89
            [% END %]
89
            [% IF ( ERROR_password_too_weak ) %]
90
            [% IF ( ERROR_password_too_weak ) %]
90
                <li id="ERROR_weak_password">Password must contain at least one digit, one lowercase and one uppercase.</li>
91
                <li id="ERROR_weak_password">[% t('Password must contain at least one digit, one lowercase and one uppercase.') %]</li>
91
            [% END %]
92
            [% END %]
92
            [% IF ( ERROR_password_has_whitespaces ) %]
93
            [% IF ( ERROR_password_has_whitespaces ) %]
93
                <li id="ERROR_weak_password">Password must not contain leading or trailing whitespaces.</li>
94
                <li id="ERROR_weak_password">[% t('Password must not contain leading or trailing whitespaces.') %]</li>
94
            [% END %]
95
            [% END %]
95
			[% IF ( ERROR_password_mismatch ) %]
96
			[% IF ( ERROR_password_mismatch ) %]
96
				<li id="ERROR_password_mismatch">Passwords do not match.</li>
97
				<li id="ERROR_password_mismatch">[% t('Passwords do not match.') %]</li>
97
			[% END %]
98
			[% END %]
98
            [% IF ( ERROR_extended_unique_id_failed ) %]
99
            [% IF ( ERROR_extended_unique_id_failed ) %]
99
                <li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description %]:</strong> Attribute value "[% ERROR_extended_unique_id_failed_value %]" is already in use by another patron record.</li>
100
                <li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description %]:</strong> [% t('Attribute value &#34;') %][% ERROR_extended_unique_id_failed_value %][% t('&#34; is already in use by another patron record.') %]</li>
100
			[% END %]
101
			[% END %]
101
            [% IF ERROR_bad_email %]
102
            [% IF ERROR_bad_email %]
102
                <li id="ERROR_bad_email">The primary email is invalid.</li>
103
                <li id="ERROR_bad_email">[% t('The primary email is invalid.') %]</li>
103
            [% END %]
104
            [% END %]
104
            [% IF ERROR_bad_email_secondary %]
105
            [% IF ERROR_bad_email_secondary %]
105
                <li id="ERROR_bad_email_secondary">The secondary email is invalid.</li>
106
                <li id="ERROR_bad_email_secondary">[% t('The secondary email is invalid.') %]</li>
106
            [% END %]
107
            [% END %]
107
            [% IF ERROR_bad_email_alternative %]
108
            [% IF ERROR_bad_email_alternative %]
108
                <li id="ERROR_bad_email_alternative">The alternative email is invalid.</li>
109
                <li id="ERROR_bad_email_alternative">[% t('The alternative email is invalid.') %]</li>
109
            [% END %]
110
            [% END %]
110
			</ul>
111
			</ul>
111
		</div>
112
		</div>
Lines 115-136 Link Here
115
<div id="toolbar" class="btn-toolbar">
116
<div id="toolbar" class="btn-toolbar">
116
[% UNLESS ( check_member ) %]
117
[% UNLESS ( check_member ) %]
117
    [% IF quickadd && opadd %]
118
    [% IF quickadd && opadd %]
118
        <button class="btn btn-default btn-sm toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button>
119
        <button class="btn btn-default btn-sm toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> [% t('Save') %]</button>
119
    [% END %]
120
    [% END %]
120
    <button class="btn btn-default btn-sm toggler" id="saverecord" name="save" ><i class="fa fa-save"></i> Save</button>
121
    <button class="btn btn-default btn-sm toggler" id="saverecord" name="save"><i class="fa fa-save"></i> [% t('Save') %]</button>
121
    [% IF opadd %]
122
    [% IF opadd %]
122
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform">
123
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform">
123
    [% ELSE %]
124
    [% ELSE %]
124
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
125
        <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
125
    [% END %]
126
    [% END %]
126
        <i class="fa fa-times"></i> Cancel
127
        <i class="fa fa-times"></i> [% t('Cancel') %]
127
    </a>
128
    </a>
128
[% END %]
129
[% END %]
129
</div>
130
</div>
130
131
131
<form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" >
132
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler">
132
[% UNLESS ( check_member ) %]
133
[% UNLESS ( check_member ) %]
133
    <input type="hidden" name="nodouble"  value="[% nodouble %]" />
134
    <input type="hidden" name="nodouble" value="[% nodouble %]" />
134
[% END %]
135
[% END %]
135
<!--    field always hidden in different form (1,2,3) -->
136
<!--    field always hidden in different form (1,2,3) -->
136
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
137
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
Lines 139-147 Link Here
139
<input type="hidden" name="destination" value="[% destination %]" />
140
<input type="hidden" name="destination" value="[% destination %]" />
140
<input type="hidden" name="check_member" value="[% check_member %]" />
141
<input type="hidden" name="check_member" value="[% check_member %]" />
141
<input type="hidden" name="borrowernumber" value="[% borrowernumber UNLESS opduplicate %]" />
142
<input type="hidden" name="borrowernumber" value="[% borrowernumber UNLESS opduplicate %]" />
142
<input type="hidden" name="nodouble"  value="[% nodouble UNLESS opduplicate %]" />
143
<input type="hidden" name="nodouble" value="[% nodouble UNLESS opduplicate %]" />
143
<input type="hidden" name="csrf_token" value="[% csrf_token %]" />
144
<input type="hidden" name="csrf_token" value="[% csrf_token %]" />
144
[% IF ( step ) %]<input type="hidden" name="step"  value="[% step %]" />[% END %]
145
[% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %]
145
[% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
146
[% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
146
[% ELSIF ( opduplicate ) %]
147
[% ELSIF ( opduplicate ) %]
147
<input type="hidden" name="op" value="insert" />
148
<input type="hidden" name="op" value="insert" />
Lines 158-164 Link Here
158
[% IF ( step_1 ) %]
159
[% IF ( step_1 ) %]
159
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
160
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
160
	<fieldset class="rows" id="memberentry_identity">
161
	<fieldset class="rows" id="memberentry_identity">
161
		<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
162
		<legend id="identity_lgd">[% IF ( I ) %][% t('Organization') %] [% ELSE %][% t('Patron') %] [% END %][% t('identity') %]</legend>
162
		<ol>
163
		<ol>
163
		[% UNLESS ( I ) %]
164
		[% UNLESS ( I ) %]
164
        [% UNLESS notitle %]
165
        [% UNLESS notitle %]
Lines 169-175 Link Here
169
            [% ELSE %]
170
            [% ELSE %]
170
                <label for="btitle">
171
                <label for="btitle">
171
            [% END %]
172
            [% END %]
172
            Salutation: </label>
173
            [% t('Salutation:') %] </label>
173
            <select id="btitle" name="title">
174
            <select id="btitle" name="title">
174
                <option value=""></option>
175
                <option value=""></option>
175
                [% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %]
176
                [% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %]
Lines 180-186 Link Here
180
                    [% END %]
181
                    [% END %]
181
                [% END %]
182
                [% END %]
182
            </select>
183
            </select>
183
            [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
184
            [% IF ( mandatorytitle ) %]<span class="required">[% t('Required') %]</span>[% END %]
184
            </li>
185
            </li>
185
		[% END %]
186
		[% END %]
186
        [% END %]
187
        [% END %]
Lines 192-204 Link Here
192
		[% ELSE %]
193
		[% ELSE %]
193
		<label for="surname">
194
		<label for="surname">
194
		[% END %]
195
		[% END %]
195
		Surname: </label>
196
		[% t('Surname:') %] </label>
196
		[% IF ( uppercasesurnames ) %]
197
		[% IF ( uppercasesurnames ) %]
197
            <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
198
            <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" />
198
		[% ELSE %]
199
		[% ELSE %]
199
            <input type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
200
            <input type="text" id="surname" name="surname" size="20" value="[% surname %]" />
200
		[% END %]
201
		[% END %]
201
		[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
202
		[% IF ( mandatorysurname ) %]<span class="required">[% t('Required') %]</span>[% END %]
202
		</li>
203
		</li>
203
        [% END %]
204
        [% END %]
204
		[% UNLESS ( I ) %]
205
		[% UNLESS ( I ) %]
Lines 209-217 Link Here
209
                [% ELSE %]
210
                [% ELSE %]
210
                <label for="firstname">
211
                <label for="firstname">
211
                [% END %]
212
                [% END %]
212
                First name: </label>
213
                [% t('First name:') %] </label>
213
                <input type="text" id="firstname" name="firstname" size="20"  value="[% firstname | html UNLESS opduplicate %]" />
214
                <input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" />
214
                [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
215
                [% IF ( mandatoryfirstname ) %]<span class="required">[% t('Required') %]</span>[% END %]
215
            </li>
216
            </li>
216
        [% END %]
217
        [% END %]
217
        [% UNLESS nodateofbirth %]
218
        [% UNLESS nodateofbirth %]
Lines 221-232 Link Here
221
                [% ELSE %]
222
                [% ELSE %]
222
                <label for="dateofbirth">
223
                <label for="dateofbirth">
223
                [% END %]
224
                [% END %]
224
                Date of birth: </label>
225
                [% t('Date of birth:') %] </label>
225
226
226
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth UNLESS opduplicate %]" class="datepicker" />
227
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth UNLESS opduplicate %]" class="datepicker" />
227
228
228
        [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
229
        [% IF ( mandatorydateofbirth ) %]<span class="required">[% t('Required') %]</span>[% END %]
229
        [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
230
        [% IF ( ERROR_dateofbirth ) %]<span class="required">[% t('(Error)') %]</span>[% END %]
230
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
231
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
231
            </li>
232
            </li>
232
        [% END %]
233
        [% END %]
Lines 237-245 Link Here
237
                [% ELSE %]
238
                [% ELSE %]
238
                    <label for="initials">
239
                    <label for="initials">
239
                [% END %]
240
                [% END %]
240
                Initials: </label>
241
                [% t('Initials:') %] </label>
241
                <input type="text" id="initials" name="initials" size="20"  value="[% initials | html UNLESS opduplicate %]" />
242
                <input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" />
242
                [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
243
                [% IF ( mandatoryinitials ) %]<span class="required">[% t('Required') %]</span>[% END %]
243
            </li>
244
            </li>
244
        [% END %]
245
        [% END %]
245
        [% END %]
246
        [% END %]
Lines 250-258 Link Here
250
			[% ELSE %]
251
			[% ELSE %]
251
			<label for="othernames">
252
			<label for="othernames">
252
			[% END %]
253
			[% END %]
253
            Other name: </label>
254
            [% t('Other name:') %] </label>
254
            <input type="text" id="othernames" name="othernames" size="20"  value="[% othernames | html UNLESS opduplicate %]" />
255
            <input type="text" id="othernames" name="othernames" size="20" value="[% othernames | html UNLESS opduplicate %]" />
255
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
256
[% IF ( mandatoryothernames ) %]<span class="required">[% t('Required') %]</span>[% END %]
256
		[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
257
		[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
257
		</li>
258
		</li>
258
        [% END %]
259
        [% END %]
Lines 262-285 Link Here
262
263
263
            [% UNLESS ( opduplicate ) %]
264
            [% UNLESS ( opduplicate ) %]
264
                [% IF ( female ) %]
265
                [% IF ( female ) %]
265
                    <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label>
266
                    <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> [% t('Female') %]</label>
266
                [% ELSE %]
267
                [% ELSE %]
267
                    <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label>
268
                    <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> [% t('Female') %]</label>
268
                [% END %]
269
                [% END %]
269
                [% IF ( male ) %]
270
                [% IF ( male ) %]
270
                    <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label>
271
                    <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> [% t('Male') %]</label>
271
                [% ELSE %]
272
                [% ELSE %]
272
                    <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label>
273
                    <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> [% t('Male') %]</label>
273
                [% END %]
274
                [% END %]
274
                [% IF ( none ) %]
275
                [% IF ( none ) %]
275
                    <label for="sex-none"><input type="radio" name="sex" id="sex-none" value=""  checked="checked" /> None specified</label>
276
                    <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> [% t('None specified') %]</label>
276
                [% ELSE %]
277
                [% ELSE %]
277
                    <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label>
278
                    <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> [% t('None specified') %]</label>
278
                [% END %]
279
                [% END %]
279
            [% ELSE %]
280
            [% ELSE %]
280
                <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
281
                <label for="sex-female">[% t('Female') %] </label><input type="radio" name="sex" id="sex-female" value="F" />
281
                <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
282
                <label for="sex-male">[% t('Male') %] </label><input type="radio" name="sex" id="sex-male" value="M" />
282
                <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
283
                <label for="sex-none">[% t('None specified') %] </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
283
            [% END %]
284
            [% END %]
284
285
285
       	</li>
286
       	</li>
Lines 290-301 Link Here
290
[% END # hide fieldset %]
291
[% END # hide fieldset %]
291
292
292
[% IF ( showguarantor ) %]
293
[% IF ( showguarantor ) %]
293
    <input type="hidden" id="guarantorid" name="guarantorid"   value="[% guarantorid %]" />
294
    <input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
294
    [% UNLESS step_6 %]
295
    [% UNLESS step_6 %]
295
        <input type="hidden" name="branchcode" value="[% branchcode %]" />
296
        <input type="hidden" name="branchcode" value="[% branchcode %]" />
296
    [% END %]
297
    [% END %]
297
    <fieldset id="memberentry_guarantor" class="rows">
298
    <fieldset id="memberentry_guarantor" class="rows">
298
        <legend id="guarantor_lgd">Guarantor information</legend>
299
        <legend id="guarantor_lgd">[% t('Guarantor information') %]</legend>
299
        <ol>
300
        <ol>
300
[% IF ( P ) %]
301
[% IF ( P ) %]
301
	        [% IF ( guarantorid ) %]
302
	        [% IF ( guarantorid ) %]
Lines 303-312 Link Here
303
	        [% ELSE %]
304
	        [% ELSE %]
304
	        <li id="contact-details" style="display: none">
305
	        <li id="contact-details" style="display: none">
305
	        [% END %]
306
	        [% END %]
306
	            <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
307
	            <span class="label">[% t('Organization #:') %]</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
307
	        </li>
308
	        </li>
308
	        <li>
309
	        <li>
309
	            <label for="contactname">Organization name: </label>
310
	            <label for="contactname">[% t('Organization name:') %] </label>
310
	            [% IF ( guarantorid ) %]
311
	            [% IF ( guarantorid ) %]
311
	            <span>[% contactname %]</span>
312
	            <span>[% contactname %]</span>
312
	            <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
313
	            <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
Lines 321-327 Link Here
321
 [% ELSE %]
322
 [% ELSE %]
322
 <li id="contact-details" style="display: none">
323
 <li id="contact-details" style="display: none">
323
 [% END %]
324
 [% END %]
324
     <span class="label">Patron #:</span>
325
     <span class="label">[% t('Patron #:') %]</span>
325
     [% IF guarantorid %]
326
     [% IF guarantorid %]
326
        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
327
        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
327
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid | html %]</a>
328
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid | html %]</a>
Lines 332-338 Link Here
332
 </li>
333
 </li>
333
        [% UNLESS nocontactname %]
334
        [% UNLESS nocontactname %]
334
 <li>
335
 <li>
335
     <label for="contactname">Surname: </label>
336
     <label for="contactname">[% t('Surname:') %] </label>
336
     [% IF ( guarantorid ) %]
337
     [% IF ( guarantorid ) %]
337
     <span>[% contactname %]</span>
338
     <span>[% contactname %]</span>
338
     <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
339
     <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
Lines 343-349 Link Here
343
        [% END %]
344
        [% END %]
344
        [% UNLESS nocontactfirstname %]
345
        [% UNLESS nocontactfirstname %]
345
 <li>
346
 <li>
346
     <label for="contactfirstname">First name: </label>
347
     <label for="contactfirstname">[% t('First name:') %] </label>
347
     [% IF ( guarantorid ) %]
348
     [% IF ( guarantorid ) %]
348
     <span>[% contactfirstname %]</span>
349
     <span>[% contactfirstname %]</span>
349
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname | html %]" />
350
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname | html %]" />
Lines 354-364 Link Here
354
        [% END %]
355
        [% END %]
355
 [% IF ( relshiploop ) %]
356
 [% IF ( relshiploop ) %]
356
 <li>
357
 <li>
357
     <label for="relationship">Relationship: </label>
358
     <label for="relationship">[% t('Relationship:') %] </label>
358
     <select name="relationship" id="relationship" >
359
     <select name="relationship" id="relationship">
359
         [% FOREACH relshiploo IN relshiploop %]
360
         [% FOREACH relshiploo IN relshiploop %]
360
         [% IF ( relshiploo.selected ) %]
361
         [% IF ( relshiploo.selected ) %]
361
         <option value="[% relshiploo.relationship %]" selected="selected" >[% relshiploo.relationship %]</option>
362
         <option value="[% relshiploo.relationship %]" selected="selected">[% relshiploo.relationship %]</option>
362
         [% ELSE %]
363
         [% ELSE %]
363
         <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
364
         <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
364
         [% END %]
365
         [% END %]
Lines 369-375 Link Here
369
 [% END %]
370
 [% END %]
370
[% END %]
371
[% END %]
371
        <li>
372
        <li>
372
            <span class="label">&nbsp;</span>
373
            <span class="label"> </span>
373
            [% IF ( guarantorid ) %]
374
            [% IF ( guarantorid ) %]
374
            <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
375
            <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
375
            [% ELSE %]
376
            [% ELSE %]
Lines 379-395 Link Here
379
        </li>
380
        </li>
380
    [% IF guarantorid && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %]
381
    [% IF guarantorid && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %]
381
        <li>
382
        <li>
382
            <label for="privacy_guarantor_checkouts">Show checkouts to guarantor</label>
383
            <label for="privacy_guarantor_checkouts">[% t('Show checkouts to guarantor') %]</label>
383
            <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
384
            <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
384
                [% IF privacy_guarantor_checkouts %]
385
                [% IF privacy_guarantor_checkouts %]
385
                    <option value="0">No</option>
386
                    <option value="0">[% t('No') %]</option>
386
                    <option value="1" selected>Yes</option>
387
                    <option value="1" selected="">[% t('Yes') %]</option>
387
                [% ELSE %]
388
                [% ELSE %]
388
                    <option value="0" selected>No</option>
389
                    <option value="0" selected="">[% t('No') %]</option>
389
                    <option value="1">Yes</option>
390
                    <option value="1">[% t('Yes') %]</option>
390
                [% END %]
391
                [% END %]
391
            </select>
392
            </select>
392
            <div class="hint">Allow guarantor of this patron to view this patron's checkouts from the OPAC</div>
393
            <div class="hint">[% t('Allow guarantor of this patron to view this patron\'s checkouts from the OPAC') %]</div>
393
        </li>
394
        </li>
394
    [% END %]
395
    [% END %]
395
        </ol>
396
        </ol>
Lines 406-412 Link Here
406
407
407
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
408
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
408
  <fieldset class="rows" id="memberentry_contact">
409
  <fieldset class="rows" id="memberentry_contact">
409
    <legend id="contact_lgd">Contact</legend><ol>
410
    <legend id="contact_lgd">[% t('Contact') %]</legend><ol>
410
        [% UNLESS nophone %]
411
        [% UNLESS nophone %]
411
      <li>
412
      <li>
412
      [% IF ( mandatoryphone ) %]
413
      [% IF ( mandatoryphone ) %]
Lines 414-422 Link Here
414
      [% ELSE %]
415
      [% ELSE %]
415
      <label for="phone">
416
      <label for="phone">
416
      [% END %]
417
      [% END %]
417
      Primary phone: </label>
418
      [% t('Primary phone:') %] </label>
418
        <input type="text" id="phone" name="phone" value="[% phone | html %]" />
419
        <input type="text" id="phone" name="phone" value="[% phone | html %]" />
419
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
420
	  [% IF ( mandatoryphone ) %]<span class="required">[% t('Required') %]</span>[% END %]<div class="hint">[% t('Shows on transit slips') %]</div>
420
421
421
    </li>
422
    </li>
422
        [% END %]
423
        [% END %]
Lines 427-435 Link Here
427
      [% ELSE %]
428
      [% ELSE %]
428
      <label for="phonepro">
429
      <label for="phonepro">
429
      [% END %]
430
      [% END %]
430
      Secondary phone: </label>
431
      [% t('Secondary phone:') %] </label>
431
    <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" />
432
    <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" />
432
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
433
	  [% IF ( mandatoryphonepro ) %]<span class="required">[% t('Required') %]</span>[% END %]
433
    </li>
434
    </li>
434
        [% END %]
435
        [% END %]
435
        [% UNLESS nomobile %]
436
        [% UNLESS nomobile %]
Lines 439-447 Link Here
439
      [% ELSE %]
440
      [% ELSE %]
440
      <label for="mobile">
441
      <label for="mobile">
441
      [% END %]
442
      [% END %]
442
      Other phone: </label>
443
      [% t('Other phone:') %] </label>
443
        <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" />
444
        <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" />
444
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
445
	  [% IF ( mandatorymobile ) %]<span class="required">[% t('Required') %]</span>[% END %]
445
    </li>
446
    </li>
446
        [% END %]
447
        [% END %]
447
        [% UNLESS noemail %]
448
        [% UNLESS noemail %]
Lines 451-459 Link Here
451
      [% ELSE %]
452
      [% ELSE %]
452
      <label for="email">
453
      <label for="email">
453
      [% END %]
454
      [% END %]
454
      Primary email: </label>
455
      [% t('Primary email:') %] </label>
455
        <input type="text" id="email" name="email" size="45" value="[% email | html %]" />
456
        <input type="text" id="email" name="email" size="45" value="[% email | html %]" />
456
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
457
	  [% IF ( mandatoryemail ) %]<span class="required">[% t('Required') %]</span>[% END %]<div class="hint">[% t('Shows on transit slips') %]</div>
457
458
458
    </li>
459
    </li>
459
        [% END %]
460
        [% END %]
Lines 464-472 Link Here
464
      [% ELSE %]
465
      [% ELSE %]
465
      <label for="emailpro">
466
      <label for="emailpro">
466
      [% END %]
467
      [% END %]
467
      Secondary email: </label>
468
      [% t('Secondary email:') %] </label>
468
        <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" />
469
        <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" />
469
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
470
	  [% IF ( mandatoryemailpro ) %]<span class="required">[% t('Required') %]</span>[% END %]
470
    </li>
471
    </li>
471
        [% END %]
472
        [% END %]
472
        [% UNLESS nofax %]
473
        [% UNLESS nofax %]
Lines 476-484 Link Here
476
      [% ELSE %]
477
      [% ELSE %]
477
      <label for="fax">
478
      <label for="fax">
478
      [% END %]
479
      [% END %]
479
      Fax: </label>
480
      [% t('Fax:') %] </label>
480
        <input type="text" id="fax" name="fax" value="[% fax | html %]" />
481
        <input type="text" id="fax" name="fax" value="[% fax | html %]" />
481
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
482
	  [% IF ( mandatoryfax ) %]<span class="required">[% t('Required') %]</span>[% END %]
482
    </li>
483
    </li>
483
        [% END %]
484
        [% END %]
484
	</ol>
485
	</ol>
Lines 511-517 Link Here
511
512
512
  [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
513
  [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
513
  <fieldset class="rows" id="memberentry_library_management">
514
  <fieldset class="rows" id="memberentry_library_management">
514
    <legend id="library_management_lgd">Library management</legend><ol>
515
    <legend id="library_management_lgd">[% t('Library management') %]</legend><ol>
515
      [% UNLESS nocardnumber %]
516
      [% UNLESS nocardnumber %]
516
        <li>
517
        <li>
517
          [% IF mandatorycardnumber %]
518
          [% IF mandatorycardnumber %]
Lines 519-549 Link Here
519
          [% ELSE %]
520
          [% ELSE %]
520
            <label for="cardnumber" class="validated">
521
            <label for="cardnumber" class="validated">
521
          [% END %]
522
          [% END %]
522
            Card number: </label>
523
            [% t('Card number:') %] </label>
523
524
524
          <!-- NOTE: div.hint closing tag isn't on the same line -->
525
          <!-- NOTE: div.hint closing tag isn't on the same line -->
525
          [% IF minlength_cardnumber == maxlength_cardnumber %]
526
          [% IF minlength_cardnumber == maxlength_cardnumber %]
526
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
527
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
527
                [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span>
528
                [% IF mandatorycardnumber %]<span class="required">[% t('Required') %]</span>[% END %]<span id="cn_max" class="required">[% t('Card number must not be more than') %] [% maxlength_cardnumber %] [% t('characters.') %]</span>
528
                <div class="hint">Card number must be exactly [% minlength_cardnumber %] characters.
529
                <div class="hint">[% t('Card number must be exactly') %] [% minlength_cardnumber %] [% t('characters.') %]
529
          [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
530
          [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
530
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
531
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
531
                [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span>
532
                [% IF mandatorycardnumber %]<span class="required">[% t('Required') %]</span>[% END %]<span id="cn_max" class="required">[% t('Card number must not be more than') %] [% maxlength_cardnumber %] [% t('characters.') %]</span>
532
                <div class="hint">Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters.
533
                <div class="hint">[% t('Card number must be between') %] [% minlength_cardnumber %] [% t('and') %] [% maxlength_cardnumber %] [% t('characters.') %]
533
          [% ELSIF maxlength_cardnumber %]
534
          [% ELSIF maxlength_cardnumber %]
534
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber %]" />
535
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber %]" />
535
                [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span>
536
                [% IF mandatorycardnumber %]<span class="required">[% t('Required') %]</span>[% END %]<span id="cn_max" class="required">[% t('Card number must not be more than') %] [% maxlength_cardnumber %] [% t('characters.') %]</span>
536
                <div class="hint">Card number can be up to [% maxlength_cardnumber %] characters.
537
                <div class="hint">[% t('Card number can be up to') %] [% maxlength_cardnumber %] [% t('characters.') %]
537
          [% ELSE %]
538
          [% ELSE %]
538
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
539
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
539
                [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]
540
                [% IF mandatorycardnumber %]<span class="required">[% t('Required') %]</span>[% END %]
540
                <div class="hint">There is no minimum or maximum character length.
541
                <div class="hint">[% t('There is no minimum or maximum character length.') %]
541
          [% END %]
542
          [% END %]
542
          [% IF autoMemberNum %]
543
          [% IF autoMemberNum %]
543
                [% IF mandatorycardnumber %]
544
                [% IF mandatorycardnumber %]
544
                    <br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span>
545
                    <br /><span class="error">[% t('AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.') %]</span>
545
                [% ELSE %]
546
                [% ELSE %]
546
                    <br/>Leave blank for auto calc during registration
547
                    <br />[% t('Leave blank for auto calc during registration') %]
547
                [% END %]
548
                [% END %]
548
          [% END %]
549
          [% END %]
549
                </div><!--/hint div -->
550
                </div><!--/hint div -->
Lines 551-575 Link Here
551
      [% END %]
552
      [% END %]
552
      [% UNLESS nobranchcode %]
553
      [% UNLESS nobranchcode %]
553
    <li>
554
    <li>
554
        <label for="libraries" class="required">Library:</label>
555
        <label for="libraries" class="required">[% t('Library:') %]</label>
555
        <select name="branchcode" size="1" id="libraries">
556
        <select name="branchcode" size="1" id="libraries">
556
            [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
557
            [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
557
        </select>
558
        </select>
558
        <span class="required">Required</span>
559
        <span class="required">[% t('Required') %]</span>
559
    </li>
560
    </li>
560
        [% END %]
561
        [% END %]
561
    <li>
562
    <li>
562
        <label for="categorycode_entry" class="required">Category: </label>
563
        <label for="categorycode_entry" class="required">[% t('Category:') %] </label>
563
        <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);">
564
        <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);">
564
        [% FOREACH typeloo IN typeloop %]
565
        [% FOREACH typeloo IN typeloop %]
565
            [% FOREACH categoryloo IN typeloo.categoryloop %]
566
            [% FOREACH categoryloo IN typeloo.categoryloop %]
566
                [% IF ( loop.first ) %]
567
                [% IF ( loop.first ) %]
567
                    [% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %]
568
                    [% IF ( typeloo.typename_C ) %]<optgroup label="[% t('Child') %]">[% END %]
568
                    [% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %]
569
                    [% IF ( typeloo.typename_A ) %]<optgroup label="[% t('Adult') %]">[% END %]
569
                    [% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %]
570
                    [% IF ( typeloo.typename_S ) %]<optgroup label="[% t('Staff') %]">[% END %]
570
                    [% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %]
571
                    [% IF ( typeloo.typename_I ) %]<optgroup label="[% t('Organization') %]">[% END %]
571
                    [% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %]
572
                    [% IF ( typeloo.typename_P ) %]<optgroup label="[% t('Professional') %]">[% END %]
572
                    [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %]
573
                    [% IF ( typeloo.typename_X ) %]<optgroup label="[% t('Statistical') %]">[% END %]
573
                [% END %]
574
                [% END %]
574
                [% IF ( categoryloo.categorycodeselected ) %]
575
                [% IF ( categoryloo.categorycodeselected ) %]
575
                    <option value="[% categoryloo.categorycode %]" selected="selected" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
576
                    <option value="[% categoryloo.categorycode %]" selected="selected" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
Lines 582-588 Link Here
582
            [% END %]
583
            [% END %]
583
       [% END %]
584
       [% END %]
584
       </select>
585
       </select>
585
       <span class="required">Required</span>
586
       <span class="required">[% t('Required') %]</span>
586
    </li>
587
    </li>
587
        [% UNLESS nosort1 %]
588
        [% UNLESS nosort1 %]
588
    <li>
589
    <li>
Lines 591-599 Link Here
591
      [% ELSE %]
592
      [% ELSE %]
592
        <label for="sort1">
593
        <label for="sort1">
593
      [% END %]
594
      [% END %]
594
      Sort 1: </label>
595
      [% t('Sort 1:') %] </label>
595
      [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %]
596
      [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %]
596
      [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
597
      [% IF ( mandatorysort1 ) %]<span class="required">[% t('Required') %]</span>[% END %]
597
    </li>
598
    </li>
598
        [% END %]
599
        [% END %]
599
        [% UNLESS nosort2 %]
600
        [% UNLESS nosort2 %]
Lines 603-649 Link Here
603
    [% ELSE %]
604
    [% ELSE %]
604
    <label for="sort2">
605
    <label for="sort2">
605
    [% END %]
606
    [% END %]
606
    Sort 2: </label>
607
    [% t('Sort 2:') %] </label>
607
    [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %]
608
    [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %]
608
    [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
609
    [% IF ( mandatorysort2 ) %]<span class="required">[% t('Required') %]</span>[% END %]
609
    </li>
610
    </li>
610
        [% END %]
611
        [% END %]
611
    [% IF ( Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 ) %]
612
    [% IF ( Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 ) %]
612
        <li>
613
        <li>
613
            <label for="sort2">Sync with the Norwegian national patron database:</label>
614
            <label for="sort2">[% t('Sync with the Norwegian national patron database:') %]</label>
614
            [% IF ( sync == 0 ) %]
615
            [% IF ( sync == 0 ) %]
615
                <input type="radio" id="sync" name="sync" value="1"> Yes
616
                <input type="radio" id="sync" name="sync" value="1"> [% t('Yes') %]
616
                <input type="radio" id="sync" name="sync" value="0" checked> No
617
                <input type="radio" id="sync" name="sync" value="0" checked=""> [% t('No') %]
617
            [% ELSE %]
618
            [% ELSE %]
618
                <input type="radio" id="sync" name="sync" value="1" checked> Yes
619
                <input type="radio" id="sync" name="sync" value="1" checked=""> [% t('Yes') %]
619
                <input type="radio" id="sync" name="sync" value="0"> No
620
                <input type="radio" id="sync" name="sync" value="0"> [% t('No') %]
620
            [% END %]
621
            [% END %]
621
        </li>
622
        </li>
622
    [% END %]
623
    [% END %]
623
    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
624
    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
624
      <li><label for="checkprevcheckout">Check for previous checkouts: </label>
625
      <li><label for="checkprevcheckout">[% t('Check for previous checkouts:') %] </label>
625
        <select name="checkprevcheckout" id="checkprevcheckout">
626
        <select name="checkprevcheckout" id="checkprevcheckout">
626
        [% IF ( checkprevcheckout == 'yes' ) %]
627
        [% IF ( checkprevcheckout == 'yes' ) %]
627
          <option value="yes" selected="selected">Yes if settings allow it</option>
628
          <option value="yes" selected="selected">[% t('Yes if settings allow it') %]</option>
628
          <option value="no">No if settings allow it</option>
629
          <option value="no">[% t('No if settings allow it') %]</option>
629
          <option value="inherit">Inherit from settings</option>
630
          <option value="inherit">[% t('Inherit from settings') %]</option>
630
        [% ELSIF ( checkprevcheckout == 'no' ) %]
631
        [% ELSIF ( checkprevcheckout == 'no' ) %]
631
          <option value="yes">Yes if settings allow it</option>
632
          <option value="yes">[% t('Yes if settings allow it') %]</option>
632
          <option value="no" selected="selected">No if settings allow it</option>
633
          <option value="no" selected="selected">[% t('No if settings allow it') %]</option>
633
          <option value="inherit">Inherit from settings</option>
634
          <option value="inherit">[% t('Inherit from settings') %]</option>
634
        [% ELSE %]
635
        [% ELSE %]
635
          <option value="yes">Yes if settings allow it</option>
636
          <option value="yes">[% t('Yes if settings allow it') %]</option>
636
          <option value="no">No if settings allow it</option>
637
          <option value="no">[% t('No if settings allow it') %]</option>
637
          <option value="inherit" selected="selected">Inherit from settings</option>
638
          <option value="inherit" selected="selected">[% t('Inherit from settings') %]</option>
638
        [% END %]
639
        [% END %]
639
        </select>
640
        </select>
640
       </li>
641
       </li>
641
     [% END %]
642
     [% END %]
642
    [% IF Koha.Preference('TranslateNotices') %]
643
    [% IF Koha.Preference('TranslateNotices') %]
643
        <li>
644
        <li>
644
            <label for="lang">Preferred language for notices: </label>
645
            <label for="lang">[% t('Preferred language for notices:') %] </label>
645
            <select id="lang" name="lang">
646
            <select id="lang" name="lang">
646
                <option value="default">Default</option>
647
                <option value="default">[% t('Default') %]</option>
647
                [% FOR language IN languages %]
648
                [% FOR language IN languages %]
648
                    [% FOR sublanguage IN language.sublanguages_loop %]
649
                    [% FOR sublanguage IN language.sublanguages_loop %]
649
                        [% IF language.plural %]
650
                        [% IF language.plural %]
Lines 668-674 Link Here
668
  </fieldset>
669
  </fieldset>
669
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
670
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
670
	<fieldset class="rows" id="memberentry_subscription">
671
	<fieldset class="rows" id="memberentry_subscription">
671
	<legend id="library_setup_lgd">Library set-up</legend><ol>
672
	<legend id="library_setup_lgd">[% t('Library set-up') %]</legend><ol>
672
        [% UNLESS nodateenrolled %]
673
        [% UNLESS nodateenrolled %]
673
		<li>
674
		<li>
674
			[% IF ( mandatorydateenrolled ) %]
675
			[% IF ( mandatorydateenrolled ) %]
Lines 676-689 Link Here
676
			[% ELSE %]
677
			[% ELSE %]
677
            <label for="from">
678
            <label for="from">
678
			[% END %]
679
			[% END %]
679
			Registration date: </label>
680
			[% t('Registration date:') %] </label>
680
            [% IF ( dateformat == "metric" ) %]
681
            [% IF ( dateformat == "metric" ) %]
681
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
682
                <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
682
            [% ELSE %]
683
            [% ELSE %]
683
                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
684
                <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
684
            [% END %]
685
            [% END %]
685
		[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
686
		[% IF ( mandatorydateenrolled ) %]<span class="required">[% t('Required') %]</span>[% END %]
686
		[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
687
		[% IF ( ERROR_dateenrolled ) %]<span class="required">[% t('(Error)') %]</span>[% END %]
687
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
688
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
688
		</li>
689
		</li>
689
        [% END %]
690
        [% END %]
Lines 697-718 Link Here
697
			[% ELSE %]
698
			[% ELSE %]
698
            <label for="to">
699
            <label for="to">
699
			[% END %]
700
			[% END %]
700
			Expiry date (leave blank for auto calc): </label>
701
			[% t('Expiry date (leave blank for auto calc):') %] </label>
701
            [% IF ( dateformat == "metric" ) %]
702
            [% IF ( dateformat == "metric" ) %]
702
				[% UNLESS ( opadd ) %]
703
				[% UNLESS ( opadd ) %]
703
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
704
                    <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
704
				[% ELSE %]
705
				[% ELSE %]
705
                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
706
                    <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
706
				[% END %]
707
				[% END %]
707
			[% ELSE %]
708
			[% ELSE %]
708
				[% UNLESS ( opadd ) %]
709
				[% UNLESS ( opadd ) %]
709
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
710
                <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
710
				[% ELSE %]
711
				[% ELSE %]
711
                <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry %]" class="datepickerto" />
712
                <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" class="datepickerto" />
712
				[% END %]
713
				[% END %]
713
			[% END %]
714
			[% END %]
714
		[% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
715
		[% IF ( mandatorydateexpiry ) %]<span class="required">[% t('Required') %]</span>[% END %]
715
		[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
716
		[% IF ( ERROR_dateexpiry ) %]<span class="required">[% t('(Error)') %]</span>[% END %]
716
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
717
		<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
717
		</li>
718
		</li>
718
        [% UNLESS noopacnote %]
719
        [% UNLESS noopacnote %]
Lines 722-731 Link Here
722
			[% ELSE %]
723
			[% ELSE %]
723
				<label for="opacnote">
724
				<label for="opacnote">
724
            [% END %]
725
            [% END %]
725
			OPAC note: </label>
726
			[% t('OPAC note:') %] </label>
726
            <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea>
727
            <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea>
727
			<div class="hint">This message appears on this patron's user page in the OPAC</div>
728
			<div class="hint">[% t('This message appears on this patron\'s user page in the OPAC') %]</div>
728
	  [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
729
	  [% IF ( mandatoryopacnote ) %]<span class="required">[% t('Required') %]</span>[% END %]
729
		</li>
730
		</li>
730
        [% END %]
731
        [% END %]
731
        [% UNLESS noborrowernotes %]
732
        [% UNLESS noborrowernotes %]
Lines 735-744 Link Here
735
			[% ELSE %]
736
			[% ELSE %]
736
				<label for="borrowernotes">
737
				<label for="borrowernotes">
737
			[% END %]
738
			[% END %]
738
			Circulation note: </label>
739
			[% t('Circulation note:') %] </label>
739
            <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea>
740
            <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea>
740
			<div class="hint">This message displays when checking out to this patron</div>
741
			<div class="hint">[% t('This message displays when checking out to this patron') %]</div>
741
	  [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
742
	  [% IF ( mandatoryborrowernotes ) %]<span class="required">[% t('Required') %]</span>[% END %]
742
		</li>
743
		</li>
743
        [% END %]
744
        [% END %]
744
		</ol>
745
		</ol>
Lines 747-753 Link Here
747
748
748
    [% UNLESS nouserid && nopassword %]
749
    [% UNLESS nouserid && nopassword %]
749
	<fieldset class="rows" id="memberentry_userid">
750
	<fieldset class="rows" id="memberentry_userid">
750
        <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
751
        <legend id="opac_staff_login_lgd">[% t('OPAC/Staff login') %]</legend><ol>
751
        [% UNLESS nouserid %]
752
        [% UNLESS nouserid %]
752
		<li>
753
		<li>
753
			[% IF ( mandatoryuserid ) %]
754
			[% IF ( mandatoryuserid ) %]
Lines 755-761 Link Here
755
			[% ELSE %]
756
			[% ELSE %]
756
			<label for="userid">
757
			<label for="userid">
757
			[% END %]
758
			[% END %]
758
			Username: </label>
759
			[% t('Username:') %] </label>
759
760
760
[% IF ( NoUpdateLogin ) %]
761
[% IF ( NoUpdateLogin ) %]
761
	[% IF ( opduplicate ) %]
762
	[% IF ( opduplicate ) %]
Lines 774-780 Link Here
774
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
775
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
775
<input type="text" disabled="disabled" style="display:none" />
776
<input type="text" disabled="disabled" style="display:none" />
776
777
777
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
778
	  [% IF ( mandatoryuserid ) %]<span class="required">[% t('Required') %]</span>[% END %]
778
		</li>
779
		</li>
779
        [%END %]
780
        [%END %]
780
        [% UNLESS nopassword %]
781
        [% UNLESS nopassword %]
Lines 784-796 Link Here
784
			[% ELSE %]
785
			[% ELSE %]
785
			<label for="password">
786
			<label for="password">
786
			[% END %]
787
			[% END %]
787
			Password: </label>
788
			[% t('Password:') %] </label>
788
			[% IF ( opadd ) %]
789
			[% IF ( opadd ) %]
789
			[% IF ( NoUpdateLogin ) %]
790
			[% IF ( NoUpdateLogin ) %]
790
				[% IF ( opduplicate ) %]
791
				[% IF ( opduplicate ) %]
791
					<input type="password" id="password" name="password" size="20"  disabled="disabled" />
792
					<input type="password" id="password" name="password" size="20" disabled="disabled" />
792
				[% ELSE %]
793
				[% ELSE %]
793
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password %]" />
794
					<input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password %]" />
794
				[% END %]
795
				[% END %]
795
[% ELSE %]
796
[% ELSE %]
796
				[% IF ( opduplicate ) %]
797
				[% IF ( opduplicate ) %]
Lines 802-808 Link Here
802
			[% ELSE %]
803
			[% ELSE %]
803
			[% IF ( password ) %]
804
			[% IF ( password ) %]
804
				[% IF ( NoUpdateLogin ) %]
805
				[% IF ( NoUpdateLogin ) %]
805
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
806
					<input type="password" id="password" name="password" size="20" disabled="disabled" value="****" />
806
				[% ELSE %]
807
				[% ELSE %]
807
					[% IF ( opduplicate ) %]
808
					[% IF ( opduplicate ) %]
808
						<input type="password" id="password" name="password" size="20" />
809
						<input type="password" id="password" name="password" size="20" />
Lines 812-828 Link Here
812
				[% END %]
813
				[% END %]
813
			[% ELSE %]
814
			[% ELSE %]
814
				[% IF ( NoUpdateLogin ) %]
815
				[% IF ( NoUpdateLogin ) %]
815
					<input type="password" id="password" name="password" size="20"  disabled="disabled" value="" />
816
					<input type="password" id="password" name="password" size="20" disabled="disabled" value="" />
816
				[% ELSE %]
817
				[% ELSE %]
817
					<input type="password" id="password" name="password" size="20" value="" />
818
					<input type="password" id="password" name="password" size="20" value="" />
818
				[% END %]
819
				[% END %]
819
			[% END %]
820
			[% END %]
820
			[% END %]
821
			[% END %]
821
            [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %]
822
            [% IF ( mandatorypassword ) %]<span class="required">[% t('Required') %]</span>[% END %]
822
            [% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %]
823
            [% IF ( ERROR_password_too_short ) %]<span class="required">[% t('Password is too short') %]</span>[% END %]
823
            [% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %]
824
            [% IF ( ERROR_password_too_weak ) %]<span class="required">[% t('Password is too weak') %]</span>[% END %]
824
            [% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %]
825
            [% IF ( ERROR_password_has_whitespaces ) %]<span class="required">[% t('Password has leading or trailing whitespaces') %]</span>[% END %]
825
            <div class="hint">Minimum password length: [% minPasswordLength %]</div>
826
            <div class="hint">[% t('Minimum password length:') %] [% minPasswordLength %]</div>
826
		</li>
827
		</li>
827
		<li>
828
		<li>
828
			[% IF ( mandatorypassword ) %]
829
			[% IF ( mandatorypassword ) %]
Lines 830-842 Link Here
830
			[% ELSE %]
831
			[% ELSE %]
831
			<label for="password2">
832
			<label for="password2">
832
			[% END %]
833
			[% END %]
833
			Confirm password: </label>
834
			[% t('Confirm password:') %] </label>
834
			[% IF ( opadd ) %]
835
			[% IF ( opadd ) %]
835
			[% IF ( NoUpdateLogin ) %]
836
			[% IF ( NoUpdateLogin ) %]
836
				[% IF ( opduplicate ) %]
837
				[% IF ( opduplicate ) %]
837
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
838
					<input type="password" id="password2" name="password2" size="20" disabled="disabled" />
838
				[% ELSE %]
839
				[% ELSE %]
839
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password %]" />
840
					<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password %]" />
840
				[% END %]
841
				[% END %]
841
[% ELSE %]
842
[% ELSE %]
842
				[% IF ( opduplicate ) %]
843
				[% IF ( opduplicate ) %]
Lines 848-854 Link Here
848
			[% ELSE %]
849
			[% ELSE %]
849
			[% IF ( password ) %]
850
			[% IF ( password ) %]
850
				[% IF ( NoUpdateLogin ) %]
851
				[% IF ( NoUpdateLogin ) %]
851
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
852
					<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" />
852
				[% ELSE %]
853
				[% ELSE %]
853
					[% IF ( opduplicate ) %]
854
					[% IF ( opduplicate ) %]
854
						<input type="password" id="password2" name="password2" size="20" />
855
						<input type="password" id="password2" name="password2" size="20" />
Lines 858-870 Link Here
858
				[% END %]
859
				[% END %]
859
			[% ELSE %]
860
			[% ELSE %]
860
				[% IF ( NoUpdateLogin ) %]
861
				[% IF ( NoUpdateLogin ) %]
861
					<input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="" />
862
					<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" />
862
				[% ELSE %]
863
				[% ELSE %]
863
					<input type="password" id="password2" name="password2" size="20" value="" />
864
					<input type="password" id="password2" name="password2" size="20" value="" />
864
				[% END %]
865
				[% END %]
865
			[% END %]
866
			[% END %]
866
			[% END %]
867
			[% END %]
867
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
868
	  [% IF ( mandatorypassword ) %]<span class="required">[% t('Required') %]</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">[% t('Passwords do not match') %]</span>[% END %]
868
		</li>
869
		</li>
869
		</ol>
870
		</ol>
870
		</fieldset>
871
		</fieldset>
Lines 872-883 Link Here
872
		<!--this zones are not necessary in modif mode -->
873
		<!--this zones are not necessary in modif mode -->
873
        [% UNLESS ( opadd || opduplicate ) %]
874
        [% UNLESS ( opadd || opduplicate ) %]
874
        <fieldset class="rows" id="memberentry_account_flags">
875
        <fieldset class="rows" id="memberentry_account_flags">
875
            <legend id="account_flags_lgd">Patron account flags</legend>
876
            <legend id="account_flags_lgd">[% t('Patron account flags') %]</legend>
876
			<ol class="radio">
877
			<ol class="radio">
877
			[% FOREACH flagloo IN flagloop %]
878
			[% FOREACH flagloo IN flagloop %]
878
				<li><label class="radio" for="yes[% flagloo.name %]">
879
				<li><label class="radio" for="yes[% flagloo.name %]">
879
                [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
880
                [% IF ( flagloo.key == 'gonenoaddress' ) %][% t('Gone no address:') %][% END %]
880
                [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
881
                [% IF ( flagloo.key == 'lost' ) %][% t('Lost card:') %][% END %]
881
                </label>
882
                </label>
882
                [% IF CAN_user_circulate_manage_restrictions %]
883
                [% IF CAN_user_circulate_manage_restrictions %]
883
                            <label for="yes[% flagloo.name %]">
884
                            <label for="yes[% flagloo.name %]">
Lines 886-901 Link Here
886
				[% ELSE %]
887
				[% ELSE %]
887
				<input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
888
				<input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
888
				[% END %]
889
				[% END %]
889
                            Yes </label>
890
                            [% t('Yes') %] </label>
890
                            <label for="no[% flagloo.name %]">
891
                            <label for="no[% flagloo.name %]">
891
				[% IF ( flagloo.no ) %]
892
				[% IF ( flagloo.no ) %]
892
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
893
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked" />
893
				[% ELSE %]
894
				[% ELSE %]
894
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
895
				<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
895
				[% END %]
896
				[% END %]
896
                            No </label>
897
                            [% t('No') %] </label>
897
                [% ELSE %]
898
                [% ELSE %]
898
                  [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
899
                  [% IF flagloo.yes %][% t('Yes') %][% ELSE %][% t('No') %][% END %]
899
                [% END %]
900
                [% END %]
900
901
901
            </li>
902
            </li>
Lines 905-922 Link Here
905
			</fieldset>
906
			</fieldset>
906
907
907
              <fieldset class="rows" id="memberentry_restrictions">
908
              <fieldset class="rows" id="memberentry_restrictions">
908
                <legend id="restrictions_lgd">Patron restrictions</legend>
909
                <legend id="restrictions_lgd">[% t('Patron restrictions') %]</legend>
909
910
910
                [% IF ( debarments ) %]
911
                [% IF ( debarments ) %]
911
                    <table>
912
                    <table>
912
                        <thead>
913
                        <thead>
913
                            <tr>
914
                            <tr>
914
                                 <th>Type</th>
915
                                 <th>[% t('Type') %]</th>
915
                                 <th>Comment</th>
916
                                 <th>[% t('Comment') %]</th>
916
                                 <th>Expiration</th>
917
                                 <th>[% t('Expiration') %]</th>
917
                                 <th>Created</th>
918
                                 <th>[% t('Created') %]</th>
918
                                 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
919
                                 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
919
                                   <th>Remove?</th>
920
                                   <th>[% t('Remove?') %]</th>
920
                                 [% END %]
921
                                 [% END %]
921
                            </tr>
922
                            </tr>
922
                        </thead>
923
                        </thead>
Lines 927-938 Link Here
927
                                    <td>[% d.type %]</td>
928
                                    <td>[% d.type %]</td>
928
                                    <td>
929
                                    <td>
929
                                    [% IF d.comment.search('OVERDUES_PROCESS') %]
930
                                    [% IF d.comment.search('OVERDUES_PROCESS') %]
930
                                        Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %]
931
                                        [% t('Restriction added by overdues process') %] [% d.comment.remove('OVERDUES_PROCESS ') %]
931
                                    [% ELSE %]
932
                                    [% ELSE %]
932
                                        [% d.comment %]
933
                                        [% d.comment %]
933
                                    [% END %]
934
                                    [% END %]
934
                                    </td>
935
                                    </td>
935
                                    <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
936
                                    <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>[% t('Indefinite') %]</i> [% END %]</td>
936
                                    <td>[% d.created | $KohaDates %]</td>
937
                                    <td>[% d.created | $KohaDates %]</td>
937
                                    [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
938
                                    [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
938
                                      <td>
939
                                      <td>
Lines 944-965 Link Here
944
                        </tbody>
945
                        </tbody>
945
                    </table>
946
                    </table>
946
                [% ELSE %]
947
                [% ELSE %]
947
                    <p>Patron is currently unrestricted.</p>
948
                    <p>[% t('Patron is currently unrestricted.') %]</p>
948
                [% END %]
949
                [% END %]
949
950
950
                [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
951
                [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
951
                    <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
952
                    <p><a href="#" id="add_manual_restriction">[% t('Add manual restriction') %]</a></p>
952
                    <fieldset id="manual_restriction_form">
953
                    <fieldset id="manual_restriction_form">
953
                        <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
954
                        <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
954
                        <legend id="manual_restriction_lgd">Add manual restriction</legend>
955
                        <legend id="manual_restriction_lgd">[% t('Add manual restriction') %]</legend>
955
                        <ol>
956
                        <ol>
956
                            <li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li>
957
                            <li><label for="debarred_comment">[% t('Comment:') %] </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li>
957
                            <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" />
958
                            <li><label for="debarred_expiration">[% t('Expiration:') %] </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" />
958
                                    <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li>
959
                                    <a href="javascript:void(0)" onclick="$('#debarred_expiration').val('');">[% t('Clear date') %]</a></li>
959
960
960
                        </ol>
961
                        </ol>
961
                        <p>
962
                        <p>
962
                            <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a>
963
                            <a class="cancel" id="cancel_manual_restriction" href="#">[% t('Cancel') %]</a>
963
                        </p>
964
                        </p>
964
                    </fieldset>
965
                    </fieldset>
965
                [% END %]
966
                [% END %]
Lines 971-1018 Link Here
971
[% IF ( step_4 ) %]
972
[% IF ( step_4 ) %]
972
[% IF Koha.Preference('HouseboundModule') %]
973
[% IF Koha.Preference('HouseboundModule') %]
973
  <fieldset class="rows" id="memberentry_housebound_roles">
974
  <fieldset class="rows" id="memberentry_housebound_roles">
974
    <legend id="housebound_roles">Housebound roles</legend>
975
    <legend id="housebound_roles">[% t('Housebound roles') %]</legend>
975
    <ol class="radio">
976
    <ol class="radio">
976
      <li>
977
      <li>
977
        <label class="radio" for="housebound_chooser">
978
        <label class="radio" for="housebound_chooser">
978
          Chooser:
979
          [% t('Chooser:') %]
979
        </label>
980
        </label>
980
        [% IF ( housebound_role.housebound_chooser == 1 ) %]
981
        [% IF ( housebound_role.housebound_chooser == 1 ) %]
981
        <label for="yes_housebound_chooser">Yes </label>
982
        <label for="yes_housebound_chooser">[% t('Yes') %] </label>
982
        <input type="radio" id="yes_housebound_chooser"
983
        <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" />
983
               name="housebound_chooser" value="1"
984
        <label for="no_housebound_chooser">[% t('No') %] </label>
984
               checked="checked" />
985
        <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" />
985
        <label for="no_housebound_chooser">No </label>
986
        <input type="radio" id="no_housebound_chooser"
987
               name="housebound_chooser" value="0" />
988
        [% ELSE %]
986
        [% ELSE %]
989
        <label for="yes_housebound_chooser">Yes </label>
987
        <label for="yes_housebound_chooser">[% t('Yes') %] </label>
990
        <input type="radio" id="yes_housebound_chooser"
988
        <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" />
991
               name="housebound_chooser" value="1" />
989
        <label for="no_housebound_chooser">[% t('No') %] </label>
992
        <label for="no_housebound_chooser">No </label>
990
        <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" />
993
        <input type="radio" id="no_housebound_chooser"
994
               name="housebound_chooser" value="0"
995
               checked="checked" />
996
        [% END %]
991
        [% END %]
997
      </li>
992
      </li>
998
      <li>
993
      <li>
999
        <label class="radio" for="housebound_deliverer">Deliverer:</label>
994
        <label class="radio" for="housebound_deliverer">[% t('Deliverer:') %]</label>
1000
        [% IF ( housebound_role.housebound_deliverer == 1 ) %]
995
        [% IF ( housebound_role.housebound_deliverer == 1 ) %]
1001
        <label for="yes_housebound_deliverer">Yes </label>
996
        <label for="yes_housebound_deliverer">[% t('Yes') %] </label>
1002
        <input type="radio" id="yes_housebound_deliverer"
997
        <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" />
1003
               name="housebound_deliverer" value="1"
998
        <label for="no_housebound_deliverer">[% t('No') %] </label>
1004
               checked="checked" />
999
        <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" />
1005
        <label for="no_housebound_deliverer">No </label>
1006
        <input type="radio" id="no_housebound_deliverer"
1007
               name="housebound_deliverer" value="0" />
1008
        [% ELSE %]
1000
        [% ELSE %]
1009
        <label for="yes_housebound_deliverer">Yes </label>
1001
        <label for="yes_housebound_deliverer">[% t('Yes') %] </label>
1010
        <input type="radio" id="yes_housebound_deliverer"
1002
        <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" />
1011
               name="housebound_deliverer" value="1" />
1003
        <label for="no_housebound_deliverer">[% t('No') %] </label>
1012
        <label for="no_housebound_deliverer">No </label>
1004
        <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" />
1013
        <input type="radio" id="no_housebound_deliverer"
1014
               name="housebound_deliverer" value="0"
1015
               checked="checked" />
1016
        [% END %]
1005
        [% END %]
1017
      </li>
1006
      </li>
1018
    </ol>
1007
    </ol>
Lines 1020-1026 Link Here
1020
[% END # hide fieldset %]
1009
[% END # hide fieldset %]
1021
[% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1010
[% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1022
  <fieldset class="rows" id="memberentry_patron_attributes">
1011
  <fieldset class="rows" id="memberentry_patron_attributes">
1023
    <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend>
1012
    <legend id="patron_attributes_lgd">[% t('Additional attributes and identifiers') %]</legend>
1024
    <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1013
    <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1025
    [% FOREACH pa_loo IN patron_attributes %]
1014
    [% FOREACH pa_loo IN patron_attributes %]
1026
        [% IF pa_loo.class %]
1015
        [% IF pa_loo.class %]
Lines 1040-1046 Link Here
1040
                                            [% auth_val_loo.lib %]
1029
                                            [% auth_val_loo.lib %]
1041
                                        </option>
1030
                                        </option>
1042
                                    [% ELSE %]
1031
                                    [% ELSE %]
1043
                                        <option value="[% auth_val_loo.authorised_value %]" >
1032
                                        <option value="[% auth_val_loo.authorised_value %]">
1044
                                            [% auth_val_loo.lib %]
1033
                                            [% auth_val_loo.lib %]
1045
                                        </option>
1034
                                        </option>
1046
                                    [% END %]
1035
                                    [% END %]
Lines 1050-1058 Link Here
1050
                            <textarea rows="2" cols="30" id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">[% patron_attribute.value %]</textarea>
1039
                            <textarea rows="2" cols="30" id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">[% patron_attribute.value %]</textarea>
1051
                        [% END %]
1040
                        [% END %]
1052
                        <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" />
1041
                        <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" />
1053
                        <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1042
                        <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> [% t('Clear') %]</a>
1054
                        [% IF ( patron_attribute.repeatable ) %]
1043
                        [% IF ( patron_attribute.repeatable ) %]
1055
                        <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1044
                        <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> [% t('New') %]</a>
1056
                        [% END %]
1045
                        [% END %]
1057
                </li>
1046
                </li>
1058
            [% END %]
1047
            [% END %]
Lines 1064-1070 Link Here
1064
1053
1065
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1054
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1066
  <fieldset class="rows" id="memberentry_messaging_prefs">
1055
  <fieldset class="rows" id="memberentry_messaging_prefs">
1067
    <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1056
    <legend id="patron_messaging_prefs_lgd">[% t('Patron messaging preferences') %]</legend>
1068
    [% IF ( opadd ) %]
1057
    [% IF ( opadd ) %]
1069
    <!-- handle changing prefs if creating new patron and changing
1058
    <!-- handle changing prefs if creating new patron and changing
1070
         the patron category
1059
         the patron category
Lines 1114-1127 Link Here
1114
    <input type="hidden" name="setting_messaging_prefs" value="1" />
1103
    <input type="hidden" name="setting_messaging_prefs" value="1" />
1115
    [% INCLUDE 'messaging-preference-form.inc' %]
1104
    [% INCLUDE 'messaging-preference-form.inc' %]
1116
    [% IF ( SMSSendDriver ) %]
1105
    [% IF ( SMSSendDriver ) %]
1117
        <p><label for="SMSnumber">SMS number:</label>
1106
        <p><label for="SMSnumber">[% t('SMS number:') %]</label>
1118
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1107
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1119
        </p>
1108
        </p>
1120
        [% UNLESS nosms_provider_id %]
1109
        [% UNLESS nosms_provider_id %]
1121
        <p>
1110
        <p>
1122
            <label for="sms_provider_id">SMS provider:</label>
1111
            <label for="sms_provider_id">[% t('SMS provider:') %]</label>
1123
            <select id="sms_provider_id" name="sms_provider_id"/>
1112
            <select id="sms_provider_id" name="sms_provider_id" />
1124
                <option value="">Unknown</option>
1113
                <option value="">[% t('Unknown') %]</option>
1125
                [% FOREACH s IN sms_providers %]
1114
                [% FOREACH s IN sms_providers %]
1126
                    [% IF s.id == sms_provider_id %]
1115
                    [% IF s.id == sms_provider_id %]
1127
                        <option value="[% s.id %]" selected="selected">[% s.name %]</option>
1116
                        <option value="[% s.id %]" selected="selected">[% s.name %]</option>
Lines 1140-1146 Link Here
1140
1129
1141
[% IF quickadd && opadd  && !check_member %]
1130
[% IF quickadd && opadd  && !check_member %]
1142
    <form id="quick_add_form" class="toggler">
1131
    <form id="quick_add_form" class="toggler">
1143
        <fieldset class="rows quick_add"><legend>Quick add</legend>
1132
        <fieldset class="rows quick_add"><legend>[% t('Quick add') %]</legend>
1144
            <ol id="quick_add_list">
1133
            <ol id="quick_add_list">
1145
            </ol>
1134
            </ol>
1146
        </fieldset>
1135
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (-67 / +68 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
Lines 5-11 Link Here
5
[% USE KohaDates %]
6
[% USE KohaDates %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Patrons &rsaquo; Update patron records</title>
9
<title>[% t('Koha › Patrons › Update patron records') %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
11
12
Lines 15-67 Link Here
15
16
16
[% BLOCK display_names %]
17
[% BLOCK display_names %]
17
[% SWITCH field %]
18
[% SWITCH field %]
18
[% CASE 'branchcode'          %]<span>Home library (branchcode)</span>
19
[% CASE 'branchcode'          %]<span>[% t('Home library (branchcode)') %]</span>
19
[% CASE 'surname'             %]<span>Surname</span>
20
[% CASE 'surname'             %]<span>[% t('Surname') %]</span>
20
[% CASE 'firstname'           %]<span>First name</span>
21
[% CASE 'firstname'           %]<span>[% t('First name') %]</span>
21
[% CASE 'title'               %]<span>Title</span>
22
[% CASE 'title'               %]<span>[% t('Title') %]</span>
22
[% CASE 'othernames'          %]<span>Other names</span>
23
[% CASE 'othernames'          %]<span>[% t('Other names') %]</span>
23
[% CASE 'initials'            %]<span>Initials</span>
24
[% CASE 'initials'            %]<span>[% t('Initials') %]</span>
24
[% CASE 'streetnumber'        %]<span>Street number</span>
25
[% CASE 'streetnumber'        %]<span>[% t('Street number') %]</span>
25
[% CASE 'streettype'          %]<span>Street type</span>
26
[% CASE 'streettype'          %]<span>[% t('Street type') %]</span>
26
[% CASE 'address'             %]<span>Address</span>
27
[% CASE 'address'             %]<span>[% t('Address') %]</span>
27
[% CASE 'address2'            %]<span>Address 2</span>
28
[% CASE 'address2'            %]<span>[% t('Address 2') %]</span>
28
[% CASE 'city'                %]<span>City</span>
29
[% CASE 'city'                %]<span>[% t('City') %]</span>
29
[% CASE 'state'               %]<span>State</span>
30
[% CASE 'state'               %]<span>[% t('State') %]</span>
30
[% CASE 'zipcode'             %]<span>ZIP/Postal code</span>
31
[% CASE 'zipcode'             %]<span>[% t('ZIP/Postal code') %]</span>
31
[% CASE 'country'             %]<span>Country</span>
32
[% CASE 'country'             %]<span>[% t('Country') %]</span>
32
[% CASE 'email'               %]<span>Email</span>
33
[% CASE 'email'               %]<span>[% t('Email') %]</span>
33
[% CASE 'phone'               %]<span>Primary phone</span>
34
[% CASE 'phone'               %]<span>[% t('Primary phone') %]</span>
34
[% CASE 'mobile'              %]<span>Other phone</span>
35
[% CASE 'mobile'              %]<span>[% t('Other phone') %]</span>
35
[% CASE 'fax'                 %]<span>Fax</span>
36
[% CASE 'fax'                 %]<span>[% t('Fax') %]</span>
36
[% CASE 'emailpro'            %]<span>Secondary email</span>
37
[% CASE 'emailpro'            %]<span>[% t('Secondary email') %]</span>
37
[% CASE 'phonepro'            %]<span>Secondary phone</span>
38
[% CASE 'phonepro'            %]<span>[% t('Secondary phone') %]</span>
38
[% CASE 'B_streetnumber'      %]<span>Alternate address: Street number</span>
39
[% CASE 'B_streetnumber'      %]<span>[% t('Alternate address: Street number') %]</span>
39
[% CASE 'B_streettype'        %]<span>Alternate address: Street type</span>
40
[% CASE 'B_streettype'        %]<span>[% t('Alternate address: Street type') %]</span>
40
[% CASE 'B_address'           %]<span>Alternate address: Address</span>
41
[% CASE 'B_address'           %]<span>[% t('Alternate address: Address') %]</span>
41
[% CASE 'B_address2'          %]<span>Alternate address: Address 2</span>
42
[% CASE 'B_address2'          %]<span>[% t('Alternate address: Address 2') %]</span>
42
[% CASE 'B_city'              %]<span>Alternate address: City</span>
43
[% CASE 'B_city'              %]<span>[% t('Alternate address: City') %]</span>
43
[% CASE 'B_state'             %]<span>Alternate address: State</span>
44
[% CASE 'B_state'             %]<span>[% t('Alternate address: State') %]</span>
44
[% CASE 'B_zipcode'           %]<span>Alternate address: ZIP/Postal code</span>
45
[% CASE 'B_zipcode'           %]<span>[% t('Alternate address: ZIP/Postal code') %]</span>
45
[% CASE 'B_email'             %]<span>Alternate address: Email</span>
46
[% CASE 'B_email'             %]<span>[% t('Alternate address: Email') %]</span>
46
[% CASE 'B_phone'             %]<span>Alternate address: Phone</span>
47
[% CASE 'B_phone'             %]<span>[% t('Alternate address: Phone') %]</span>
47
[% CASE 'contactnote'         %]<span>Alternate address: Contact note</span>
48
[% CASE 'contactnote'         %]<span>[% t('Alternate address: Contact note') %]</span>
48
[% CASE 'dateofbirth'         %]<span>Date of birth</span>
49
[% CASE 'dateofbirth'         %]<span>[% t('Date of birth') %]</span>
49
[% CASE 'contactname'         %]<span>Contact: Last name</span>
50
[% CASE 'contactname'         %]<span>[% t('Contact: Last name') %]</span>
50
[% CASE 'contactfirstname'    %]<span>Contact: First name</span>
51
[% CASE 'contactfirstname'    %]<span>[% t('Contact: First name') %]</span>
51
[% CASE 'contacttitle'        %]<span>Contact: Title</span>
52
[% CASE 'contacttitle'        %]<span>[% t('Contact: Title') %]</span>
52
[% CASE 'relationship'        %]<span>Contact: Relationship</span>
53
[% CASE 'relationship'        %]<span>[% t('Contact: Relationship') %]</span>
53
[% CASE 'sex'                 %]<span>Gender</span>
54
[% CASE 'sex'                 %]<span>[% t('Gender') %]</span>
54
[% CASE 'altcontactfirstname' %]<span>Alternate contact: First name</span>
55
[% CASE 'altcontactfirstname' %]<span>[% t('Alternate contact: First name') %]</span>
55
[% CASE 'altcontactsurname'   %]<span>Alternate contact: Surname</span>
56
[% CASE 'altcontactsurname'   %]<span>[% t('Alternate contact: Surname') %]</span>
56
[% CASE 'altcontactaddress1'  %]<span>Alternate contact: Address</span>
57
[% CASE 'altcontactaddress1'  %]<span>[% t('Alternate contact: Address') %]</span>
57
[% CASE 'altcontactaddress2'  %]<span>Alternate contact: Address 2</span>
58
[% CASE 'altcontactaddress2'  %]<span>[% t('Alternate contact: Address 2') %]</span>
58
[% CASE 'altcontactaddress3'  %]<span>Alternate contact: City</span>
59
[% CASE 'altcontactaddress3'  %]<span>[% t('Alternate contact: City') %]</span>
59
[% CASE 'altcontactstate'     %]<span>Alternate contact: State</span>
60
[% CASE 'altcontactstate'     %]<span>[% t('Alternate contact: State') %]</span>
60
[% CASE 'altcontactzipcode'   %]<span>Alternate contact: ZIP/Postal code</span>
61
[% CASE 'altcontactzipcode'   %]<span>[% t('Alternate contact: ZIP/Postal code') %]</span>
61
[% CASE 'altcontactcountry'   %]<span>Alternate contact: Country</span>
62
[% CASE 'altcontactcountry'   %]<span>[% t('Alternate contact: Country') %]</span>
62
[% CASE 'altcontactphone'     %]<span>Alternate contact: Phone</span>
63
[% CASE 'altcontactphone'     %]<span>[% t('Alternate contact: Phone') %]</span>
63
[% CASE 'smsalertnumber'      %]<span>SMS alert number</span>
64
[% CASE 'smsalertnumber'      %]<span>[% t('SMS alert number') %]</span>
64
[% CASE 'extended_attributes' %]<span>Additional attributes and identifiers</span>
65
[% CASE 'extended_attributes' %]<span>[% t('Additional attributes and identifiers') %]</span>
65
[% CASE %][% field %]
66
[% CASE %][% field %]
66
[% END %]
67
[% END %]
67
[% END %]
68
[% END %]
Lines 86-124 Link Here
86
    [% END %]
87
    [% END %]
87
[% END %]
88
[% END %]
88
89
89
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Update patron records</div>
90
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a> [% t('› Update patron records') %]</div>
90
91
91
<div class="main container-fluid">
92
<div class="main container-fluid">
92
    <div class="row">
93
    <div class="row">
93
        <div class="col-md-8 col-md-offset-2">
94
        <div class="col-md-8 col-md-offset-2">
94
95
95
            [% IF PendingModifications %]
96
            [% IF PendingModifications %]
96
            <h2>Update patron records</h2>
97
            <h2>[% t('Update patron records') %]</h2>
97
                <form method="post" action="members-update-do.pl">
98
                <form method="post" action="members-update-do.pl">
98
                    <div id="pending_updates">
99
                    <div id="pending_updates">
99
                            [% FOREACH pm IN PendingModifications %]
100
                            [% FOREACH pm IN PendingModifications %]
100
                                [% SET borrowernumber = pm.borrowernumber %]
101
                                [% SET borrowernumber = pm.borrowernumber %]
101
                                <h3><a href="#panel_modify_[% pm.borrowernumber %]">[% borrowers.$borrowernumber.surname %][% IF ( borrowers.$borrowernumber.firstname ) %], [% borrowers.$borrowernumber.firstname %][% END %] - [% Categories.GetName( borrowers.$borrowernumber.categorycode ) %] ([% Branches.GetName( borrowers.$borrowernumber.branchcode ) %]) ([% borrowers.$borrowernumber.cardnumber %]) - Requested on [% pm.timestamp | $KohaDates with_hours = 1 %]</a></h3>
102
                                <h3><a href="#panel_modify_[% pm.borrowernumber %]">[% borrowers.$borrowernumber.surname %][% IF ( borrowers.$borrowernumber.firstname ) %], [% borrowers.$borrowernumber.firstname %][% END %] - [% Categories.GetName( borrowers.$borrowernumber.categorycode ) %] ([% Branches.GetName( borrowers.$borrowernumber.branchcode ) %]) ([% borrowers.$borrowernumber.cardnumber %][% t(') - Requested on') %] [% pm.timestamp | $KohaDates with_hours = 1 %]</a></h3>
102
                                <div id="panel_modify_[% pm.borrowernumber %]">
103
                                <div id="panel_modify_[% pm.borrowernumber %]">
103
                                    <div style="background-color:#E6F0F2;padding:.5em;margin:.3em 0;">
104
                                    <div style="background-color:#E6F0F2;padding:.5em;margin:.3em 0;">
104
                                        <input type="radio" id="approve_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="approve" />
105
                                        <input type="radio" id="approve_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="approve" />
105
                                        <label for="approve_modify_[% pm.borrowernumber %]">Approve</label>
106
                                        <label for="approve_modify_[% pm.borrowernumber %]">[% t('Approve') %]</label>
106
107
107
                                        <input type="radio" id="deny_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="deny" />
108
                                        <input type="radio" id="deny_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="deny" />
108
                                        <label for="deny_modify_[% pm.borrowernumber %]">Deny</label>
109
                                        <label for="deny_modify_[% pm.borrowernumber %]">[% t('Deny') %]</label>
109
110
110
                                        <input type="radio" id="ignore_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="ignore" checked="checked"/>
111
                                        <input type="radio" id="ignore_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="ignore" checked="checked" />
111
                                        <label for="ignore_modify_[% pm.borrowernumber %]">Ignore</label>
112
                                        <label for="ignore_modify_[% pm.borrowernumber %]">[% t('Ignore') %]</label>
112
                                        | <a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% pm.borrowernumber %]" >Patron details</a>
113
                                        | <a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% pm.borrowernumber %]">[% t('Patron details') %]</a>
113
                                    </div>
114
                                    </div>
114
                                  [% IF !pm.extended_attributes and pm.size > 3 or pm.extended_attributes and pm.size > 4 %]
115
                                  [% IF !pm.extended_attributes and pm.size > 3 or pm.extended_attributes and pm.size > 4 %]
115
                                  [%# timestamp+verification_token+borrowernumber=3 %]
116
                                  [%# timestamp+verification_token+borrowernumber=3 %]
116
                                    <div class="members-update-table">
117
                                    <div class="members-update-table">
117
                                        <table>
118
                                        <table>
118
                                            <tr>
119
                                            <tr>
119
                                                <th>Field</th>
120
                                                <th>[% t('Field') %]</th>
120
                                                <th>Old value</th>
121
                                                <th>[% t('Old value') %]</th>
121
                                                <th>New value</th>
122
                                                <th>[% t('New value') %]</th>
122
                                            </tr>
123
                                            </tr>
123
124
124
125
Lines 149-157 Link Here
149
                                        <h4>[% PROCESS display_names field='extended_attributes' %]</h4>
150
                                        <h4>[% PROCESS display_names field='extended_attributes' %]</h4>
150
                                        <table>
151
                                        <table>
151
                                            <tr>
152
                                            <tr>
152
                                                <th>Field</th>
153
                                                <th>[% t('Field') %]</th>
153
                                                <th>Old value</th>
154
                                                <th>[% t('Old value') %]</th>
154
                                                <th>New value</th>
155
                                                <th>[% t('New value') %]</th>
155
                                            </tr>
156
                                            </tr>
156
                                          [% FOREACH attribute_group IN borrowers.$borrowernumber.modified_attributes %]
157
                                          [% FOREACH attribute_group IN borrowers.$borrowernumber.modified_attributes %]
157
                                            <tr>
158
                                            <tr>
Lines 165-174 Link Here
165
                                  [%  END %]
166
                                  [%  END %]
166
                                  [% IF borrowers.$borrowernumber.gonenoaddress > 0 %]
167
                                  [% IF borrowers.$borrowernumber.gonenoaddress > 0 %]
167
                                    <div class="dialog message" style="margin-top:.8em">
168
                                    <div class="dialog message" style="margin-top:.8em">
168
                                        <h4>Patron's address in doubt</h4>
169
                                        <h4>[% t('Patron\'s address in doubt') %]</h4>
169
                                        <p>The <strong>Gone no address</strong> flag is set for this patron. If this modification request resolves the issue, please unset the flag.</p>
170
                                        <p>[% t('The') %] <strong>[% t('Gone no address') %]</strong> [% t('flag is set for this patron. If this modification request resolves the issue, please unset the flag.') %]</p>
170
                                        <input type="checkbox" id="unset_gna_[% pm.borrowernumber %]" name="unset_gna_[% pm.borrowernumber %]" value="unset_gna_[% pm.borrowernumber %]"/>
171
                                        <input type="checkbox" id="unset_gna_[% pm.borrowernumber %]" name="unset_gna_[% pm.borrowernumber %]" value="unset_gna_[% pm.borrowernumber %]" />
171
                                        <label for="unset_gna_[% pm.borrowernumber %]">Unset Gone no address for this patron</label>
172
                                        <label for="unset_gna_[% pm.borrowernumber %]">[% t('Unset Gone no address for this patron') %]</label>
172
                                    </div>
173
                                    </div>
173
                                  [% END %]
174
                                  [% END %]
174
                                </div>
175
                                </div>
Lines 179-185 Link Here
179
                </form>
180
                </form>
180
            [% ELSE %]
181
            [% ELSE %]
181
            <div class="dialog message">
182
            <div class="dialog message">
182
                <p>There are no pending patron modifications.</p>
183
                <p>[% t('There are no pending patron modifications.') %]</p>
183
            </div>
184
            </div>
184
            [% END %]
185
            [% END %]
185
186
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt (-46 / +47 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE Categories %]
4
[% USE Categories %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; Merge patron records</title>
8
<title>[% t('Koha › Patrons › Merge patron records') %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
10
10
</head>
11
</head>
Lines 14-75 Link Here
14
15
15
[% BLOCK display_names %]
16
[% BLOCK display_names %]
16
    [% SWITCH rs %]
17
    [% SWITCH rs %]
17
        [% CASE 'Accountline'           %]account lines
18
        [% CASE 'Accountline'           %][% t('account lines') %]
18
        [% CASE 'ArticleRequest'        %]article requests
19
        [% CASE 'ArticleRequest'        %][% t('article requests') %]
19
        [% CASE 'BorrowerAttribute'     %]extended patron attributes
20
        [% CASE 'BorrowerAttribute'     %][% t('extended patron attributes') %]
20
        [% CASE 'BorrowerDebarment'     %]patron restrictions
21
        [% CASE 'BorrowerDebarment'     %][% t('patron restrictions') %]
21
        [% CASE 'BorrowerFile'          %]patrons files
22
        [% CASE 'BorrowerFile'          %][% t('patrons files') %]
22
        [% CASE 'BorrowerModification'  %]patron modification requests
23
        [% CASE 'BorrowerModification'  %][% t('patron modification requests') %]
23
        [% CASE 'ClubEnrollment'        %]club enrollments
24
        [% CASE 'ClubEnrollment'        %][% t('club enrollments') %]
24
        [% CASE 'Issue'                 %]checkouts
25
        [% CASE 'Issue'                 %][% t('checkouts') %]
25
        [% CASE 'ItemsLastBorrower'     %]marks as last borrower of item
26
        [% CASE 'ItemsLastBorrower'     %][% t('marks as last borrower of item') %]
26
        [% CASE 'Linktracker'           %]tracked link clicks
27
        [% CASE 'Linktracker'           %][% t('tracked link clicks') %]
27
        [% CASE 'Message'               %]patron messages
28
        [% CASE 'Message'               %][% t('patron messages') %]
28
        [% CASE 'MessageQueue'          %]patron notices
29
        [% CASE 'MessageQueue'          %][% t('patron notices') %]
29
        [% CASE 'OldIssue'              %]previous checkouts
30
        [% CASE 'OldIssue'              %][% t('previous checkouts') %]
30
        [% CASE 'OldReserve'            %]filled holds
31
        [% CASE 'OldReserve'            %][% t('filled holds') %]
31
        [% CASE 'Rating'                %]ratings
32
        [% CASE 'Rating'                %][% t('ratings') %]
32
        [% CASE 'Reserve'               %]current holds
33
        [% CASE 'Reserve'               %][% t('current holds') %]
33
        [% CASE 'Review'                %]reviews
34
        [% CASE 'Review'                %][% t('reviews') %]
34
        [% CASE 'Statistic'             %]statistics
35
        [% CASE 'Statistic'             %][% t('statistics') %]
35
        [% CASE 'SearchHistory'         %]historical searches
36
        [% CASE 'SearchHistory'         %][% t('historical searches') %]
36
        [% CASE 'Suggestion'            %]purchase suggestions
37
        [% CASE 'Suggestion'            %][% t('purchase suggestions') %]
37
        [% CASE 'TagAll'                %]tags
38
        [% CASE 'TagAll'                %][% t('tags') %]
38
        [% CASE 'Virtualshelfcontent'   %]list items
39
        [% CASE 'Virtualshelfcontent'   %][% t('list items') %]
39
        [% CASE 'Virtualshelfshare'     %]list shares
40
        [% CASE 'Virtualshelfshare'     %][% t('list shares') %]
40
        [% CASE 'Virtualshelve'         %]lists
41
        [% CASE 'Virtualshelve'         %][% t('lists') %]
41
        [% CASE %][% rs %]
42
        [% CASE %][% rs %]
42
    [% END %]
43
    [% END %]
43
[% END %]
44
[% END %]
44
45
45
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Merge patron records</div>
46
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a> [% t('› Merge patron records') %]</div>
46
47
47
<div class="main container-fluid">
48
<div class="main container-fluid">
48
    <div class="row">
49
    <div class="row">
49
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
50
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
50
            <h3>Merge patron records</h3>
51
            <h3>[% t('Merge patron records') %]</h3>
51
52
52
            [% IF action == 'show' %]
53
            [% IF action == 'show' %]
53
                [% IF patrons.count > 1 %]
54
                [% IF patrons.count > 1 %]
54
                    <p>Select patron to keep. Data from the other patrons will be transferred to this patron record and the remaining patron records will be deleted.</p>
55
                    <p>[% t('Select patron to keep. Data from the other patrons will be transferred to this patron record and the remaining patron records will be deleted.') %]</p>
55
                    <form type="post" action="merge-patrons.pl">
56
                    <form type="post" action="merge-patrons.pl">
56
                        <table id="patron-merge-table" class="datatable">
57
                        <table id="patron-merge-table" class="datatable">
57
                            <thead>
58
                            <thead>
58
                                <tr>
59
                                <tr>
59
                                    <th>&nbsp;</th>
60
                                    <th> </th>
60
                                    <th>Card</th>
61
                                    <th>[% t('Card') %]</th>
61
                                    <th>Name</th>
62
                                    <th>[% t('Name') %]</th>
62
                                    <th>Date of birth</th>
63
                                    <th>[% t('Date of birth') %]</th>
63
                                    <th>Category</th>
64
                                    <th>[% t('Category') %]</th>
64
                                    <th>Library</th>
65
                                    <th>[% t('Library') %]</th>
65
                                    <th>Expires on</th>
66
                                    <th>[% t('Expires on') %]</th>
66
                                </tr>
67
                                </tr>
67
                            </thead>
68
                            </thead>
68
69
69
                            <tbody>
70
                            <tbody>
70
                                [% FOREACH p IN patrons %]
71
                                [% FOREACH p IN patrons %]
71
                                    <tr>
72
                                    <tr>
72
                                        <td><input class='keeper' type='radio' name='keeper' value='[% p.id %]' /></td>
73
                                        <td><input class="keeper" type="radio" name="keeper" value="[% p.id %]" /></td>
73
                                        <td>[% p.cardnumber | html %]</td>
74
                                        <td>[% p.cardnumber | html %]</td>
74
                                        <td>[% INCLUDE 'patron-title.inc' patron = p %]</td>
75
                                        <td>[% INCLUDE 'patron-title.inc' patron = p %]</td>
75
                                        <td>[% p.dateofbirth | $KohaDates %]</td>
76
                                        <td>[% p.dateofbirth | $KohaDates %]</td>
Lines 84-110 Link Here
84
                            <input type="hidden" name="id" value="[% p.id %]" />
85
                            <input type="hidden" name="id" value="[% p.id %]" />
85
                        [% END %]
86
                        [% END %]
86
87
87
                        <p/>
88
                        <p />
88
89
89
                        <input type="hidden" name="action" value="merge" />
90
                        <input type="hidden" name="action" value="merge" />
90
                        <input id="merge-patrons" type="submit" value="Merge patrons" />
91
                        <input id="merge-patrons" type="submit" value="Merge patrons" />
91
                    [% ELSE %]
92
                    [% ELSE %]
92
                        <div class="dialog alert">Error: Two or more patrons need to be selected for merging</div>
93
                        <div class="dialog alert">[% t('Error: Two or more patrons need to be selected for merging') %]</div>
93
                    [% END %]
94
                    [% END %]
94
                </form>
95
                </form>
95
            [% ELSIF action == 'merge' %]
96
            [% ELSIF action == 'merge' %]
96
                <h4>Results</h4>
97
                <h4>[% t('Results') %]</h4>
97
                [% IF error %]
98
                [% IF error %]
98
                    [% IF error == 'INVALID_KEEPER' %]
99
                    [% IF error == 'INVALID_KEEPER' %]
99
                        <div class="dialog alert">Merge failed! The patron to keep was invalid.</div>
100
                        <div class="dialog alert">[% t('Merge failed! The patron to keep was invalid.') %]</div>
100
                    [% ELSE %]
101
                    [% ELSE %]
101
                        <div class="dialog alert">Merge failed! The following error was reported: [% error %].</div>
102
                        <div class="dialog alert">[% t('Merge failed! The following error was reported:') %] [% error %].</div>
102
                    [% END %]
103
                    [% END %]
103
                [% ELSIF !results.merged.keys.size %]
104
                [% ELSIF !results.merged.keys.size %]
104
                    <div class="dialog alert">No valid patrons to merge were found.</div>
105
                    <div class="dialog alert">[% t('No valid patrons to merge were found.') %]</div>
105
                [% ELSE %]
106
                [% ELSE %]
106
                    <p>
107
                    <p>
107
                        Patron records merged into <a href="moremember.pl?borrowernumber=[% keeper.id %]">[% INCLUDE 'patron-title.inc' patron = keeper %]</a>
108
                        [% t('Patron records merged into') %] <a href="moremember.pl?borrowernumber=[% keeper.id %]">[% INCLUDE 'patron-title.inc' patron = keeper %]</a>
108
                    </p>
109
                    </p>
109
110
110
                    [% FOREACH pair IN results.merged.pairs %]
111
                    [% FOREACH pair IN results.merged.pairs %]
Lines 117-125 Link Here
117
                            [% SET count = r.value %]
118
                            [% SET count = r.value %]
118
                            [% IF count %]
119
                            [% IF count %]
119
                                <p>
120
                                <p>
120
                                    <span>[% count %] [% PROCESS display_names rs = name %] transferred.</span>
121
                                    <span>[% count %] [% PROCESS display_names rs = name %] [% t('transferred.') %]</span>
121
                                    [% IF name == 'Reserve' %]
122
                                    [% IF name == 'Reserve' %]
122
                                        <strong>It is advisable to check for and resolve duplicate holds due to merging.</strong>
123
                                        <strong>[% t('It is advisable to check for and resolve duplicate holds due to merging.') %]</strong>
123
                                    [% END %]
124
                                    [% END %]
124
                                </p>
125
                                </p>
125
                            [% END %]
126
                            [% END %]
Lines 128-134 Link Here
128
                [% END %]
129
                [% END %]
129
130
130
                [% UNLESS error %]
131
                [% UNLESS error %]
131
                    <a class="btn btn-default btn-sm" href="moremember.pl?borrowernumber=[% keeper.id %]">View patron record</a>
132
                    <a class="btn btn-default btn-sm" href="moremember.pl?borrowernumber=[% keeper.id %]">[% t('View patron record') %]</a>
132
                [% END %]
133
                [% END %]
133
            [% END %]
134
            [% END %]
134
        </div>
135
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-23 / +24 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Check duplicate patron</title>
6
<title>[% t('Koha › Check duplicate patron') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 19-26 Link Here
19
            <div class="col-xs-6">
20
            <div class="col-xs-6">
20
                <div id="patron-information">
21
                <div id="patron-information">
21
22
22
     [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
23
     [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames %]”[% END %]
23
        <div class = "address">
24
        <div class="address">
24
            <ul>
25
            <ul>
25
                [% IF Koha.Preference( 'AddressFormat' ) %]
26
                [% IF Koha.Preference( 'AddressFormat' ) %]
26
                    [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
27
                    [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
Lines 31-54 Link Here
31
        </div>
32
        </div>
32
	<div class="rows">
33
	<div class="rows">
33
		<ol>
34
		<ol>
34
            [% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
35
            [% IF ( phone ) %]<li><span class="label">[% t('Primary phone:') %] </span>[% phone %]</li>[% END %]
35
            [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span>[% phonepro %]</li>[% END %]
36
            [% IF ( phonepro ) %]<li><span class="label">[% t('Secondary phone:') %] </span>[% phonepro %]</li>[% END %]
36
            [% IF ( mobile ) %]<li><span class="label">Other phone: </span>[% mobile %]</li>[% END %]
37
            [% IF ( mobile ) %]<li><span class="label">[% t('Other phone:') %] </span>[% mobile %]</li>[% END %]
37
            [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
38
            [% IF ( fax ) %]<li><span class="label">[% t('Fax:') %] </span>[% fax %]</li>[% END %]
38
            [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
39
            [% IF ( email ) %]<li class="email"><span class="label">[% t('Primary email:') %]</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
39
            [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
40
            [% IF ( emailpro ) %]<li class="email"><span class="label">[% t('Secondary email:') %] </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
40
            [% UNLESS ( I ) %]
41
            [% UNLESS ( I ) %]
41
                [% IF ( inititals ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
42
                [% IF ( inititals ) %]<li><span class="label">[% t('Initials:') %] </span>[% initials %]</li>[% END %]
42
                [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>[% END %]
43
                [% IF ( dateofbirth ) %]<li><span class="label">[% t('Date of birth:') %]</span>[% dateofbirth | $KohaDates %]</li>[% END %]
43
                [% IF ( sex ) %]<li><span class="label">Gender:</span>[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]</li>[% END %][% END %]
44
                [% IF ( sex ) %]<li><span class="label">[% t('Gender:') %]</span>[% IF ( sex == 'F' ) %][% t('Female') %][% ELSIF ( sex == 'M' ) %][% t('Male') %][% ELSE %][% sex %][% END %]</li>[% END %][% END %]
44
            [% END %]
45
            [% END %]
45
    [% IF ( isguarantee ) %]
46
    [% IF ( isguarantee ) %]
46
        [% IF ( guaranteeloop ) %]
47
        [% IF ( guaranteeloop ) %]
47
            <li><span class="label">Guarantees:</span><ul>[% FOREACH guaranteeloo IN guaranteeloop %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guaranteeloo.borrowernumber %]">[% guaranteeloo.name %]  </a></li>[% END %]</ul></li>
48
            <li><span class="label">[% t('Guarantees:') %]</span><ul>[% FOREACH guaranteeloo IN guaranteeloop %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guaranteeloo.borrowernumber %]">[% guaranteeloo.name %]  </a></li>[% END %]</ul></li>
48
        [% END %]
49
        [% END %]
49
    [% ELSE %]
50
    [% ELSE %]
50
        [% IF ( guarantor.borrowernumber ) %]
51
        [% IF ( guarantor.borrowernumber ) %]
51
            <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.surname %], [% guarantor.firstname %]</a></li>
52
            <li><span class="label">[% t('Guarantor:') %]</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.surname %], [% guarantor.firstname %]</a></li>
52
        [% END %]
53
        [% END %]
53
    [% END %]
54
    [% END %]
54
	</ol>
55
	</ol>
Lines 58-81 Link Here
58
59
59
    <div class="col-xs-6">
60
    <div class="col-xs-6">
60
	<div id="patron-library-details">
61
	<div id="patron-library-details">
61
	<h3>Library use</h3>
62
	<h3>[% t('Library use') %]</h3>
62
	<div class="rows">
63
	<div class="rows">
63
	<ol>
64
	<ol>
64
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
65
    <li><span class="label">[% t('Card number:') %] </span>[% cardnumber %]</li>
65
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
66
	<li><span class="label">[% t('Borrowernumber:') %] </span> [% borrowernumber %]</li>
66
    <li><span class="label">Category: </span>[% categoryname %] ([% categorycode %])</li>
67
    <li><span class="label">[% t('Category:') %] </span>[% categoryname %] ([% categorycode %])</li>
67
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
68
    <li><span class="label">[% t('Registration date:') %] </span>[% dateenrolled | $KohaDates %]</li>
68
    <li><span class="label">Expiration date: </span>
69
    <li><span class="label">[% t('Expiration date:') %] </span>
69
    [% IF ( was_renewed ) %]
70
    [% IF ( was_renewed ) %]
70
            <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
71
            <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
71
    [% ELSE %]
72
    [% ELSE %]
72
            [% dateexpiry | $KohaDates %]
73
            [% dateexpiry | $KohaDates %]
73
    [% END %]
74
    [% END %]
74
    </li>
75
    </li>
75
    <li><span class="label">Library: </span>[% branchname %]</li>
76
    <li><span class="label">[% t('Library:') %] </span>[% branchname %]</li>
76
77
77
    [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
78
    [% IF ( sort1 ) %]<li><span class="label">[% t('Sort field 1:') %]</span>[% lib1 %]</li>[% END %]
78
    [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
79
    [% IF ( sort2 ) %]<li><span class="label">[% t('Sort field 2:') %]</span>[% lib2 %]</li>[% END %]
79
	</ol>
80
	</ol>
80
	</div>
81
	</div>
81
	</div>
82
	</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (-36 / +37 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
    <title>Summary for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</title>
8
    <title>[% t('Summary for') %] [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</title>
8
    [% INCLUDE 'doc-head-close.inc' %]
9
    [% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
11
<body id="pat_moremember-print" class="pat">
12
<body id="pat_moremember-print" class="pat">
12
    <div id="main">
13
    <div id="main">
13
        <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber %]">Account summary: [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</a></h3>
14
        <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber %]">[% t('Account summary:') %] [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</a></h3>
14
15
15
        <ul>
16
        <ul>
16
            [% IF Koha.Preference( 'AddressFormat' ) %]
17
            [% IF Koha.Preference( 'AddressFormat' ) %]
Lines 18-54 Link Here
18
            [% ELSE %]
19
            [% ELSE %]
19
                [% INCLUDE 'member-display-address-style-us.inc' %]
20
                [% INCLUDE 'member-display-address-style-us.inc' %]
20
            [% END %]
21
            [% END %]
21
            <li>[% IF ( patron.phone ) %][% patron.phone %][% ELSE %](no phone number on file)[% END %]</li>
22
            <li>[% IF ( patron.phone ) %][% patron.phone %][% ELSE %][% t('(no phone number on file)') %][% END %]</li>
22
            <li>[% IF ( patron.email ) %][% patron.email %][% ELSE %](no primary email on file)[% END %]</li>
23
            <li>[% IF ( patron.email ) %][% patron.email %][% ELSE %][% t('(no primary email on file)') %][% END %]</li>
23
            [% IF ( patron.emailpro ) %]
24
            [% IF ( patron.emailpro ) %]
24
                <li>[% patron.emailpro %]</li>
25
                <li>[% patron.emailpro %]</li>
25
            [% END %]
26
            [% END %]
26
            <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li>
27
            <li>[% t('Registration date:') %] [% patron.dateenrolled | $KohaDates %]</li>
27
            <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li>
28
            <li>[% t('Expiration date:') %] [% patron.dateexpiry | $KohaDates %]</li>
28
            <li>Library: [% Branches.GetName( patron.branchcode ) %]</li>
29
            <li>[% t('Library:') %] [% Branches.GetName( patron.branchcode ) %]</li>
29
            <li>Category: [% patron.category.description %]</li>
30
            <li>[% t('Category:') %] [% patron.category.description %]</li>
30
        </ul>
31
        </ul>
31
32
32
        [% IF ( issues ) %]
33
        [% IF ( issues ) %]
33
            <table>
34
            <table>
34
                <caption>Items checked out</caption>
35
                <caption>[% t('Items checked out') %]</caption>
35
                <tr>
36
                <tr>
36
                    <th>Title</th>
37
                    <th>[% t('Title') %]</th>
37
                    <th>Author</th>
38
                    <th>[% t('Author') %]</th>
38
                    <th>Call no</th>
39
                    <th>[% t('Call no') %]</th>
39
                    <th>Item type</th>
40
                    <th>[% t('Item type') %]</th>
40
                    <th>Date due</th>
41
                    <th>[% t('Date due') %]</th>
41
                    <th>Barcode</th>
42
                    <th>[% t('Barcode') %]</th>
42
                    <th>Charge</th>
43
                    <th>[% t('Charge') %]</th>
43
                    <th>Price</th>
44
                    <th>[% t('Price') %]</th>
44
                    <th>Status</th>
45
                    <th>[% t('Status') %]</th>
45
                </tr>
46
                </tr>
46
47
47
                [% FOREACH issue IN issues %]
48
                [% FOREACH issue IN issues %]
48
                    [% IF ( issue.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
49
                    [% IF ( issue.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
49
                        <td>
50
                        <td>
50
                            [% issue.title |html %]
51
                            [% issue.title |html %]
51
                            <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issue.itemnumber %]&amp;biblionumber=[% issue.biblionumber %]&amp;bi=[% issue.biblioitemnumber %]"></a>
52
                            <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issue.itemnumber %]&biblionumber=[% issue.biblionumber %]&bi=[% issue.biblioitemnumber %]"></a>
52
                        </td>
53
                        </td>
53
                        <td>[% issue.author %]</td>
54
                        <td>[% issue.author %]</td>
54
                        <td>[% issue.itemcallnumber %]</td>
55
                        <td>[% issue.itemcallnumber %]</td>
Lines 57-84 Link Here
57
                        <td>[% issue.barcode %]</td>
58
                        <td>[% issue.barcode %]</td>
58
                        <td>[% issue.charge %]</td>
59
                        <td>[% issue.charge %]</td>
59
                        <td>[% issue.replacementprice %]</td>
60
                        <td>[% issue.replacementprice %]</td>
60
                        <td>[% IF ( issue.overdue ) %]Overdue![% ELSE %]&nbsp;[% END %]</td>
61
                        <td>[% IF ( issue.overdue ) %][% t('Overdue!') %][% ELSE %] [% END %]</td>
61
                    </tr>
62
                    </tr>
62
                [% END %]
63
                [% END %]
63
64
64
            <tr>
65
            <tr>
65
                <td colspan="6" style="text-align: right; font-weight:bold;">Totals:</td>
66
                <td colspan="6" style="text-align: right; font-weight:bold;">[% t('Totals:') %]</td>
66
                <td>[% totaldue %]</td>
67
                <td>[% totaldue %]</td>
67
                <td>[% totalprice %]</td>
68
                <td>[% totalprice %]</td>
68
                <td colspan="3">&nbsp;</td>
69
                <td colspan="3"> </td>
69
            </tr>
70
            </tr>
70
        </table>
71
        </table>
71
    [% END %]
72
    [% END %]
72
73
73
    [% IF ( reserves ) %]
74
    [% IF ( reserves ) %]
74
        <table>
75
        <table>
75
            <caption>Pending holds</caption>
76
            <caption>[% t('Pending holds') %]</caption>
76
            <tr>
77
            <tr>
77
                <th>Title</th>
78
                <th>[% t('Title') %]</th>
78
                <th>Author</th>
79
                <th>[% t('Author') %]</th>
79
                <th>Placed on</th>
80
                <th>[% t('Placed on') %]</th>
80
                <th>Expires on</th>
81
                <th>[% t('Expires on') %]</th>
81
                <th>Pick up location</th>
82
                <th>[% t('Pick up location') %]</th>
82
            </tr>
83
            </tr>
83
84
84
            [% FOREACH reserve IN reserves %]
85
            [% FOREACH reserve IN reserves %]
Lines 94-112 Link Here
94
    [% END %]
95
    [% END %]
95
    [% IF accounts && totaldue != 0 %]
96
    [% IF accounts && totaldue != 0 %]
96
        <table>
97
        <table>
97
            <caption>Account fines and payments</caption>
98
            <caption>[% t('Account fines and payments') %]</caption>
98
            <tr>
99
            <tr>
99
                <th>Description of charges</th>
100
                <th>[% t('Description of charges') %]</th>
100
                <th>Date</th>
101
                <th>[% t('Date') %]</th>
101
                <th>Amount</th>
102
                <th>[% t('Amount') %]</th>
102
                <th>Outstanding</th>
103
                <th>[% t('Outstanding') %]</th>
103
            </tr>
104
            </tr>
104
105
105
            [% FOREACH account IN accounts %]
106
            [% FOREACH account IN accounts %]
106
                <tr>
107
                <tr>
107
                    <td>
108
                    <td>
108
                        [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
109
                        [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&itemnumber=[% account.itemnumber %]">[% END %]
109
                        [% account.description %]&nbsp;[% IF account.itemnumber AND account.accounttype != 'F' AND account.accounttype != 'FU' %] [% account.item.biblio.title |html %][% END %]
110
                        [% account.description %] [% IF account.itemnumber AND account.accounttype != 'F' AND account.accounttype != 'FU' %] [% account.item.biblio.title |html %][% END %]
110
                        [% IF ( account.itemnumber ) %]</a>[% END %]
111
                        [% IF ( account.itemnumber ) %]</a>[% END %]
111
                    </td>
112
                    </td>
112
                    <td>[% account.date | $KohaDates %]</td>
113
                    <td>[% account.date | $KohaDates %]</td>
Lines 117-123 Link Here
117
118
118
            <tfoot>
119
            <tfoot>
119
                <tr>
120
                <tr>
120
                    <td colspan="3">Total due</td>
121
                    <td colspan="3">[% t('Total due') %]</td>
121
                    <td colspan="2" style="text-align:right;">[% totaldue | $Price %]</td>
122
                    <td colspan="2" style="text-align:right;">[% totaldue | $Price %]</td>
122
                </tr>
123
                </tr>
123
            </tfoot>
124
            </tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt (-16 / +17 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Print Receipt for [% cardnumber %]</title>
6
<title>[% t('Print Receipt for') %] [% cardnumber %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
9
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
Lines 15-44 Link Here
15
16
16
<h3>[% LibraryName %]</h3>
17
<h3>[% LibraryName %]</h3>
17
[% IF ( branchname ) %][% branchname %]<br />[% END %]
18
[% IF ( branchname ) %][% branchname %]<br />[% END %]
18
Checked out to [% firstname %] [% surname %] <br />
19
[% t('Checked out to') %] [% firstname %] [% surname %] <br />
19
(<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">[% cardnumber %]</a>)<br />
20
(<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">[% cardnumber %]</a>)<br />
20
21
21
[% todaysdate %]<br />
22
[% todaysdate %]<br />
22
23
23
[% IF ( quickslip ) %]
24
[% IF ( quickslip ) %]
24
<h4>Checked out today</h4>
25
<h4>[% t('Checked out today') %]</h4>
25
[% FOREACH issueloo IN issueloop %]
26
[% FOREACH issueloo IN issueloop %]
26
[% IF ( issueloo.red ) %][% ELSE %]
27
[% IF ( issueloo.red ) %][% ELSE %]
27
[% IF ( issueloo.today ) %]
28
[% IF ( issueloo.today ) %]
28
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&amp;biblionumber=[% issueloo.biblionumber %]&amp;bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
29
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&biblionumber=[% issueloo.biblionumber %]&bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
29
Barcode: [% issueloo.barcode %]<br />
30
[% t('Barcode:') %] [% issueloo.barcode %]<br />
30
Date due: [% issueloo.date_due %]<br /></p>
31
[% t('Date due:') %] [% issueloo.date_due %]<br /></p>
31
    [% END %]
32
    [% END %]
32
    [% END %]
33
    [% END %]
33
    [% END %]
34
    [% END %]
34
35
35
[% ELSE %]
36
[% ELSE %]
36
<h4>Checked out</h4>
37
<h4>[% t('Checked out') %]</h4>
37
[% FOREACH issueloo IN issueloop %]
38
[% FOREACH issueloo IN issueloop %]
38
[% IF ( issueloo.red ) %][% ELSE %]
39
[% IF ( issueloo.red ) %][% ELSE %]
39
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&amp;biblionumber=[% issueloo.biblionumber %]&amp;bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
40
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&biblionumber=[% issueloo.biblionumber %]&bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
40
Barcode: [% issueloo.barcode %]<br />
41
[% t('Barcode:') %] [% issueloo.barcode %]<br />
41
Date due: [% issueloo.date_due %]<br /></p>
42
[% t('Date due:') %] [% issueloo.date_due %]<br /></p>
42
    [% END %]
43
    [% END %]
43
    [% END %]
44
    [% END %]
44
45
Lines 47-70 Date due: [% issueloo.date_due %]<br /></p> Link Here
47
[% IF ( quickslip ) %]
48
[% IF ( quickslip ) %]
48
[% ELSE %]
49
[% ELSE %]
49
[% IF ( overdues_exist ) %]
50
[% IF ( overdues_exist ) %]
50
<h4>Overdues</h4>
51
<h4>[% t('Overdues') %]</h4>
51
    [% FOREACH issueloo IN issueloop %]
52
    [% FOREACH issueloo IN issueloop %]
52
    [% IF ( issueloo.red ) %]
53
    [% IF ( issueloo.red ) %]
53
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&amp;biblionumber=[% issueloo.biblionumber %]&amp;bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
54
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&biblionumber=[% issueloo.biblionumber %]&bi=[% issueloo.biblioitemnumber %]">[% issueloo.title |html %]</a><br />
54
Barcode: [% issueloo.barcode %]<br />
55
[% t('Barcode:') %] [% issueloo.barcode %]<br />
55
Date due: [% issueloo.date_due %]</p>
56
[% t('Date due:') %] [% issueloo.date_due %]</p>
56
[% END %]
57
[% END %]
57
[% END %]
58
[% END %]
58
[% END %]
59
[% END %]
59
[% END %]
60
[% END %]
60
61
61
[% IF ( koha_news_count ) %]
62
[% IF ( koha_news_count ) %]
62
            <hr><h4 style="text-align: center; font-style:italic;">News</h4>
63
            <hr><h4 style="text-align: center; font-style:italic;">[% t('News') %]</h4>
63
                       <!-- [% koha_news_count %] recent news item(s) -->
64
                       <!-- [% koha_news_count %] recent news item(s) -->
64
            [% FOREACH koha_new IN koha_news %]
65
            [% FOREACH koha_new IN koha_news %]
65
                    <div class="newsitem" id="news[% koha_new.idnew %]"><h5 style="margin-bottom: 1px; margin-top: 1px"><b>[% koha_new.title %]</b></h5>
66
                    <div class="newsitem" id="news[% koha_new.idnew %]"><h5 style="margin-bottom: 1px; margin-top: 1px"><b>[% koha_new.title %]</b></h5>
66
                                        <p style="margin-bottom: 1px; margin-top: 1px">[% koha_new.content %]</p>
67
                                        <p style="margin-bottom: 1px; margin-top: 1px">[% koha_new.content %]</p>
67
                                       <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px"> Posted on [% koha_new.newdate %]
68
                                       <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px"> [% t('Posted on') %] [% koha_new.newdate %]
68
69
69
</p><hr /></div>
70
</p><hr /></div>
70
            [% END %]
71
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-143 / +144 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
Lines 6-14 Link Here
6
[% USE ColumnsSettings %]
7
[% USE ColumnsSettings %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Patrons &rsaquo;
10
<title>[% t('Koha › Patrons ›') %]
10
[% UNLESS blocking_error %]
11
[% UNLESS blocking_error %]
11
    Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
12
    [% t('Patron details for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]
12
[% END %]
13
[% END %]
13
</title>
14
</title>
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
Lines 20-28 Link Here
20
[% INCLUDE 'patron-search.inc' %]
21
[% INCLUDE 'patron-search.inc' %]
21
22
22
<div id="breadcrumbs">
23
<div id="breadcrumbs">
23
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
24
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25
› <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
25
&rsaquo; [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
26
› [% UNLESS blocking_error %][% t('Patron details for') %] [% INCLUDE 'patron-title.inc' %][% END %]
26
</div>
27
</div>
27
28
28
<div id="doc3" class="yui-t2">
29
<div id="doc3" class="yui-t2">
Lines 36-61 Link Here
36
[% IF ( error ) %]
37
[% IF ( error ) %]
37
<div class="dialog alert">
38
<div class="dialog alert">
38
    [% IF ( error == 'CANT_DELETE_STAFF' ) %]
39
    [% IF ( error == 'CANT_DELETE_STAFF' ) %]
39
        <h3>Unable to delete staff user</h3>
40
        <h3>[% t('Unable to delete staff user') %]</h3>
40
        <p>Insufficient privileges.</p>
41
        <p>[% t('Insufficient privileges.') %]</p>
41
    [% END %]
42
    [% END %]
42
    [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
43
    [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
43
        <h3>Not allowed to delete own account</h3>
44
        <h3>[% t('Not allowed to delete own account') %]</h3>
44
        <p>Deleting your own account would lock you out of Koha.</p>
45
        <p>[% t('Deleting your own account would lock you out of Koha.') %]</p>
45
    [% END %]
46
    [% END %]
46
    [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
47
    [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
47
        <h3>Unable to delete patrons from other libraries with current settings</h3>
48
        <h3>[% t('Unable to delete patrons from other libraries with current settings') %]</h3>
48
        <p>Insufficient privileges.</p>
49
        <p>[% t('Insufficient privileges.') %]</p>
49
    [% END %]
50
    [% END %]
50
    [% IF ( error == 'CANT_DELETE' ) %]
51
    [% IF ( error == 'CANT_DELETE' ) %]
51
        <h3>Unable to delete patron</h3>
52
        <h3>[% t('Unable to delete patron') %]</h3>
52
        <p>Insufficient privileges.</p>
53
        <p>[% t('Insufficient privileges.') %]</p>
53
    [% END %]
54
    [% END %]
54
</div>
55
</div>
55
[% END %]
56
[% END %]
56
<div class="yui-g">
57
<div class="yui-g">
57
58
58
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]</div>[% END %]
59
    [% IF ( was_renewed ) %]<div class="dialog message">[% t('Patron\'s account has been renewed until') %] [% patron.dateexpiry | $KohaDates %]</div>[% END %]
59
60
60
    [% IF fines %]
61
    [% IF fines %]
61
    <div id="circmessages" class="circmessage attention">
62
    <div id="circmessages" class="circmessage attention">
Lines 67-73 Link Here
67
68
68
    [% IF ( patron_messages ) %]
69
    [% IF ( patron_messages ) %]
69
        <div id="messages" class="circmessage">
70
        <div id="messages" class="circmessage">
70
            <h4>Messages:</h4>
71
            <h4>[% t('Messages:') %]</h4>
71
            <ul>
72
            <ul>
72
                [% FOREACH patron_message IN patron_messages %]
73
                [% FOREACH patron_message IN patron_messages %]
73
                    <li>
74
                    <li>
Lines 84-95 Link Here
84
                            <i>"[% patron_message.message | html %]"</i>
85
                            <i>"[% patron_message.message | html %]"</i>
85
                        </span>
86
                        </span>
86
                        [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
87
                        [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
87
                            <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id %]&amp;borrowernumber=[% patron_message.borrowernumber %]&amp;from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
88
                            <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id %]&borrowernumber=[% patron_message.borrowernumber %]&from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
88
                        [% END %]
89
                        [% END %]
89
                    </li>
90
                    </li>
90
                [% END %]
91
                [% END %]
91
            </ul>
92
            </ul>
92
            <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
93
            <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> [% t('Add a new message') %]</a>
93
        </div>
94
        </div>
94
    [% END %]
95
    [% END %]
95
96
Lines 97-121 Link Here
97
    <div id="circmessages" class="circmessage attention">
98
    <div id="circmessages" class="circmessage attention">
98
        <ul>
99
        <ul>
99
        [% IF ( userdebarred ) %]
100
        [% IF ( userdebarred ) %]
100
            <li class="blocker">Patron's account is restricted
101
            <li class="blocker">[% t('Patron\'s account is restricted') %]
101
               [% IF ( userdebarreddate ) %]
102
               [% IF ( userdebarreddate ) %]
102
                   until [% userdebarreddate %]
103
                   [% t('until') %] [% userdebarreddate %]
103
               [% END %]
104
               [% END %]
104
105
105
               [% IF ( debarredcomment ) %]
106
               [% IF ( debarredcomment ) %]
106
                   with the explanation: <i>
107
                   [% t('with the explanation:') %] <i>
107
                   [% IF debarredcomment.search('OVERDUES_PROCESS') %]
108
                   [% IF debarredcomment.search('OVERDUES_PROCESS') %]
108
                       Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
109
                       [% t('Restriction added by overdues process') %] [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
109
                   [% ELSE %]
110
                   [% ELSE %]
110
                       [% debarredcomment | html_line_break %]
111
                       [% debarredcomment | html_line_break %]
111
                   [% END %]
112
                   [% END %]
112
                    </i>
113
                    </i>
113
               [% END %]
114
               [% END %]
114
                <a href="#reldebarments" id="view_restrictions">View restrictions</a>
115
                <a href="#reldebarments" id="view_restrictions">[% t('View restrictions') %]</a>
115
            </li>
116
            </li>
116
        [% END %]
117
        [% END %]
117
        [% IF ( patron.gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
118
        [% IF ( patron.gonenoaddress ) %]<li class="blocker">[% t('Patron\'s address is in doubt.') %]</li>[% END %]
118
        [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
119
        [% IF ( lost ) %]<li class="blocker">[% t('Patron\'s card has been reported lost.') %]</li>[% END %]
119
        </ul>
120
        </ul>
120
    </div>
121
    </div>
121
    [% END %]
122
    [% END %]
Lines 124-132 Link Here
124
 <div class="yui-u first">
125
 <div class="yui-u first">
125
<div id="patron-information" style="padding : .5em;">
126
<div id="patron-information" style="padding : .5em;">
126
127
127
    [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
128
    [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
128
129
129
    <div class = "address">
130
    <div class="address">
130
        [% IF Koha.Preference( 'AddressFormat' ) %]
131
        [% IF Koha.Preference( 'AddressFormat' ) %]
131
            [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
132
            [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
132
        [% ELSE %]
133
        [% ELSE %]
Lines 136-157 Link Here
136
		    
137
		    
137
	<div class="rows">
138
	<div class="rows">
138
    <ol>
139
    <ol>
139
        [% IF ( patron.phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% patron.phone %]">[% patron.phone | html %]</a></li>[% END %]
140
        [% IF ( patron.phone ) %]<li><span class="label">[% t('Primary phone:') %] </span><a href="tel:[% patron.phone %]">[% patron.phone | html %]</a></li>[% END %]
140
        [% IF ( patron.phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a></li>[% END %]
141
        [% IF ( patron.phonepro ) %]<li><span class="label">[% t('Secondary phone:') %] </span><a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a></li>[% END %]
141
        [% IF ( patron.mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a></li>[% END %]
142
        [% IF ( patron.mobile ) %]<li><span class="label">[% t('Other phone:') %] </span><a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a></li>[% END %]
142
        [% IF ( patron.fax ) %]<li><span class="label">Fax: </span>[% patron.fax |html %]</li>[% END %]
143
        [% IF ( patron.fax ) %]<li><span class="label">[% t('Fax:') %] </span>[% patron.fax |html %]</li>[% END %]
143
        [% IF ( patron.email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a></li>[% END %]
144
        [% IF ( patron.email ) %]<li class="email"><span class="label">[% t('Primary email:') %]</span><a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a></li>[% END %]
144
        [% IF ( patron.emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a></li>[% END %]
145
        [% IF ( patron.emailpro ) %]<li class="email"><span class="label">[% t('Secondary email:') %] </span><a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a></li>[% END %]
145
        [% UNLESS ( I ) %]
146
        [% UNLESS ( I ) %]
146
            [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
147
            [% IF ( patron.initials ) %]<li><span class="label">[% t('Initials:') %] </span>[% patron.initials | html %]</li>[% END %]
147
            [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
148
            [% IF ( patron.dateofbirth ) %]<li><span class="label">[% t('Date of birth:') %]</span>[% patron.dateofbirth | $KohaDates %] ([% age %] [% t('years)') %]</li>[% END %]
148
            [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>
149
            [% IF ( patron.sex ) %]<li><span class="label">[% t('Gender:') %]</span>
149
                [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %]
150
                [% IF ( patron.sex == 'F' ) %][% t('Female') %][% ELSIF ( patron.sex == 'M' ) %][% t('Male') %][% ELSE %][% patron.sex %][% END %]
150
            </li>[% END %]
151
            </li>[% END %]
151
        [% END %]
152
        [% END %]
152
        [% IF guarantees %]
153
        [% IF guarantees %]
153
            <li>
154
            <li>
154
                <span class="label">Guarantees:</span>
155
                <span class="label">[% t('Guarantees:') %]</span>
155
                <ul>
156
                <ul>
156
                    [% FOREACH guarantee IN guarantees %]
157
                    [% FOREACH guarantee IN guarantees %]
157
                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
158
                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
Lines 164-170 Link Here
164
            </li>
165
            </li>
165
        [% ELSIF guarantor %]
166
        [% ELSIF guarantor %]
166
            <li>
167
            <li>
167
                <span class="label">Guarantor:</span>
168
                <span class="label">[% t('Guarantor:') %]</span>
168
                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
169
                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
169
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
170
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
170
                [% ELSE %]
171
                [% ELSE %]
Lines 176-184 Link Here
176
</div>
177
</div>
177
      <div class="action">
178
      <div class="action">
178
        [% IF ( guarantor.borrowernumber ) %]
179
        [% IF ( guarantor.borrowernumber ) %]
179
        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
180
        <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">[% t('Edit') %]</a>
180
        [% ELSE %]
181
        [% ELSE %]
181
        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1">Edit</a>
182
        <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1">[% t('Edit') %]</a>
182
        [% END %]</div>
183
        [% END %]</div>
183
184
184
</div>
185
</div>
Lines 191-217 Link Here
191
        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
192
        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
192
            <fieldset class="brief">
193
            <fieldset class="brief">
193
            [% IF ( patron.image ) %]
194
            [% IF ( patron.image ) %]
194
                <legend>Manage patron image</legend>
195
                <legend>[% t('Manage patron image') %]</legend>
195
                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
196
                <div class="hint">[% t('To update the image for') %] [% patron.title | html %] [% patron.surname | html %][% t(', select a new image file and click \'Upload.\'') %] <br />[% t('Click the \'Delete\' button to remove the current image.') %]
196
            [% ELSE %]
197
            [% ELSE %]
197
                <legend>Upload patron image</legend>
198
                <legend>[% t('Upload patron image') %]</legend>
198
                <div class="hint">[% 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.
199
                <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] [% t('does not currently have an image available. To import an image for') %] [% patron.title %] [% patron.surname | html %][% t(', enter the name of an image file to upload.') %]
199
            [% END %]
200
            [% END %]
200
                    <br />Only PNG, GIF, JPEG, XPM formats are supported.
201
                    <br />[% t('Only PNG, GIF, JPEG, XPM formats are supported.') %]
201
                </div>
202
                </div>
202
                <input type="hidden" id="image" name="filetype" value="image" />
203
                <input type="hidden" id="image" name="filetype" value="image" />
203
                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
204
                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
204
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
205
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
205
                <ol>
206
                <ol>
206
                    <li>
207
                    <li>
207
                       <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
208
                       <label for="uploadfile">[% t('Select the file to upload:') %] </label><input type="file" id="uploadfile" name="uploadfile" />
208
                    </li>
209
                    </li>
209
                </ol>
210
                </ol>
210
                <fieldset class="action">
211
                <fieldset class="action">
211
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
212
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
212
                    <input type="submit" value="Upload" class="submit" />
213
                    <input type="submit" value="Upload" class="submit" />
213
                    <input name="op" type="hidden" value="Upload" />
214
                    <input name="op" type="hidden" value="Upload" />
214
                    [% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
215
                    [% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">[% t('Delete') %]</a>[% END %]
215
                </fieldset>
216
                </fieldset>
216
            </fieldset>
217
            </fieldset>
217
        </form>
218
        </form>
Lines 223-257 Link Here
223
224
224
[% IF Koha.Preference('HouseboundModule') %]
225
[% IF Koha.Preference('HouseboundModule') %]
225
<div id="houseboundroles">
226
<div id="houseboundroles">
226
<h3>Housebound roles</h3>
227
<h3>[% t('Housebound roles') %]</h3>
227
<div class="rows">
228
<div class="rows">
228
  <ol>
229
  <ol>
229
    <li>
230
    <li>
230
      <span class="label">Chooser:</span>
231
      <span class="label">[% t('Chooser:') %]</span>
231
      [% IF ( housebound_role.housebound_chooser == 1 ) %]
232
      [% IF ( housebound_role.housebound_chooser == 1 ) %]
232
        Yes
233
        [% t('Yes') %]
233
      [% ELSE %]
234
      [% ELSE %]
234
        No
235
        [% t('No') %]
235
      [% END %]
236
      [% END %]
236
    </li>
237
    </li>
237
    <li>
238
    <li>
238
      <span class="label">Deliverer:</span>
239
      <span class="label">[% t('Deliverer:') %]</span>
239
      [% IF ( housebound_role.housebound_deliverer == 1 ) %]
240
      [% IF ( housebound_role.housebound_deliverer == 1 ) %]
240
        Yes
241
        [% t('Yes') %]
241
      [% ELSE %]
242
      [% ELSE %]
242
        No
243
        [% t('No') %]
243
      [% END %]
244
      [% END %]
244
    </li>
245
    </li>
245
  </ol>
246
  </ol>
246
</div>
247
</div>
247
</div>
248
</div>
248
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a></div>
249
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">[% t('Edit') %]</a></div>
249
[% END %]
250
[% END %]
250
251
251
[% IF ( ExtendedPatronAttributes ) %]
252
[% IF ( ExtendedPatronAttributes ) %]
252
[% UNLESS ( no_patron_attribute_types ) %]
253
[% UNLESS ( no_patron_attribute_types ) %]
253
<div id="patron-extended-attributes" style="padding-top: 1em;">
254
<div id="patron-extended-attributes" style="padding-top: 1em;">
254
<h3>Additional attributes and identifiers</h3>
255
<h3>[% t('Additional attributes and identifiers') %]</h3>
255
[% FOREACH attribute IN attributes_loop %]
256
[% FOREACH attribute IN attributes_loop %]
256
    [% IF attribute.class %]
257
    [% IF attribute.class %]
257
        <div id="aai_[% attribute.class %]" class="rows">
258
        <div id="aai_[% attribute.class %]" class="rows">
Lines 274-308 Link Here
274
    </div>
275
    </div>
275
[% END %]
276
[% END %]
276
</div>
277
</div>
277
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a></div>
278
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">[% t('Edit') %]</a></div>
278
[% END %]
279
[% END %]
279
[% END %]
280
[% END %]
280
281
281
282
282
[% IF ( EnhancedMessagingPreferences ) %]
283
[% IF ( EnhancedMessagingPreferences ) %]
283
<div id="patron-messaging-prefs" style="padding-top: 1em;">
284
<div id="patron-messaging-prefs" style="padding-top: 1em;">
284
<h3>Patron messaging preferences</h3>
285
<h3>[% t('Patron messaging preferences') %]</h3>
285
[% INCLUDE 'messaging-preference-form.inc' %]
286
[% INCLUDE 'messaging-preference-form.inc' %]
286
 [% IF ( SMSSendDriver ) %]
287
 [% IF ( SMSSendDriver ) %]
287
      <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
288
      <div class="rows"> <ol><li><span class="label">[% t('SMS number:') %]</span><a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
288
     </li></ol></div>
289
     </li></ol></div>
289
 [% END %]
290
 [% END %]
290
</div>
291
</div>
291
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=5">Edit</a></div>
292
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=5">[% t('Edit') %]</a></div>
292
[% END %]
293
[% END %]
293
294
294
</div>
295
</div>
295
 <div class="yui-u"> 
296
 <div class="yui-u"> 
296
 <div id="patron-library-details">
297
 <div id="patron-library-details">
297
 <h3>Library use</h3>
298
 <h3>[% t('Library use') %]</h3>
298
<div class="rows"> 
299
<div class="rows"> 
299
<ol>
300
<ol>
300
    <li><span class="label">Card number: </span>[% patron.cardnumber %]</li>
301
    <li><span class="label">[% t('Card number:') %] </span>[% patron.cardnumber %]</li>
301
    <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
302
    <li><span class="label">[% t('Borrowernumber:') %] </span> [% patron.borrowernumber %]</li>
302
    <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
303
    <li><span class="label">[% t('Category:') %] </span>[% patron.category.description %] ([% patron.categorycode %])</li>
303
    <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
304
    <li><span class="label">[% t('Registration date:') %] </span>[% patron.dateenrolled | $KohaDates %]</li>
304
305
305
    <li><span class="label">Expiration date: </span>
306
    <li><span class="label">[% t('Expiration date:') %] </span>
306
    [% IF ( was_renewed ) %]
307
    [% IF ( was_renewed ) %]
307
            <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
308
            <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
308
    [% ELSE %]
309
    [% ELSE %]
Lines 310-377 Link Here
310
    [% END %]
311
    [% END %]
311
    </li>
312
    </li>
312
    
313
    
313
    <li><span class="label">Library: </span>[% branchname %]</li>
314
    <li><span class="label">[% t('Library:') %] </span>[% branchname %]</li>
314
315
315
    [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
316
    [% IF ( OPACPrivacy ) %]<li><span class="label">[% t('Privacy Pref:') %]</span>
316
         [% IF ( privacy0 ) %]Forever[% END %]
317
         [% IF ( privacy0 ) %][% t('Forever') %][% END %]
317
         [% IF ( privacy1 ) %]Default[% END %]
318
         [% IF ( privacy1 ) %][% t('Default') %][% END %]
318
         [% IF ( privacy2 ) %]Never[% END %]
319
         [% IF ( privacy2 ) %][% t('Never') %][% END %]
319
    </li>[% END %]
320
    </li>[% END %]
320
321
321
    <li>
322
    <li>
322
        <span class="label">Show checkouts to guarantor</span>
323
        <span class="label">[% t('Show checkouts to guarantor') %]</span>
323
        [% IF privacy_guarantor_checkouts %]
324
        [% IF privacy_guarantor_checkouts %]
324
            Yes
325
            [% t('Yes') %]
325
        [% ELSE %]
326
        [% ELSE %]
326
            No
327
            [% t('No') %]
327
        [% END %]
328
        [% END %]
328
    </li>
329
    </li>
329
330
330
    [% IF ( patron.sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]</li>[% END %]
331
    [% IF ( patron.sort1 ) %]<li><span class="label">[% t('Sort field 1:') %]</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]</li>[% END %]
331
    [% IF ( patron.sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]</li>[% END %]
332
    [% IF ( patron.sort2 ) %]<li><span class="label">[% t('Sort field 2:') %]</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]</li>[% END %]
332
    <li><span class="label">Username: </span>[% patron.userid |html  %]</li>
333
    <li><span class="label">[% t('Username:') %] </span>[% patron.userid |html  %]</li>
333
    <li><span class="label">Password: </span>
334
    <li><span class="label">[% t('Password:') %] </span>
334
    [% IF ( patron.password ) %]
335
    [% IF ( patron.password ) %]
335
        *******
336
        *******
336
    [% ELSE %]
337
    [% ELSE %]
337
        <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span>
338
        <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">[% t('Undefined') %]</a></span>
338
    [% END %] 
339
    [% END %] 
339
    </li>
340
    </li>
340
    [% IF ( patron.borrowernotes ) %]<li><span class="label">Circulation note: </span>[% patron.borrowernotes |html %]</li>[% END %]
341
    [% IF ( patron.borrowernotes ) %]<li><span class="label">[% t('Circulation note:') %] </span>[% patron.borrowernotes |html %]</li>[% END %]
341
    [% IF ( patron.opacnote ) %]<li><span class="label">OPAC note:</span>[% patron.opacnote |html %]</li>[% END %]
342
    [% IF ( patron.opacnote ) %]<li><span class="label">[% t('OPAC note:') %]</span>[% patron.opacnote |html %]</li>[% END %]
342
    [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
343
    [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
343
        [% IF ( sync == 1 ) %]
344
        [% IF ( sync == 1 ) %]
344
            <li><span class="label">Activate sync: </span>Yes</li>
345
            <li><span class="label">[% t('Activate sync:') %] </span>[% t('Yes') %]</li>
345
            [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
346
            [% IF ( syncstatus ) %]<li><span class="label">[% t('Sync status:') %] </span>[% syncstatus %]</li>[% END %]
346
            [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
347
            [% IF ( lastsync ) %]<li><span class="label">[% t('Last sync:') %] </span>[% lastsync | $KohaDates %]</li>[% END %]
347
        [% ELSE %]
348
        [% ELSE %]
348
            <li><span class="label">Activate sync: </span>No</li>
349
            <li><span class="label">[% t('Activate sync:') %] </span>[% t('No') %]</li>
349
        [% END %]
350
        [% END %]
350
    [% END %]
351
    [% END %]
351
    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
352
    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
352
      <li><span class="label">Check previous checkouts: </span>
353
      <li><span class="label">[% t('Check previous checkouts:') %] </span>
353
        [% IF ( patron.checkprevcheckout == 'yes' ) %]
354
        [% IF ( patron.checkprevcheckout == 'yes' ) %]
354
        Yes
355
        [% t('Yes') %]
355
        [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
356
        [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
356
        No
357
        [% t('No') %]
357
        [% ELSE %]
358
        [% ELSE %]
358
        Inherited
359
        [% t('Inherited') %]
359
        [% END %]
360
        [% END %]
360
      </li>
361
      </li>
361
    [% END %]
362
    [% END %]
362
    [% IF Koha.Preference('TranslateNotices') %]
363
    [% IF Koha.Preference('TranslateNotices') %]
363
        <li>
364
        <li>
364
            <span class="label">Preferred language for notices: </span>
365
            <span class="label">[% t('Preferred language for notices:') %] </span>
365
            [% translated_language %]
366
            [% translated_language %]
366
        </li>
367
        </li>
367
    [% END %]
368
    [% END %]
368
	</ol>
369
	</ol>
369
	</div>
370
	</div>
370
 </div>
371
 </div>
371
    <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=3">Edit</a></div>
372
    <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=3">[% t('Edit') %]</a></div>
372
 
373
 
373
 <div id="patron-alternate-address" style="padding-top: 1em;">
374
 <div id="patron-alternate-address" style="padding-top: 1em;">
374
    <h3>Alternate address</h3>
375
    <h3>[% t('Alternate address') %]</h3>
375
376
376
    [% IF Koha.Preference( 'AddressFormat' ) %]
377
    [% IF Koha.Preference( 'AddressFormat' ) %]
377
        [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
378
        [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
Lines 380-437 Link Here
380
    [% END %]
381
    [% END %]
381
382
382
    <div class="rows">  <ol>
383
    <div class="rows">  <ol>
383
      [% IF ( patron.B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a></li>[% END %]
384
      [% IF ( patron.B_phone ) %]<li><span class="label">[% t('Phone:') %] </span><a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a></li>[% END %]
384
      [% IF ( patron.B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a></li>[% END %]
385
      [% IF ( patron.B_email ) %]<li class="email"><span class="label">[% t('Email:') %] </span><a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a></li>[% END %]
385
      [% IF ( patron.contactnote ) %]<li><span class="label">Contact note: </span> [% patron.contactnote |html %]</li>[% END %]
386
      [% IF ( patron.contactnote ) %]<li><span class="label">[% t('Contact note:') %] </span> [% patron.contactnote |html %]</li>[% END %]
386
      </ol>
387
      </ol>
387
    </div>
388
    </div>
388
</div>
389
</div>
389
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6">Edit</a></div>
390
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=6">[% t('Edit') %]</a></div>
390
391
391
 <div id="patron-alternative-contact" style="padding-top: 1em;">
392
 <div id="patron-alternative-contact" style="padding-top: 1em;">
392
 <h3>Alternative contact</h3>
393
 <h3>[% t('Alternative contact') %]</h3>
393
   <div class="rows"> <ol><li><span class="label">Surname: </span>[% patron.altcontactsurname | html %]</li>
394
   <div class="rows"> <ol><li><span class="label">[% t('Surname:') %] </span>[% patron.altcontactsurname | html %]</li>
394
    <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li>
395
    <li><span class="label">[% t('First name:') %] </span>[% patron.altcontactfirstname | html %]</li>
395
    <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li>
396
    <li><span class="label">[% t('Address:') %] </span>[% patron.altcontactaddress1 | html %]</li>
396
    <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li>
397
    <li><span class="label">[% t('Address 2:') %] </span>[% patron.altcontactaddress2 | html %]</li>
397
    <li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li>
398
    <li><span class="label">[% t('City:') %] </span>[% patron.altcontactaddress3 | html %]</li>
398
    [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %]
399
    [% IF ( patron.altcontactstate ) %]<li><span class="label">[% t('State:') %] </span>[% patron.altcontactstate | html %]</li>[% END %]
399
    <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li>
400
    <li><span class="label">[% t('ZIP/Postal code:') %] </span>[% patron.altcontactzipcode | html %]</li>
400
    [% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %]
401
    [% IF ( patron.altcontactcountry ) %]<li><span class="label">[% t('Country:') %] </span>[% patron.altcontactcountry | html %]</li>[% END %]
401
    [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
402
    [% IF ( patron.altcontactphone ) %]<li><span class="label">[% t('Phone:') %] </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
402
    </ol></div>
403
    </ol></div>
403
</div>
404
</div>
404
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2">Edit</a></div>
405
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=2">[% t('Edit') %]</a></div>
405
406
406
</div>
407
</div>
407
</div>
408
</div>
408
<div id="finesholdsissues" class="toptabs">
409
<div id="finesholdsissues" class="toptabs">
409
    <ul>
410
    <ul>
410
        <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
411
        <li><a href="#checkouts">[% issuecount %] [% t('Checkout(s)') %]</a></li>
411
        [% IF relatives_issues_count %]
412
        [% IF relatives_issues_count %]
412
            <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
413
            <li><a href="#relatives-issues" id="relatives-issues-tab">[% t('Relatives\' checkouts') %]</a></li>
413
        [% END %]
414
        [% END %]
414
        <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
415
        <li><a href="#finesandcharges">[% t('Fines &amp; Charges') %]</a></li>
415
        <li>
416
        <li>
416
            [% IF ( holds_count ) %]
417
            [% IF ( holds_count ) %]
417
                <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
418
                <a href="#reserves" id="holds-tab">[% holds_count %] [% t('Hold(s)') %]</a>
418
            [% ELSE %]
419
            [% ELSE %]
419
                <a href="#reserves" id="holds-tab">0 Holds</a>
420
                <a href="#reserves" id="holds-tab">[% t('0 Holds') %]</a>
420
            [% END %]
421
            [% END %]
421
        </li>
422
        </li>
422
        [% IF Koha.Preference('ArticleRequests') %]
423
        [% IF Koha.Preference('ArticleRequests') %]
423
            <li>
424
            <li>
424
                <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
425
                <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] [% t('Article requests') %]</a>
425
            </li>
426
            </li>
426
        [% END %]
427
        [% END %]
427
        <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
428
        <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] [% t('Restrictions') %]</a></li>
428
429
429
        [% SET enrollments = patron.get_club_enrollments(1) %]
430
        [% SET enrollments = patron.get_club_enrollments(1) %]
430
        [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
431
        [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
431
        [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
432
        [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
432
            <li>
433
            <li>
433
                <a id="clubs-tab-link" href="#clubs-tab">
434
                <a id="clubs-tab-link" href="#clubs-tab">
434
                    Clubs ([% enrollments.count %]/[% enrollable.count %])
435
                    [% t('Clubs (') %][% enrollments.count %]/[% enrollable.count %])
435
                </a>
436
                </a>
436
            </li>
437
            </li>
437
        [% END %]
438
        [% END %]
Lines 444-461 Link Here
444
        <table id="relatives-issues-table" style="width: 100% !Important;">
445
        <table id="relatives-issues-table" style="width: 100% !Important;">
445
            <thead>
446
            <thead>
446
                <tr>
447
                <tr>
447
                    <th scope="col">Due date hidden not formatted</th>
448
                    <th scope="col">[% t('Due date hidden not formatted') %]</th>
448
                    <th scope="col">Due date</th>
449
                    <th scope="col">[% t('Due date') %]</th>
449
                    <th scope="col">Title</th>
450
                    <th scope="col">[% t('Title') %]</th>
450
                    <th scope="col">Item type</th>
451
                    <th scope="col">[% t('Item type') %]</th>
451
                    <th scope="col">Location</th>
452
                    <th scope="col">[% t('Location') %]</th>
452
                    <th scope="col">Checked out on</th>
453
                    <th scope="col">[% t('Checked out on') %]</th>
453
                    <th scope="col">Checked out from</th>
454
                    <th scope="col">[% t('Checked out from') %]</th>
454
                    <th scope="col">Call no</th>
455
                    <th scope="col">[% t('Call no') %]</th>
455
                    <th scope="col">Charge</th>
456
                    <th scope="col">[% t('Charge') %]</th>
456
                    <th scope="col">Fine</th>
457
                    <th scope="col">[% t('Fine') %]</th>
457
                    <th scope="col">Price</th>
458
                    <th scope="col">[% t('Price') %]</th>
458
                    <th scope="col">Patron</th>
459
                    <th scope="col">[% t('Patron') %]</th>
459
                </tr>
460
                </tr>
460
            </thead>
461
            </thead>
461
        </table>
462
        </table>
Lines 464-478 Link Here
464
465
465
<div id="finesandcharges">
466
<div id="finesandcharges">
466
    [% IF ( totaldue_raw ) %]
467
    [% IF ( totaldue_raw ) %]
467
        <p>Total due: [% totaldue %]</p>
468
        <p>[% t('Total due:') %] [% totaldue %]</p>
468
    [% ELSE %]
469
    [% ELSE %]
469
        <p>No outstanding charges</p>
470
        <p>[% t('No outstanding charges') %]</p>
470
    [% END %]
471
    [% END %]
471
</div>
472
</div>
472
473
473
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
474
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
474
    <div id="clubs-tab">
475
    <div id="clubs-tab">
475
        Loading...
476
        [% t('Loading...') %]
476
    </div>
477
    </div>
477
[% END %]
478
[% END %]
478
479
Lines 485-499 Link Here
485
        <table id="holds-table" style="width: 100% !Important;">
486
        <table id="holds-table" style="width: 100% !Important;">
486
            <thead>
487
            <thead>
487
                <tr>
488
                <tr>
488
                    <th>Hold date</th>
489
                    <th>[% t('Hold date') %]</th>
489
                    <th>Title</th>
490
                    <th>[% t('Title') %]</th>
490
                    <th>Call number</th>
491
                    <th>[% t('Call number') %]</th>
491
                    <th>Barcode</th>
492
                    <th>[% t('Barcode') %]</th>
492
                    <th>Pickup at</th>
493
                    <th>[% t('Pickup at') %]</th>
493
                    <th>Expiration</th>
494
                    <th>[% t('Expiration') %]</th>
494
                    <th>Priority</th>
495
                    <th>[% t('Priority') %]</th>
495
                    <th>Delete?</th>
496
                    <th>[% t('Delete?') %]</th>
496
                    <th>Suspend?</th>
497
                    <th>[% t('Suspend?') %]</th>
497
                </tr>
498
                </tr>
498
            </thead>
499
            </thead>
499
        </table>
500
        </table>
Lines 511-519 Link Here
511
            <input type="submit" value="Suspend all holds" />
512
            <input type="submit" value="Suspend all holds" />
512
513
513
            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
514
            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
514
            <label for="suspend_until">until</label>
515
            <label for="suspend_until">[% t('until') %]</label>
515
            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
516
            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
516
            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
517
            <span class="hint">[% t('Specify date on which to resume') %] [% INCLUDE 'date-format.inc' %]: </span>
517
            [% END %]
518
            [% END %]
518
        </form>
519
        </form>
519
    </fieldset>
520
    </fieldset>
Lines 528-534 Link Here
528
    </fieldset>
529
    </fieldset>
529
    [% END # IF SuspendHoldsIntranet %]
530
    [% END # IF SuspendHoldsIntranet %]
530
531
531
    [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
532
    [% ELSE %]<p>[% t('Patron has nothing on hold.') %]</p>[% END %]
532
	</div>
533
	</div>
533
534
534
535
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/nl-search.tt (-54 / +55 lines)
Lines 1-30 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Search the Norwegian national patron database</title>
7
<title>[% t('Search the Norwegian national patron database') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
<body id="pat_nl_search" class="pat">
10
<body id="pat_nl_search" class="pat">
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'patron-search.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Search the Norwegian national patron database</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Search the Norwegian national patron database') %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
    <div id="bd">
17
    <div id="bd">
17
        <div id="yui-main">
18
        <div id="yui-main">
18
            <div class="yui-b">
19
            <div class="yui-b">
19
20
20
                <h1>Search the Norwegian national patron database</h1>
21
                <h1>[% t('Search the Norwegian national patron database') %]</h1>
21
22
22
                [% IF (error) %]
23
                [% IF (error) %]
23
                    <div class="dialog alert">
24
                    <div class="dialog alert">
24
                    [% IF ( error.nlenabled == 0 ) %]<p>You need to activate this function with the NorwegianPatronDBEnable system preference in order to use it.</p>[% END %]
25
                    [% IF ( error.nlenabled == 0 ) %]<p>[% t('You need to activate this function with the NorwegianPatronDBEnable system preference in order to use it.') %]</p>[% END %]
25
                    [% IF ( error.endpoint  == 0 ) %]<p>You need to specify an endpoint with the NorwegianPatronDBEndpoint system preference.</p>[% END %]
26
                    [% IF ( error.endpoint  == 0 ) %]<p>[% t('You need to specify an endpoint with the NorwegianPatronDBEndpoint system preference.') %]</p>[% END %]
26
                    [% IF ( error.userpass  == 0 ) %]<p>You need to fill in the NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences in order to use this function.</p>[% END %]
27
                    [% IF ( error.userpass  == 0 ) %]<p>[% t('You need to fill in the NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences in order to use this function.') %]</p>[% END %]
27
                    [% IF ( error == 'COULD_NOT_ADD_PATRON' ) %]<p>Could not add a new patron.</p>[% END %]
28
                    [% IF ( error == 'COULD_NOT_ADD_PATRON' ) %]<p>[% t('Could not add a new patron.') %]</p>[% END %]
28
                    </div>
29
                    </div>
29
                [% ELSE %]
30
                [% ELSE %]
30
                    [% SET nl_search_form_title='Search' %]
31
                    [% SET nl_search_form_title='Search' %]
Lines 32-44 Link Here
32
                [% END %]
33
                [% END %]
33
34
34
                [% IF ( local_result ) %]
35
                [% IF ( local_result ) %]
35
                    <h3>Existing patrons</h3>
36
                    <h3>[% t('Existing patrons') %]</h3>
36
                    <ul>
37
                    <ul>
37
                        [% FOREACH patron IN local_result %]
38
                        [% FOREACH patron IN local_result %]
38
                            <li>[% patron.firstname %] [% patron.surname %] [% patron.cardnumber %] |
39
                            <li>[% patron.firstname %] [% patron.surname %] [% patron.cardnumber %] |
39
                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Details</a> |
40
                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Details') %]</a> |
40
                                <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber %]">Edit</a> |
41
                                <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber %]">[% t('Edit') %]</a> |
41
                                <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]">Check out</a>
42
                                <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Check out') %]</a>
42
                            </li>
43
                            </li>
43
                        [% END %]
44
                        [% END %]
44
                    </ul>
45
                    </ul>
Lines 49-60 Link Here
49
                    [% IF result.antall_poster_returnert == 0 %]
50
                    [% IF result.antall_poster_returnert == 0 %]
50
51
51
                        <div class="dialog alert">
52
                        <div class="dialog alert">
52
                            <p>No results found in the Norwegian national patron database. Message: "[% result.melding %]"</p>
53
                            <p>[% t('No results found in the Norwegian national patron database. Message: &#34;') %][% result.melding %]"</p>
53
                        </div>
54
                        </div>
54
55
55
                    [% ELSE %]
56
                    [% ELSE %]
56
57
57
                        <h3>Results from the Norwegian national patron database</h3>
58
                        <h3>[% t('Results from the Norwegian national patron database') %]</h3>
58
                        <div class="yui-g">
59
                        <div class="yui-g">
59
                        <div class="yui-u first">
60
                        <div class="yui-u first">
60
                        [% PROCESS patron_detail p=result.respons_poster.0 %]
61
                        [% PROCESS patron_detail p=result.respons_poster.0 %]
Lines 88-133 Link Here
88
<div class="rows">
89
<div class="rows">
89
<h4>[% p.navn | html_entity %]</h4>
90
<h4>[% p.navn | html_entity %]</h4>
90
<ol>
91
<ol>
91
[% IF ( p.kjonn ) %]<li><span class="label">Gender:</span> [% p.kjonn | html_entity %]</li>[% END %]
92
[% IF ( p.kjonn ) %]<li><span class="label">[% t('Gender:') %]</span> [% p.kjonn | html_entity %]</li>[% END %]
92
[% IF ( p.fdato ) %]<li><span class="label">Date of birth:</span> [% p.fdato | html_entity %]</li>[% END %]
93
[% IF ( p.fdato ) %]<li><span class="label">[% t('Date of birth:') %]</span> [% p.fdato | html_entity %]</li>[% END %]
93
[% IF ( p.lnr ) %]<li><span class="label">Card number:</span> [% p.lnr | html_entity %]</li>[% END %]
94
[% IF ( p.lnr ) %]<li><span class="label">[% t('Card number:') %]</span> [% p.lnr | html_entity %]</li>[% END %]
94
[% IF ( p.fnr_hash ) %]<li><span class="label">Social security number hash:</span> [% p.fnr_hash | html_entity %]</li>[% END %]
95
[% IF ( p.fnr_hash ) %]<li><span class="label">[% t('Social security number hash:') %]</span> [% p.fnr_hash | html_entity %]</li>[% END %]
95
96
96
[% IF ( p.epost ) %]<li><span class="label">Email:</span> [% p.epost | html_entity %]</li>[% END %]
97
[% IF ( p.epost ) %]<li><span class="label">[% t('Email:') %]</span> [% p.epost | html_entity %]</li>[% END %]
97
[% IF ( p.epost_sjekk ) %]<li><span class="label">Email check:</span> [% p.epost_sjekk | html_entity %]</li>[% END %]
98
[% IF ( p.epost_sjekk ) %]<li><span class="label">[% t('Email check:') %]</span> [% p.epost_sjekk | html_entity %]</li>[% END %]
98
99
99
[% IF ( p.tlf_mobil ) %]<li><span class="label">Phone - mobile:</span> [% p.tlf_mobil | html_entity %]</li>[% END %]
100
[% IF ( p.tlf_mobil ) %]<li><span class="label">[% t('Phone - mobile:') %]</span> [% p.tlf_mobil | html_entity %]</li>[% END %]
100
[% IF ( p.tlf_hjemme ) %]<li><span class="label">Phone - home:</span> [% p.tlf_hjemme | html_entity %]</li>[% END %]
101
[% IF ( p.tlf_hjemme ) %]<li><span class="label">[% t('Phone - home:') %]</span> [% p.tlf_hjemme | html_entity %]</li>[% END %]
101
[% IF ( p.tlf_jobb ) %]<li><span class="label">Phone - work:</span> [% p.tlf_jobb | html_entity %]</li>[% END %]
102
[% IF ( p.tlf_jobb ) %]<li><span class="label">[% t('Phone - work:') %]</span> [% p.tlf_jobb | html_entity %]</li>[% END %]
102
103
103
[% IF ( p.p_adresse1 ) %]<li><span class="label">Address:</span> [% p.p_adresse1 | html_entity %]</li>[% END %]
104
[% IF ( p.p_adresse1 ) %]<li><span class="label">[% t('Address:') %]</span> [% p.p_adresse1 | html_entity %]</li>[% END %]
104
[% IF ( p.p_adresse2 ) %]<li><span class="label">Address 2:</span> [% p.p_adresse2 | html_entity %]</li>[% END %]
105
[% IF ( p.p_adresse2 ) %]<li><span class="label">[% t('Address 2:') %]</span> [% p.p_adresse2 | html_entity %]</li>[% END %]
105
[% IF ( p.p_postnr ) %]<li><span class="label">Zip/Postal code:</span> [% p.p_postnr | html_entity %]</li>[% END %]
106
[% IF ( p.p_postnr ) %]<li><span class="label">[% t('Zip/Postal code:') %]</span> [% p.p_postnr | html_entity %]</li>[% END %]
106
[% IF ( p.p_sted ) %]<li><span class="label">City:</span> [% p.p_sted | html_entity %]</li>[% END %]
107
[% IF ( p.p_sted ) %]<li><span class="label">[% t('City:') %]</span> [% p.p_sted | html_entity %]</li>[% END %]
107
[% IF ( p.p_land ) %]<li><span class="label">Country:</span> [% p.p_land | html_entity %]</li>[% END %]
108
[% IF ( p.p_land ) %]<li><span class="label">[% t('Country:') %]</span> [% p.p_land | html_entity %]</li>[% END %]
108
[% IF ( p.p_sjekk ) %]<li><span class="label">Check:</span> [% p.p_sjekk | html_entity %]</li>[% END %]
109
[% IF ( p.p_sjekk ) %]<li><span class="label">[% t('Check:') %]</span> [% p.p_sjekk | html_entity %]</li>[% END %]
109
110
110
[% IF ( p.m_adresse1 ) %]<li><span class="label">Address:</span> [% p.m_adresse1 | html_entity %]</li>[% END %]
111
[% IF ( p.m_adresse1 ) %]<li><span class="label">[% t('Address:') %]</span> [% p.m_adresse1 | html_entity %]</li>[% END %]
111
[% IF ( p.m_adresse2 ) %]<li><span class="label">Address 2:</span> [% p.m_adresse2 | html_entity %]</li>[% END %]
112
[% IF ( p.m_adresse2 ) %]<li><span class="label">[% t('Address 2:') %]</span> [% p.m_adresse2 | html_entity %]</li>[% END %]
112
[% IF ( p.m_postnr ) %]<li><span class="label">Zip/Postal code:</span> [% p.m_postnr | html_entity %]</li>[% END %]
113
[% IF ( p.m_postnr ) %]<li><span class="label">[% t('Zip/Postal code:') %]</span> [% p.m_postnr | html_entity %]</li>[% END %]
113
[% IF ( p.m_sted ) %]<li><span class="label">City:</span> [% p.m_sted | html_entity %]</li>[% END %]
114
[% IF ( p.m_sted ) %]<li><span class="label">[% t('City:') %]</span> [% p.m_sted | html_entity %]</li>[% END %]
114
[% IF ( p.m_land ) %]<li><span class="label">Country:</span> [% p.m_land | html_entity %]</li>[% END %]
115
[% IF ( p.m_land ) %]<li><span class="label">[% t('Country:') %]</span> [% p.m_land | html_entity %]</li>[% END %]
115
[% IF ( p.m_sjek ) %]<li><span class="label">Check:</span> [% p.m_sjekk | html_entity %]</li>[% END %]
116
[% IF ( p.m_sjek ) %]<li><span class="label">[% t('Check:') %]</span> [% p.m_sjekk | html_entity %]</li>[% END %]
116
[% IF ( p.m_gyldig_til ) %]<li><span class="label">Valid until:</span> [% p.m_gyldig_til | html_entity %]</li>[% END %]
117
[% IF ( p.m_gyldig_til ) %]<li><span class="label">[% t('Valid until:') %]</span> [% p.m_gyldig_til | html_entity %]</li>[% END %]
117
118
118
[% IF ( p.pin ) %]<li><span class="label">PIN:</span> [% p.pin | html_entity %]</li>[% END %]
119
[% IF ( p.pin ) %]<li><span class="label">[% t('PIN:') %]</span> [% p.pin | html_entity %]</li>[% END %]
119
[% IF ( p.passord ) %]<li><span class="label">Password:</span> [% p.passord | html_entity %]</li>[% END %]
120
[% IF ( p.passord ) %]<li><span class="label">[% t('Password:') %]</span> [% p.passord | html_entity %]</li>[% END %]
120
[% IF ( p.feide ) %]<li><span class="label">FEIDE:</span> [% p.feide | html_entity %]</li>[% END %]
121
[% IF ( p.feide ) %]<li><span class="label">[% t('FEIDE:') %]</span> [% p.feide | html_entity %]</li>[% END %]
121
[% IF ( p.folkeregsjekk_dato ) %]<li><span class="label">Population registry date check:</span> [% p.folkeregsjekk_dato | html_entity %]</li>[% END %]
122
[% IF ( p.folkeregsjekk_dato ) %]<li><span class="label">[% t('Population registry date check:') %]</span> [% p.folkeregsjekk_dato | html_entity %]</li>[% END %]
122
123
123
[% IF ( p.hjemmebibliotek ) %]<li><span class="label">Home library:</span> [% p.hjemmebibliotek | html_entity %]</li>[% END %]
124
[% IF ( p.hjemmebibliotek ) %]<li><span class="label">[% t('Home library:') %]</span> [% p.hjemmebibliotek | html_entity %]</li>[% END %]
124
[% IF ( p.opprettet ) %]<li><span class="label">Created:</span> [% p.opprettet | html_entity %]</li>[% END %]
125
[% IF ( p.opprettet ) %]<li><span class="label">[% t('Created:') %]</span> [% p.opprettet | html_entity %]</li>[% END %]
125
[% IF ( p.opprettet_av ) %]<li><span class="label">Created by:</span> [% p.opprettet_av | html_entity %]</li>[% END %]
126
[% IF ( p.opprettet_av ) %]<li><span class="label">[% t('Created by:') %]</span> [% p.opprettet_av | html_entity %]</li>[% END %]
126
[% IF ( p.sist_endret ) %]<li><span class="label">Last changed:</span> [% p.sist_endret | html_entity %]</li>[% END %]
127
[% IF ( p.sist_endret ) %]<li><span class="label">[% t('Last changed:') %]</span> [% p.sist_endret | html_entity %]</li>[% END %]
127
[% IF ( p.sist_endret_av ) %]<li><span class="label">Last changed by:</span> [% p.sist_endret_av | html_entity %]</li>[% END %]
128
[% IF ( p.sist_endret_av ) %]<li><span class="label">[% t('Last changed by:') %]</span> [% p.sist_endret_av | html_entity %]</li>[% END %]
128
[% IF ( p.gyldig_til ) %]<li><span class="label">Valid until:</span> [% p.gyldig_til | html_entity %]</li>[% END %]
129
[% IF ( p.gyldig_til ) %]<li><span class="label">[% t('Valid until:') %]</span> [% p.gyldig_til | html_entity %]</li>[% END %]
129
130
130
[% IF ( p.prim_kontakt ) %]<li><span class="label">Primary contact:</span> [% p.prim_kontakt | html_entity %]</li>[% END %]
131
[% IF ( p.prim_kontakt ) %]<li><span class="label">[% t('Primary contact:') %]</span> [% p.prim_kontakt | html_entity %]</li>[% END %]
131
</ol>
132
</ol>
132
133
133
<form action="nl-search.pl" method="POST">
134
<form action="nl-search.pl" method="POST">
Lines 167-173 Link Here
167
<input type="hidden" name="tlf_jobb" value="[% p.tlf_jobb | html_entity %]" />
168
<input type="hidden" name="tlf_jobb" value="[% p.tlf_jobb | html_entity %]" />
168
<input type="hidden" name="prim_kontakt" value="[% p.prim_kontakt | html_entity %]" />
169
<input type="hidden" name="prim_kontakt" value="[% p.prim_kontakt | html_entity %]" />
169
<input type="submit" value="Import this patron" />
170
<input type="submit" value="Import this patron" />
170
as
171
[% t('as') %]
171
<select name="categorycode">
172
<select name="categorycode">
172
[% FOREACH c IN categories %]
173
[% FOREACH c IN categories %]
173
    <option value="[% c.categorycode %]">[% c.description %]</option>
174
    <option value="[% c.categorycode %]">[% c.description %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-18 / +19 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
Lines 5-11 Link Here
5
[% USE KohaDates %]
6
[% USE KohaDates %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Sent notices for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
<title>[% t('Sent notices for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
<style type="text/css">
12
<style type="text/css">
Lines 18-40 Link Here
18
[% INCLUDE 'header.inc' %]
19
[% INCLUDE 'header.inc' %]
19
[% INCLUDE 'patron-search.inc' %]
20
[% INCLUDE 'patron-search.inc' %]
20
21
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Sent notices for [% INCLUDE 'patron-title.inc' %]</div>
22
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Sent notices for') %] [% INCLUDE 'patron-title.inc' %]</div>
22
23
23
<div id="doc3" class="yui-t2">
24
<div id="doc3" class="yui-t2">
24
    <div id="bd">
25
    <div id="bd">
25
    <div id="yui-main">
26
    <div id="yui-main">
26
    <div class="yui-b">
27
    <div class="yui-b">
27
[% INCLUDE 'members-toolbar.inc' %]
28
[% INCLUDE 'members-toolbar.inc' %]
28
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
29
<h1>[% t('Sent notices for') %] [% INCLUDE 'patron-title.inc' %]</h1>
29
30
30
[% IF ( QUEUED_MESSAGES ) %]
31
[% IF ( QUEUED_MESSAGES ) %]
31
    <table id="noticestable">
32
    <table id="noticestable">
32
	<thead>
33
	<thead>
33
	    <tr>
34
	    <tr>
34
		<th>Notice</th>
35
		<th>[% t('Notice') %]</th>
35
		<th>Type</th>
36
		<th>[% t('Type') %]</th>
36
		<th>Status</th>
37
		<th>[% t('Status') %]</th>
37
		<th>Time</th>
38
		<th>[% t('Time') %]</th>
38
	    </tr>
39
	    </tr>
39
	</thead>
40
	</thead>
40
	<tbody>
41
	<tbody>
Lines 47-72 Link Here
47
            </div>
48
            </div>
48
        </td>
49
        </td>
49
		<td>
50
		<td>
50
            [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
51
            [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %][% t('email') %]
51
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
52
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %][% t('print') %]
52
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
53
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %][% t('feed') %]
53
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
54
            [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %][% t('sms') %]
54
            [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
55
            [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
55
        </td>
56
        </td>
56
		<td>
57
		<td>
57
            [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
58
            [% IF ( QUEUED_MESSAGE.status == 'sent' ) %][% t('sent') %]
58
            [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
59
            [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %][% t('pending') %]
59
            [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
60
            [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %][% t('failed') %]
60
            [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
61
            [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %][% t('deleted') %]
61
            [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
62
            [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
62
            [% IF ( QUEUED_MESSAGE.status != 'pending' ) %]
63
            [% IF ( QUEUED_MESSAGE.status != 'pending' ) %]
63
            <div id="resend_notice[% QUEUED_MESSAGE.message_id %]"  class="notice">
64
            <div id="resend_notice[% QUEUED_MESSAGE.message_id %]" class="notice">
64
                <form action="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]" method="POST">
65
                <form action="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]" method="POST">
65
                    <input type="hidden" name="op" value="resend_notice" />
66
                    <input type="hidden" name="op" value="resend_notice" />
66
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
67
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
67
                    <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
68
                    <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
68
                    <fieldset class="action">
69
                    <fieldset class="action">
69
                        <button class="btn btn-default btn-xs" type="submit">Resend</button>
70
                        <button class="btn btn-default btn-xs" type="submit">[% t('Resend') %]</button>
70
                    </fieldset>
71
                    </fieldset>
71
                </form>
72
                </form>
72
            </div>
73
            </div>
Lines 78-84 Link Here
78
	</tbody>
79
	</tbody>
79
    </table>
80
    </table>
80
[% ELSE %]
81
[% ELSE %]
81
    <div class="dialog message">There is no record of any messages that have been sent to this patron.</div>
82
    <div class="dialog message">[% t('There is no record of any messages that have been sent to this patron.') %]</div>
82
[% END %]
83
[% END %]
83
84
84
</div>
85
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-42 / +43 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
Lines 5-11 Link Here
5
[% USE Price %]
6
[% USE Price %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Patrons &rsaquo; Pay Fines for  [% patron.firstname |html %] [% patron.surname |html %]</title>
9
<title>[% t('Koha › Patrons › Pay Fines for') %]  [% patron.firstname |html %] [% patron.surname |html %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
11
12
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Pay fines for [% patron.firstname |html %] [% patron.surname |html %]</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Pay fines for') %] [% patron.firstname |html %] [% patron.surname |html %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   
20
   
Lines 25-56 Link Here
25
<!-- The manual invoice and credit buttons -->
26
<!-- The manual invoice and credit buttons -->
26
<div class="statictabs">
27
<div class="statictabs">
27
<ul>
28
<ul>
28
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li>
29
    <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account') %]</a></li>
29
    <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li>
30
    <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines') %]</a></li>
30
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li>
31
    <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual invoice') %]</a></li>
31
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li>
32
    <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual credit') %]</a></li>
32
</ul>
33
</ul>
33
<div class="tabs-container">
34
<div class="tabs-container">
34
35
35
[% IF ( accounts ) %]
36
[% IF ( accounts ) %]
36
    <form action="/cgi-bin/koha/members/pay.pl" method="post" id="pay-fines-form">
37
    <form action="/cgi-bin/koha/members/pay.pl" method="post" id="pay-fines-form">
37
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
38
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
38
<p><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span></p>
39
<p><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></span></p>
39
<table id="finest">
40
<table id="finest">
40
<thead>
41
<thead>
41
<tr>
42
<tr>
42
    <th>&nbsp;</th>
43
    <th> </th>
43
    <th>Fines &amp; charges</th>
44
    <th>[% t('Fines &amp; charges') %]</th>
44
    <th>Description</th>
45
    <th>[% t('Description') %]</th>
45
    <th>Payment note</th>
46
    <th>[% t('Payment note') %]</th>
46
    <th>Account type</th>
47
    <th>[% t('Account type') %]</th>
47
    <th>Amount</th>
48
    <th>[% t('Amount') %]</th>
48
    <th>Amount outstanding</th>
49
    <th>[% t('Amount outstanding') %]</th>
49
</tr>
50
</tr>
50
</thead>
51
</thead>
51
<tfoot>
52
<tfoot>
52
<tr>
53
<tr>
53
    <td class="total" colspan="6">Total due:</td>
54
    <td class="total" colspan="6">[% t('Total due:') %]</td>
54
    <td style="text-align: right;">[% total | $Price %]</td>
55
    <td style="text-align: right;">[% total | $Price %]</td>
55
</tr>
56
</tr>
56
</tfoot>
57
</tfoot>
Lines 77-102 Link Here
77
    </td>
78
    </td>
78
    <td>
79
    <td>
79
        [% SWITCH line.accounttype %]
80
        [% SWITCH line.accounttype %]
80
          [% CASE 'Pay' %]Payment, thanks
81
          [% CASE 'Pay' %][% t('Payment, thanks') %]
81
          [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
82
          [% CASE 'Pay00' %][% t('Payment, thanks (cash via SIP2)') %]
82
          [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
83
          [% CASE 'Pay01' %][% t('Payment, thanks (VISA via SIP2)') %]
83
          [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
84
          [% CASE 'Pay02' %][% t('Payment, thanks (credit card via SIP2)') %]
84
          [% CASE 'N' %]New card
85
          [% CASE 'N' %][% t('New card') %]
85
          [% CASE 'F' %]Fine
86
          [% CASE 'F' %][% t('Fine') %]
86
          [% CASE 'A' %]Account management fee
87
          [% CASE 'A' %][% t('Account management fee') %]
87
          [% CASE 'M' %]Sundry
88
          [% CASE 'M' %][% t('Sundry') %]
88
          [% CASE 'L' %]Lost item
89
          [% CASE 'L' %][% t('Lost item') %]
89
          [% CASE 'W' %]Writeoff
90
          [% CASE 'W' %][% t('Writeoff') %]
90
          [% CASE 'FU' %]Accruing fine
91
          [% CASE 'FU' %][% t('Accruing fine') %]
91
          [% CASE 'HE' %]Hold waiting too long
92
          [% CASE 'HE' %][% t('Hold waiting too long') %]
92
          [% CASE 'Rent' %]Rental fee
93
          [% CASE 'Rent' %][% t('Rental fee') %]
93
          [% CASE 'FOR' %]Forgiven
94
          [% CASE 'FOR' %][% t('Forgiven') %]
94
          [% CASE 'LR' %]Lost item fee refund
95
          [% CASE 'LR' %][% t('Lost item fee refund') %]
95
          [% CASE 'PF' %]Processing fee
96
          [% CASE 'PF' %][% t('Processing fee') %]
96
          [% CASE 'PAY' %]Payment
97
          [% CASE 'PAY' %][% t('Payment') %]
97
          [% CASE 'WO' %]Writeoff
98
          [% CASE 'WO' %][% t('Writeoff') %]
98
          [% CASE 'C' %]Credit
99
          [% CASE 'C' %][% t('Credit') %]
99
          [% CASE 'CR' %]Credit
100
          [% CASE 'CR' %][% t('Credit') %]
100
          [% CASE %][% line.accounttype %]
101
          [% CASE %][% line.accounttype %]
101
        [%- END -%]
102
        [%- END -%]
102
        [%- IF line.description %], [% line.description %][% END %]
103
        [%- IF line.description %], [% line.description %][% END %]
Lines 111-131 Link Here
111
[% IF ( account_grp.total ) %]
112
[% IF ( account_grp.total ) %]
112
<tr>
113
<tr>
113
114
114
    <td class="total" colspan="8" style="text-align: right;">Sub total:</td>
115
    <td class="total" colspan="8" style="text-align: right;">[% t('Sub total:') %]</td>
115
    <td style="text-align: right;">[% account_grp.total | $Price %]</td>
116
    <td style="text-align: right;">[% account_grp.total | $Price %]</td>
116
</tr>
117
</tr>
117
[% END %]
118
[% END %]
118
</tbody>
119
</tbody>
119
</table>
120
</table>
120
<fieldset class="action">
121
<fieldset class="action">
121
<input type="submit" id="paycollect" name="paycollect"  value="Pay amount" class="submit" />
122
<input type="submit" id="paycollect" name="paycollect" value="Pay amount" class="submit" />
122
[% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="woall"  id="woall" value="Write off all" class="submit" />[% END %]
123
[% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="woall" id="woall" value="Write off all" class="submit" />[% END %]
123
<input type="submit" id="payselected" name="payselected"  value="Pay selected" class="submit" />
124
<input type="submit" id="payselected" name="payselected" value="Pay selected" class="submit" />
124
<a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a>
125
<a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a>
125
</fieldset>
126
</fieldset>
126
</form>
127
</form>
127
[% ELSE %]
128
[% ELSE %]
128
    <p>[% patron.firstname |html %] [% patron.surname |html %] has no outstanding fines.</p>
129
    <p>[% patron.firstname |html %] [% patron.surname |html %] [% t('has no outstanding fines.') %]</p>
129
[% END %]
130
[% END %]
130
</div></div>
131
</div></div>
131
132
Lines 139-145 Link Here
139
[% MACRO jsinclude BLOCK %]
140
[% MACRO jsinclude BLOCK %]
140
    [% Asset.js("js/members-menu.js") %]
141
    [% Asset.js("js/members-menu.js") %]
141
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
142
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
142
    <script type= "text/javascript">
143
    <script type="text/javascript">
143
        function enableCheckboxActions(){
144
        function enableCheckboxActions(){
144
            // Enable/disable controls if checkboxes are checked
145
            // Enable/disable controls if checkboxes are checked
145
            var checkedBoxes = $("input.cb:checked");
146
            var checkedBoxes = $("input.cb:checked");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-32 / +33 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
Lines 5-18 Link Here
5
[% USE Price %]
6
[% USE Price %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Patrons &rsaquo; Collect fine payment for  [% patron.firstname %] [% patron.surname %]</title>
9
<title>[% t('Koha › Patrons › Collect fine payment for') %]  [% patron.firstname %] [% patron.surname %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
11
12
12
<body id="pat_paycollect" class="pat">
13
<body id="pat_paycollect" class="pat">
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Pay fines for [% patron.firstname %] [% patron.surname %]</a> &rsaquo; [% IF ( pay_individual ) %]Pay an individual fine[% ELSIF ( writeoff_individual ) %]Write off an individual fine[% ELSE %][% IF ( selected_accts ) %]Pay an amount toward selected fines[% ELSE %]Pay an amount toward all fines[% END %][% END %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  › <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines for') %] [% patron.firstname %] [% patron.surname %]</a> › [% IF ( pay_individual ) %][% t('Pay an individual fine') %][% ELSIF ( writeoff_individual ) %][% t('Write off an individual fine') %][% ELSE %][% IF ( selected_accts ) %][% t('Pay an amount toward selected fines') %][% ELSE %][% t('Pay an amount toward all fines') %][% END %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 26-47 Link Here
26
<div class="statictabs">
27
<div class="statictabs">
27
<ul>
28
<ul>
28
    <li>
29
    <li>
29
    <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a>
30
    <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Account') %]</a>
30
    </li>
31
    </li>
31
    <li class="active">
32
    <li class="active">
32
    <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a>
33
    <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Pay fines') %]</a>
33
    </li>
34
    </li>
34
    <li>
35
    <li>
35
    <a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a>
36
    <a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual invoice') %]</a>
36
    </li>
37
    </li>
37
    <li>
38
    <li>
38
    <a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a>
39
    <a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Create manual credit') %]</a>
39
    </li>
40
    </li>
40
</ul>
41
</ul>
41
<div class="tabs-container">
42
<div class="tabs-container">
42
[% IF ( error_over ) %]
43
[% IF ( error_over ) %]
43
    <div id="error_message" class="dialog alert">
44
    <div id="error_message" class="dialog alert">
44
    You must pay a value less than or equal to [% total_due | format('%.2f') %].
45
    [% t('You must pay a value less than or equal to') %] [% total_due | format('%.2f') %].
45
    </div>
46
    </div>
46
[% END %]
47
[% END %]
47
48
Lines 59-75 Link Here
59
    <input type="hidden" name="title" id="title" value="[% title %]" />
60
    <input type="hidden" name="title" id="title" value="[% title %]" />
60
61
61
<fieldset class="rows">
62
<fieldset class="rows">
62
    <legend>Pay an individual fine</legend>
63
    <legend>[% t('Pay an individual fine') %]</legend>
63
    <input type="hidden" name="payment_note" id="payment_note" value="[% payment_note %]" />
64
    <input type="hidden" name="payment_note" id="payment_note" value="[% payment_note %]" />
64
    <table>
65
    <table>
65
    <thead><tr>
66
    <thead><tr>
66
            <th>Description</th>
67
            <th>[% t('Description') %]</th>
67
            <th>Account type</th>
68
            <th>[% t('Account type') %]</th>
68
            <th>Amount</th>
69
            <th>[% t('Amount') %]</th>
69
            <th>Amount outstanding</th>
70
            <th>[% t('Amount outstanding') %]</th>
70
        </tr></thead>
71
        </tr></thead>
71
    <tfoot>
72
    <tfoot>
72
        <td colspan="3">Total amount payable:</td><td>[% amountoutstanding | format('%.2f') %]</td>
73
        <td colspan="3">[% t('Total amount payable:') %]</td><td>[% amountoutstanding | format('%.2f') %]</td>
73
    </tfoot>
74
    </tfoot>
74
    <tbody><tr>
75
    <tbody><tr>
75
            <td>
76
            <td>
Lines 84-97 Link Here
84
<ol>
85
<ol>
85
86
86
    <li>
87
    <li>
87
        <label for="paid">Collect from patron: </label>
88
        <label for="paid">[% t('Collect from patron:') %] </label>
88
            <!-- default to paying all -->
89
            <!-- default to paying all -->
89
        <input name="paid" id="paid" value="[% amountoutstanding %]" />
90
        <input name="paid" id="paid" value="[% amountoutstanding %]" />
90
    </li>
91
    </li>
91
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
92
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
92
    [% IF payment_types %]
93
    [% IF payment_types %]
93
        <li>
94
        <li>
94
            <label for="payment_type">Payment type: </label>
95
            <label for="payment_type">[% t('Payment type:') %] </label>
95
            <select name="payment_type" id="payment_type">
96
            <select name="payment_type" id="payment_type">
96
                <option value=""></option>
97
                <option value=""></option>
97
                [% FOREACH pt IN payment_types %]
98
                [% FOREACH pt IN payment_types %]
Lines 104-116 Link Here
104
</fieldset>
105
</fieldset>
105
106
106
    <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
107
    <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
107
        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></div>
108
        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a></div>
108
    </form>
109
    </form>
109
[% ELSIF ( writeoff_individual ) %]
110
[% ELSIF ( writeoff_individual ) %]
110
    <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" >
111
    <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post">
111
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
112
    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
112
    <fieldset class="rows">
113
    <fieldset class="rows">
113
    <legend>Write off an individual fine</legend>
114
    <legend>[% t('Write off an individual fine') %]</legend>
114
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
115
    <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
115
    <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" />
116
    <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" />
116
    <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" />
117
    <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" />
Lines 124-135 Link Here
124
    <input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" />
125
    <input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" />
125
    <table>
126
    <table>
126
    <thead><tr>
127
    <thead><tr>
127
            <th>Description</th>
128
            <th>[% t('Description') %]</th>
128
            <th>Account type</th>
129
            <th>[% t('Account type') %]</th>
129
            <th>Amount</th>
130
            <th>[% t('Amount') %]</th>
130
            <th>Amount outstanding</th>
131
            <th>[% t('Amount outstanding') %]</th>
131
        </tr></thead>
132
        </tr></thead>
132
    <tfoot><td colspan="3">Total amount outstanding:</td><td>[% amountoutstanding | format('%.2f') %]</td></tfoot>
133
    <tfoot><td colspan="3">[% t('Total amount outstanding:') %]</td><td>[% amountoutstanding | format('%.2f') %]</td></tfoot>
133
    <tbody><tr>
134
    <tbody><tr>
134
            <td>[% description %] [% title %]</td>
135
            <td>[% description %] [% title %]</td>
135
            <td>[% accounttype %]</td>
136
            <td>[% accounttype %]</td>
Lines 140-146 Link Here
140
141
141
            <ol>
142
            <ol>
142
                <li>
143
                <li>
143
                    <label for="paid">Writeoff amount: </label>
144
                    <label for="paid">[% t('Writeoff amount:') %] </label>
144
                    <!-- default to writing off all -->
145
                    <!-- default to writing off all -->
145
                    <input name="amountwrittenoff" id="amountwrittenoff" value="[% amountoutstanding | $Price on_editing => 1 %]" />
146
                    <input name="amountwrittenoff" id="amountwrittenoff" value="[% amountoutstanding | $Price on_editing => 1 %]" />
146
                </li>
147
                </li>
Lines 148-154 Link Here
148
        </fieldset>
149
        </fieldset>
149
        <div class="action">
150
        <div class="action">
150
            <input type="submit" value="Write off this charge" />
151
            <input type="submit" value="Write off this charge" />
151
            <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a>
152
            <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a>
152
        </div>
153
        </div>
153
    </form>
154
    </form>
154
[% ELSE %]
155
[% ELSE %]
Lines 160-180 Link Here
160
    <input type="hidden" name="total" id="total" value="[% total %]" />
161
    <input type="hidden" name="total" id="total" value="[% total %]" />
161
162
162
    <fieldset class="rows">
163
    <fieldset class="rows">
163
    [% IF ( selected_accts ) %]<legend>Pay an amount toward selected fines</legend>[% ELSE %]<legend>Pay an amount toward all fines</legend>[% END %]
164
    [% IF ( selected_accts ) %]<legend>[% t('Pay an amount toward selected fines') %]</legend>[% ELSE %]<legend>[% t('Pay an amount toward all fines') %]</legend>[% END %]
164
    <ol>
165
    <ol>
165
        <li>
166
        <li>
166
            <span class="label">Total amount outstanding: </span>
167
            <span class="label">[% t('Total amount outstanding:') %] </span>
167
            <span class="debit">[% total | format('%.2f') %]</span>
168
            <span class="debit">[% total | format('%.2f') %]</span>
168
        </li>
169
        </li>
169
    <li>
170
    <li>
170
        <label for="paid">Collect from patron: </label>
171
        <label for="paid">[% t('Collect from patron:') %] </label>
171
        <!-- default to paying all -->
172
        <!-- default to paying all -->
172
        <input name="paid" id="paid" value="[% total | format('%.2f') %]" />
173
        <input name="paid" id="paid" value="[% total | format('%.2f') %]" />
173
    </li>
174
    </li>
174
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
175
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
175
    [% IF payment_types %]
176
    [% IF payment_types %]
176
        <li>
177
        <li>
177
            <label for="payment_type">Payment type: </label>
178
            <label for="payment_type">[% t('Payment type:') %] </label>
178
            <select name="payment_type" id="payment_type">
179
            <select name="payment_type" id="payment_type">
179
                <option value=""></option>
180
                <option value=""></option>
180
                [% FOREACH pt IN payment_types %]
181
                [% FOREACH pt IN payment_types %]
Lines 184-196 Link Here
184
        </li>
185
        </li>
185
    [% END %]
186
    [% END %]
186
    <li>
187
    <li>
187
        <label for="selected_accts_notes">Note: </label>
188
        <label for="selected_accts_notes">[% t('Note:') %] </label>
188
        <textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea>
189
        <textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea>
189
    </li>
190
    </li>
190
    </ol>
191
    </ol>
191
    </fieldset>
192
    </fieldset>
192
    <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
193
    <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
193
        <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></div>
194
        <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">[% t('Cancel') %]</a></div>
194
    </form>
195
    </form>
195
[% END %]
196
[% END %]
196
</div></div>
197
</div></div>
Lines 204-210 Link Here
204
205
205
[% MACRO jsinclude BLOCK %]
206
[% MACRO jsinclude BLOCK %]
206
    [% Asset.js("js/members-menu.js") %]
207
    [% Asset.js("js/members-menu.js") %]
207
    <script type= "text/javascript">
208
    <script type="text/javascript">
208
        $(document).ready(function() {
209
        $(document).ready(function() {
209
            $('#payindivfine, #payfine').preventDoubleFormSubmit();
210
            $('#payindivfine, #payfine').preventDoubleFormSubmit();
210
            $("#paid").on("change",function(){
211
            $("#paid").on("change",function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt (-23 / +24 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Print receipt for [% patron.cardnumber %]</title>
8
<title>[% t('Print receipt for') %] [% patron.cardnumber %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/printreceiptinvoice.css") %]
10
[% Asset.css("css/printreceiptinvoice.css") %]
10
[% INCLUDE 'blocking_errors.inc' %]
11
[% INCLUDE 'blocking_errors.inc' %]
Lines 17-48 Link Here
17
<table>
18
<table>
18
[% IF ( LibraryName ) %]
19
[% IF ( LibraryName ) %]
19
 <tr>
20
 <tr>
20
    <th colspan=4 class="centerednames">
21
    <th colspan="4" class="centerednames">
21
		<h3>[% LibraryName %]</h3>
22
		<h3>[% LibraryName %]</h3>
22
	</th>
23
	</th>
23
 </tr>
24
 </tr>
24
[% END %]
25
[% END %]
25
 <tr>
26
 <tr>
26
    <th colspan=4 class="centerednames">
27
    <th colspan="4" class="centerednames">
27
        <h2><u>Fee receipt</u></h2>
28
        <h2><u>[% t('Fee receipt') %]</u></h2>
28
	</th>
29
	</th>
29
 </tr>
30
 </tr>
30
 <tr>
31
 <tr>
31
    <th colspan=4 class="centerednames">
32
    <th colspan="4" class="centerednames">
32
        <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
33
        <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
33
	</th>
34
	</th>
34
 </tr>
35
 </tr>
35
 <tr>
36
 <tr>
36
    <th colspan=4 >
37
    <th colspan="4">
37
        Received with thanks from  [% patron.firstname %] [% patron.surname %] <br />
38
        [% t('Received with thanks from') %]  [% patron.firstname %] [% patron.surname %] <br />
38
        Card number : [% patron.cardnumber %]<br />
39
        [% t('Card number :') %] [% patron.cardnumber %]<br />
39
	</th>
40
	</th>
40
 </tr>
41
 </tr>
41
  <tr>
42
  <tr>
42
	<th>Date</th>
43
	<th>[% t('Date') %]</th>
43
    <th>Description of charges</th>
44
    <th>[% t('Description of charges') %]</th>
44
    <th>Note</th>
45
    <th>[% t('Note') %]</th>
45
    <th>Amount</th>
46
    <th>[% t('Amount') %]</th>
46
 </tr>
47
 </tr>
47
48
48
  [% FOREACH account IN accounts %]
49
  [% FOREACH account IN accounts %]
Lines 50-65 Link Here
50
      <td>[% account.date | $KohaDates %]</td>
51
      <td>[% account.date | $KohaDates %]</td>
51
      <td>
52
      <td>
52
        [% SWITCH account.accounttype %]
53
        [% SWITCH account.accounttype %]
53
          [% CASE 'Pay' %]Payment, thanks
54
          [% CASE 'Pay' %][% t('Payment, thanks') %]
54
          [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
          [% CASE 'Pay00' %][% t('Payment, thanks (cash via SIP2)') %]
55
          [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
          [% CASE 'Pay01' %][% t('Payment, thanks (VISA via SIP2)') %]
56
          [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
          [% CASE 'Pay02' %][% t('Payment, thanks (credit card via SIP2)') %]
57
          [% CASE 'N' %]New Card
58
          [% CASE 'N' %][% t('New Card') %]
58
          [% CASE 'F' %]Fine
59
          [% CASE 'F' %][% t('Fine') %]
59
          [% CASE 'A' %]Account management fee
60
          [% CASE 'A' %][% t('Account management fee') %]
60
          [% CASE 'M' %]Sundry
61
          [% CASE 'M' %][% t('Sundry') %]
61
          [% CASE 'L' %]Lost Item
62
          [% CASE 'L' %][% t('Lost Item') %]
62
          [% CASE 'W' %]Writeoff
63
          [% CASE 'W' %][% t('Writeoff') %]
63
          [% CASE %][% account.accounttype %]
64
          [% CASE %][% account.accounttype %]
64
        [%- END -%]
65
        [%- END -%]
65
        [%- IF account.description %], [% account.description %][% END %]
66
        [%- IF account.description %], [% account.description %][% END %]
Lines 71-77 Link Here
71
  [% END %]
72
  [% END %]
72
<tfoot>
73
<tfoot>
73
  <tr>
74
  <tr>
74
    <td colspan="3">Total outstanding dues as on date : </td>
75
    <td colspan="3">[% t('Total outstanding dues as on date :') %] </td>
75
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
76
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
76
  </tr>
77
  </tr>
77
  </tfoot>
78
  </tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt (-21 / +22 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Print receipt for [% patron.cardnumber %]</title>
8
<title>[% t('Print receipt for') %] [% patron.cardnumber %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/printreceiptinvoice.css") %]
10
[% Asset.css("css/printreceiptinvoice.css") %]
10
</head>
11
</head>
Lines 23-29 Link Here
23
[% END %]
24
[% END %]
24
  <tr>
25
  <tr>
25
    <th colspan="5" class="centerednames">
26
    <th colspan="5" class="centerednames">
26
		<h2><u>INVOICE</u></h2>
27
		<h2><u>[% t('INVOICE') %]</u></h2>
27
	</th>
28
	</th>
28
  </tr>
29
  </tr>
29
  <tr>
30
  <tr>
Lines 32-48 Link Here
32
	</th>
33
	</th>
33
  </tr>
34
  </tr>
34
  <tr>
35
  <tr>
35
    <th colspan="5" >
36
    <th colspan="5">
36
        Bill to: [% patron.firstname %] [% patron.surname %] <br />
37
        [% t('Bill to:') %] [% patron.firstname %] [% patron.surname %] <br />
37
        Card number: [% patron.cardnumber %]<br />
38
        [% t('Card number:') %] [% patron.cardnumber %]<br />
38
	</th>
39
	</th>
39
  </tr>
40
  </tr>
40
  <tr>
41
  <tr>
41
	<th>Date</th>
42
	<th>[% t('Date') %]</th>
42
    <th>Description of charges</th>
43
    <th>[% t('Description of charges') %]</th>
43
    <th>Note</th>
44
    <th>[% t('Note') %]</th>
44
    <th style="text-align:right;">Amount</th>
45
    <th style="text-align:right;">[% t('Amount') %]</th>
45
    <th style="text-align:right;">Amount outstanding</th>
46
    <th style="text-align:right;">[% t('Amount outstanding') %]</th>
46
 </tr>
47
 </tr>
47
48
48
  [% FOREACH account IN accounts %]
49
  [% FOREACH account IN accounts %]
Lines 50-65 Link Here
50
      <td>[% account.date | $KohaDates%]</td>
51
      <td>[% account.date | $KohaDates%]</td>
51
       <td>
52
       <td>
52
        [% SWITCH account.accounttype %]
53
        [% SWITCH account.accounttype %]
53
          [% CASE 'Pay' %]Payment, thanks
54
          [% CASE 'Pay' %][% t('Payment, thanks') %]
54
          [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
          [% CASE 'Pay00' %][% t('Payment, thanks (cash via SIP2)') %]
55
          [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
          [% CASE 'Pay01' %][% t('Payment, thanks (VISA via SIP2)') %]
56
          [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
          [% CASE 'Pay02' %][% t('Payment, thanks (credit card via SIP2)') %]
57
          [% CASE 'N' %]New Card
58
          [% CASE 'N' %][% t('New Card') %]
58
          [% CASE 'F' %]Fine
59
          [% CASE 'F' %][% t('Fine') %]
59
          [% CASE 'A' %]Account management fee
60
          [% CASE 'A' %][% t('Account management fee') %]
60
          [% CASE 'M' %]Sundry
61
          [% CASE 'M' %][% t('Sundry') %]
61
          [% CASE 'L' %]Lost Item
62
          [% CASE 'L' %][% t('Lost Item') %]
62
          [% CASE 'W' %]Writeoff
63
          [% CASE 'W' %][% t('Writeoff') %]
63
          [% CASE %][% account.accounttype %]
64
          [% CASE %][% account.accounttype %]
64
        [%- END -%]
65
        [%- END -%]
65
        [%- IF account.description %], [% account.description %][% END %]
66
        [%- IF account.description %], [% account.description %][% END %]
Lines 72-78 Link Here
72
  [% END %]
73
  [% END %]
73
<tfoot>
74
<tfoot>
74
  <tr>
75
  <tr>
75
    <td colspan="4">Total outstanding dues as on date: </td>
76
    <td colspan="4">[% t('Total outstanding dues as on date:') %] </td>
76
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
77
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
77
  </tr>
78
  </tr>
78
  </tfoot>
79
  </tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt (-19 / +20 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues  %]
4
[% USE AuthorisedValues  %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
<title>[% t('Koha › Patrons › Purchase suggestions for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
Lines 14-22 Link Here
14
[% INCLUDE 'patron-search.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
15
16
16
<div id="breadcrumbs">
17
<div id="breadcrumbs">
17
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
18
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
19
› <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
19
&rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
20
[% t('› Purchase suggestions for') %] [% INCLUDE 'patron-title.inc' %]
20
</div>
21
</div>
21
22
22
<div id="doc3" class="yui-t1">
23
<div id="doc3" class="yui-t1">
Lines 25-44 Link Here
25
    <div id="yui-main">
26
    <div id="yui-main">
26
        <div class="yui-b">
27
        <div class="yui-b">
27
            <div class="yui-g">
28
            <div class="yui-g">
28
                <h2>Purchase suggestions</h2>
29
                <h2>[% t('Purchase suggestions') %]</h2>
29
30
30
                <div id="toolbar" class="btn-toolbar">
31
                <div id="toolbar" class="btn-toolbar">
31
                    <a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% patron.borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
32
                    <a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% patron.borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-plus"></i> [% t('New purchase suggestion') %]</a>
32
                </div>
33
                </div>
33
34
34
                [% IF suggestions %]
35
                [% IF suggestions %]
35
                  <table id="suggestions">
36
                  <table id="suggestions">
36
                    <thead>
37
                    <thead>
37
                        <tr>
38
                        <tr>
38
                          <th>Summary</th>
39
                          <th>[% t('Summary') %]</th>
39
                          <th>Note</th>
40
                          <th>[% t('Note') %]</th>
40
                          <th>Managed by</th>
41
                          <th>[% t('Managed by') %]</th>
41
                          <th>Status</th>
42
                          <th>[% t('Status') %]</th>
42
                        </tr>
43
                        </tr>
43
                    </thead>
44
                    </thead>
44
45
Lines 49-55 Link Here
49
                                    <p>
50
                                    <p>
50
                                        <strong>
51
                                        <strong>
51
                                            [% IF ( CAN_user_catalogue ) %]
52
                                            [% IF ( CAN_user_catalogue ) %]
52
                                                <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&amp;op=show">[% s.title |html %]</a>
53
                                                <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&op=show">[% s.title |html %]</a>
53
                                            [% ELSE %]
54
                                            [% ELSE %]
54
                                                [% s.title |html %]
55
                                                [% s.title |html %]
55
                                            [% END %]
56
                                            [% END %]
Lines 71-86 Link Here
71
                                        [% IF ( s.firstnamemanagedby ) %],[% END %]
72
                                        [% IF ( s.firstnamemanagedby ) %],[% END %]
72
                                        [% s.firstnamemanagedby %]
73
                                        [% s.firstnamemanagedby %]
73
                                    [% ELSE %]
74
                                    [% ELSE %]
74
                                        &nbsp;
75
                                         
75
                                    [% END %]
76
                                    [% END %]
76
                                </td>
77
                                </td>
77
                                <td>
78
                                <td>
78
                                    [% IF ( s.ASKED ) %]Requested[% END %]
79
                                    [% IF ( s.ASKED ) %][% t('Requested') %][% END %]
79
                                    [% IF ( s.CHECKED ) %]Checked by the library[% END %]
80
                                    [% IF ( s.CHECKED ) %][% t('Checked by the library') %][% END %]
80
                                    [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
81
                                    [% IF ( s.ACCEPTED ) %][% t('Accepted by the library') %][% END %]
81
                                    [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
82
                                    [% IF ( s.ORDERED ) %][% t('Ordered by the library') %][% END %]
82
                                    [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
83
                                    [% IF ( s.REJECTED ) %][% t('Suggestion declined') %] [% END %]
83
                                    [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
84
                                    [% IF ( s.AVAILABLE ) %][% t('Available in the library') %][% END %]
84
                                    [% IF ( s.reason ) %]([% s.reason %])[% END %]
85
                                    [% IF ( s.reason ) %]([% s.reason %])[% END %]
85
                                </td>
86
                                </td>
86
                            </tr>
87
                            </tr>
Lines 89-95 Link Here
89
                  </table>
90
                  </table>
90
                [% ELSE %]
91
                [% ELSE %]
91
                    <div class="dialog message">
92
                    <div class="dialog message">
92
                        <p>This patron has not submitted any purchase suggestions</p>
93
                        <p>[% t('This patron has not submitted any purchase suggestions') %]</p>
93
                    </div>
94
                    </div>
94
                [% END %]
95
                [% END %]
95
            </div>
96
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-23 / +24 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Koha %]
4
[% USE Koha %]
Lines 5-11 Link Here
5
[% USE Branches %]
6
[% USE Branches %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Circulation History for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
<title>[% t('Circulation History for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
</head>
12
</head>
Lines 14-20 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
16
[% INCLUDE 'patron-search.inc' %]
16
17
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Circulation history for [% INCLUDE 'patron-title.inc' %]</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Circulation history for') %] [% INCLUDE 'patron-title.inc' %]</div>
18
19
19
<div id="doc3" class="yui-t2">
20
<div id="doc3" class="yui-t2">
20
   
21
   
Lines 22-37 Link Here
22
	<div id="yui-main">
23
	<div id="yui-main">
23
	<div class="yui-b">
24
	<div class="yui-b">
24
[% INCLUDE 'members-toolbar.inc' %]
25
[% INCLUDE 'members-toolbar.inc' %]
25
<h1>Circulation history</h1>
26
<h1>[% t('Circulation history') %]</h1>
26
27
27
[% UNLESS Koha.Preference('intranetreadinghistory') %]
28
[% UNLESS Koha.Preference('intranetreadinghistory') %]
28
    <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
29
    <div class="dialog alert">[% t('Staff members are not allowed to access patron\'s checkout history') %]</div>
29
[% ELSIF is_anonymous %]
30
[% ELSIF is_anonymous %]
30
    <div class="dialog alert">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div>
31
    <div class="dialog alert">[% t('This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.') %]</div>
31
[% ELSIF ( patron.privacy == 2)  %]
32
[% ELSIF ( patron.privacy == 2)  %]
32
    <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
33
    <div class="dialog message">[% t('This patron has set the privacy rules to never keeping a circulation history.') %]</div>
33
[% ELSIF ( !loop_reading ) %]
34
[% ELSIF ( !loop_reading ) %]
34
    <div class="dialog message">This patron has no circulation history.</div>
35
    <div class="dialog message">[% t('This patron has no circulation history.') %]</div>
35
[% ELSE %]
36
[% ELSE %]
36
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /></form>
37
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /></form>
37
38
Lines 39-63 Link Here
39
<div id="tabs" class="toptabs">
40
<div id="tabs" class="toptabs">
40
  [% IF Koha.Preference('OnSiteCheckouts') %]
41
  [% IF Koha.Preference('OnSiteCheckouts') %]
41
  <ul>
42
  <ul>
42
    <li><a href="#readingrec" id="tab_all">All</a></li>
43
    <li><a href="#readingrec" id="tab_all">[% t('All') %]</a></li>
43
    <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
44
    <li><a href="#readingrec" id="tab_checkout">[% t('Checkouts') %]</a></li>
44
    <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
45
    <li><a href="#readingrec" id="tab_onsite_checkout">[% t('On-site checkouts') %]</a></li>
45
  </ul>
46
  </ul>
46
  [% END %]
47
  [% END %]
47
  <div id="readingrec" style="overflow:hidden">
48
  <div id="readingrec" style="overflow:hidden">
48
    <table id="table_readingrec">
49
    <table id="table_readingrec">
49
      <thead>
50
      <thead>
50
        <th style="display:none;">Type</th>
51
        <th style="display:none;">[% t('Type') %]</th>
51
        <th class="title-string">Date</th>
52
        <th class="title-string">[% t('Date') %]</th>
52
        <th class="anti-the">Title</th>
53
        <th class="anti-the">[% t('Title') %]</th>
53
        <th>Author</th>
54
        <th>[% t('Author') %]</th>
54
        <th>Call no.</th>
55
        <th>[% t('Call no.') %]</th>
55
        <th>Barcode</th>
56
        <th>[% t('Barcode') %]</th>
56
        <th>Number of renewals</th>
57
        <th>[% t('Number of renewals') %]</th>
57
        <th class="title-string">Checked out on</th>
58
        <th class="title-string">[% t('Checked out on') %]</th>
58
        <th>Checked out from</th>
59
        <th>[% t('Checked out from') %]</th>
59
        <th class="title-string">Date due</th>
60
        <th class="title-string">[% t('Date due') %]</th>
60
        <th class="title-string">Return date</th>
61
        <th class="title-string">[% t('Return date') %]</th>
61
      </thead>
62
      </thead>
62
      <tbody>
63
      <tbody>
63
      [% FOREACH issue IN loop_reading %]
64
      [% FOREACH issue IN loop_reading %]
Lines 93-106 Link Here
93
            [% IF issue.date_due %]
94
            [% IF issue.date_due %]
94
                <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
95
                <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
95
            [% ELSE %]
96
            [% ELSE %]
96
                <span title="0000-00-00"></span>
97
                <span title="[% t('0000-00-00') %]"></span>
97
            [% END %]
98
            [% END %]
98
          </td>
99
          </td>
99
          <td>
100
          <td>
100
            [% IF  issue.returndate %]
101
            [% IF  issue.returndate %]
101
              <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
102
              <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
102
            [% ELSE %]
103
            [% ELSE %]
103
              <span title="Checked out"><small>Checked out</small></span>
104
              <span title="[% t('Checked out') %]"><small>[% t('Checked out') %]</small></span>
104
            [% END %]
105
            [% END %]
105
          </td>
106
          </td>
106
        </tr>
107
        </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt (-10 / +11 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Subscription routing lists for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
<title>[% t('Subscription routing lists for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'patron-search.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Subscription routing lists for [% INCLUDE 'patron-title.inc' %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>  [% t('› Subscription routing lists for') %] [% INCLUDE 'patron-title.inc' %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
    <div id="bd">
19
    <div id="bd">
Lines 21-36 Link Here
21
[% INCLUDE 'members-toolbar.inc' %]
22
[% INCLUDE 'members-toolbar.inc' %]
22
23
23
<!-- Search Bar -->
24
<!-- Search Bar -->
24
<p class="tip">Search subscriptions:</p>
25
<p class="tip">[% t('Search subscriptions:') %]</p>
25
<form action="/cgi-bin/koha/serials/serials-home.pl" method="get">[% IF ( routing ) %]<input type="hidden" name="routing" value="[% routing %]" />[% END %]<input type="hidden" name="searched" value="1" /> <label for="ISSN_filter">ISSN:</label> <input type="text" size="10" maxlength="11" name="ISSN_filter" id="ISSN_filter" value="[% ISSN_filter %]" /> <label for="title_filter">Title:</label> <input type="text" size="20" maxlength="40" name="title_filter" id="title_filter" value="[% title_filter %]" /><input type="submit" value="Search" class="submit" />
26
<form action="/cgi-bin/koha/serials/serials-home.pl" method="get">[% IF ( routing ) %]<input type="hidden" name="routing" value="[% routing %]" />[% END %]<input type="hidden" name="searched" value="1" /> <label for="ISSN_filter">[% t('ISSN:') %]</label> <input type="text" size="10" maxlength="11" name="ISSN_filter" id="ISSN_filter" value="[% ISSN_filter %]" /> <label for="title_filter">[% t('Title:') %]</label> <input type="text" size="20" maxlength="40" name="title_filter" id="title_filter" value="[% title_filter %]" /><input type="submit" value="Search" class="submit" />
26
</form>
27
</form>
27
<!-- Search Bar End -->
28
<!-- Search Bar End -->
28
29
29
<h1>
30
<h1>
30
[% IF ( countSubscrip ) %]
31
[% IF ( countSubscrip ) %]
31
[% countSubscrip %] Subscription routing list(s)
32
[% countSubscrip %] [% t('Subscription routing list(s)') %]
32
[% ELSE %]
33
[% ELSE %]
33
0 Subscription routing lists
34
[% t('0 Subscription routing lists') %]
34
[% END %]
35
[% END %]
35
</h1>
36
</h1>
36
37
Lines 39-46 Link Here
39
<table id="subscriptiont">
40
<table id="subscriptiont">
40
              <thead>
41
              <thead>
41
                <tr>
42
                <tr>
42
                  <th>Subscription title</th>
43
                  <th>[% t('Subscription title') %]</th>
43
                  <th>Routing list</th>
44
                  <th>[% t('Routing list') %]</th>
44
                </tr>
45
                </tr>
45
              </thead>
46
              </thead>
46
              <tbody>
47
              <tbody>
Lines 54-60 Link Here
54
                  </td>
55
                  </td>
55
                  <td>
56
                  <td>
56
                    <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscripLoop.subscriptionid %]"><strong>
57
                    <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscripLoop.subscriptionid %]"><strong>
57
                    Edit routing list
58
                    [% t('Edit routing list') %]
58
                      </strong>
59
                      </strong>
59
                    </a>
60
                    </a>
60
                    <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
61
                    <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
Lines 66-72 Link Here
66
            </table>
67
            </table>
67
            </form>
68
            </form>
68
          [% ELSE %]
69
          [% ELSE %]
69
          <p>Patron does not belong to any subscription routing lists.</p>
70
          <p>[% t('Patron does not belong to any subscription routing lists.') %]</p>
70
          <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
71
          <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
71
                    <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
72
                    <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
72
                    [% END %]
73
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt (-17 / +18 lines)
Lines 1-12 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo;
8
<title>[% t('Koha › Patrons ›') %]
8
[% UNLESS blocking_error %]
9
[% UNLESS blocking_error %]
9
    Statistics for [% INCLUDE 'patron-title.inc' no_html = 1 %]
10
    [% t('Statistics for') %] [% INCLUDE 'patron-title.inc' no_html = 1 %]
10
[% END %]
11
[% END %]
11
</title>
12
</title>
12
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 18-26 Link Here
18
[% INCLUDE 'patron-search.inc' %]
19
[% INCLUDE 'patron-search.inc' %]
19
20
20
<div id="breadcrumbs">
21
<div id="breadcrumbs">
21
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
22
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
23
› <a href="/cgi-bin/koha/members/members-home.pl">[% t('Patrons') %]</a>
23
&rsaquo; [% UNLESS blocking_error %]Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %][% END %]
24
› [% UNLESS blocking_error %][% t('Statistics for') %] [% INCLUDE 'patron-title.inc' invert_name = 1 %][% END %]
24
</div>
25
</div>
25
26
26
<div id="doc3" class="yui-t1">
27
<div id="doc3" class="yui-t1">
Lines 30-36 Link Here
30
        <div class="yui-b">
31
        <div class="yui-b">
31
        [% INCLUDE 'members-toolbar.inc' %]
32
        [% INCLUDE 'members-toolbar.inc' %]
32
33
33
            <h3>Statistics for [% INCLUDE 'patron-title.inc' %]</h3>
34
            <h3>[% t('Statistics for') %] [% INCLUDE 'patron-title.inc' %]</h3>
34
            [% IF ( datas.size ) %]
35
            [% IF ( datas.size ) %]
35
                <table id="statistics">
36
                <table id="statistics">
36
                <thead>
37
                <thead>
Lines 39-62 Link Here
39
                          <th>
40
                          <th>
40
                            [% SWITCH cn %]
41
                            [% SWITCH cn %]
41
                            [% CASE 'itype' %]
42
                            [% CASE 'itype' %]
42
                                Item type
43
                                [% t('Item type') %]
43
                            [% CASE 'ccode' %]
44
                            [% CASE 'ccode' %]
44
                                Collection code
45
                                [% t('Collection code') %]
45
                            [% CASE 'location' %]
46
                            [% CASE 'location' %]
46
                                Shelving location
47
                                [% t('Shelving location') %]
47
                            [% CASE 'homebranch' %]
48
                            [% CASE 'homebranch' %]
48
                                Home library
49
                                [% t('Home library') %]
49
                            [% CASE 'holdingbranch' %]
50
                            [% CASE 'holdingbranch' %]
50
                                Holding library
51
                                [% t('Holding library') %]
51
                            [% CASE %]
52
                            [% CASE %]
52
                                [% cn %]
53
                                [% cn %]
53
                            [% END %]
54
                            [% END %]
54
                          </th>
55
                          </th>
55
                      [% END %]
56
                      [% END %]
56
                      <th>Total checkouts as of yesterday</th>
57
                      <th>[% t('Total checkouts as of yesterday') %]</th>
57
                      <th>Today's checkouts</th>
58
                      <th>[% t('Today\'s checkouts') %]</th>
58
                      <th>Today's checkins</th>
59
                      <th>[% t('Today\'s checkins') %]</th>
59
                      <th>Total checkouts</th>
60
                      <th>[% t('Total checkouts') %]</th>
60
                    </tr>
61
                    </tr>
61
                </thead>
62
                </thead>
62
63
Lines 71-77 Link Here
71
                </tbody>
72
                </tbody>
72
                <tfoot>
73
                <tfoot>
73
                    <tr>
74
                    <tr>
74
                        <td colspan="[% column_names.size %]">TOTAL</td>
75
                        <td colspan="[% column_names.size %]">[% t('TOTAL') %]</td>
75
                        <td>[% count_total_precedent_state %]</td>
76
                        <td>[% count_total_precedent_state %]</td>
76
                        <td>[% count_total_issues %]</td>
77
                        <td>[% count_total_issues %]</td>
77
                        <td>[% count_total_issues_returned %]</td>
78
                        <td>[% count_total_issues_returned %]</td>
Lines 80-86 Link Here
80
                </tfoot>
81
                </tfoot>
81
                </table>
82
                </table>
82
            [% ELSE %]
83
            [% ELSE %]
83
                <div class="dialog message">There are no statistics for this patron.</div>
84
                <div class="dialog message">[% t('There are no statistics for this patron.') %]</div>
84
            [% END %]
85
            [% END %]
85
        </div>
86
        </div>
86
    </div>
87
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt (-7 / +7 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Choose adult category</title>
5
<title>[% t('Koha › Choose adult category') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 11-17 Link Here
11
12
12
[% IF ( MULTI ) %]
13
[% IF ( MULTI ) %]
13
14
14
    <h3> Choose adult category </h3>
15
    <h3> [% t('Choose adult category') %] </h3>
15
16
16
    [% IF patron_categories %]
17
    [% IF patron_categories %]
17
        <form method="post" action="update-child.pl">
18
        <form method="post" action="update-child.pl">
Lines 19-27 Link Here
19
                <table id="catst">
20
                <table id="catst">
20
                    <thead>
21
                    <thead>
21
                        <tr>
22
                        <tr>
22
                        <th>&nbsp;</th>
23
                        <th> </th>
23
                        <th>Code</th>
24
                        <th>[% t('Code') %]</th>
24
                        <th>Description</th>
25
                        <th>[% t('Description') %]</th>
25
                        </tr>
26
                        </tr>
26
                    </thead>
27
                    </thead>
27
                    <tbody>
28
                    <tbody>
Lines 43-49 Link Here
43
                <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
44
                <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
44
                <fieldset class="action">
45
                <fieldset class="action">
45
                    <input class="submit" type="submit" value="Submit" />
46
                    <input class="submit" type="submit" value="Submit" />
46
                    <a href="#" class="cancel close">Cancel</a>
47
                    <a href="#" class="cancel close">[% t('Cancel') %]</a>
47
                </fieldset>
48
                </fieldset>
48
            </fieldset>
49
            </fieldset>
49
        </form>
50
        </form>
50
- 

Return to bug 20988