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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-3 / +4 lines)
Lines 23-29 Link Here
23
        [% INCLUDE 'member-display-address-style-us.inc' %]
23
        [% INCLUDE 'member-display-address-style-us.inc' %]
24
    [% END %]
24
    [% END %]
25
25
26
    [% IF ( phone ) %]<li class="patronphone">
26
    [% IF ( phone || mobile || phonepro ) %]<li class="patronphone">
27
    [% IF ( phone ) %]
27
        <a href="tel:[% phone | url %]">[% phone | html %]</a>
28
        <a href="tel:[% phone | url %]">[% phone | html %]</a>
28
    [% ELSE %]
29
    [% ELSE %]
29
        [% IF ( mobile ) %]
30
        [% IF ( mobile ) %]
Lines 32-39 Link Here
32
            [% IF ( phonepro ) %]
33
            [% IF ( phonepro ) %]
33
                <a href="tel:[% phonepro | url %]">[% phonepro | html %]</a>
34
                <a href="tel:[% phonepro | url %]">[% phonepro | html %]</a>
34
            [% END %]
35
            [% END %]
35
        [% END %]</li>
36
        [% END %]
36
    [% END %]
37
    [% END %]</li>[% END %]
37
    [% IF ( email ) %]
38
    [% IF ( email ) %]
38
        <li class="email"> <a href="mailto:[% email | url %]" title="[% email | html %]">[% email | html %]</a></li>
39
        <li class="email"> <a href="mailto:[% email | url %]" title="[% email | html %]">[% email | html %]</a></li>
39
    [% ELSE %]
40
    [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-2 / +2 lines)
Lines 199-205 function searchToHold(){ Link Here
199
                [% IF ( is_child ) %]
199
                [% IF ( is_child ) %]
200
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
200
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
201
                [% ELSE %]
201
                [% ELSE %]
202
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="Patron is an adult" id="updatechild" href="#">Update child to adult patron</a></li></li>
202
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="Patron is an adult" id="updatechild" href="#">Update child to adult patron</a></li>
203
                [% END %]
203
                [% END %]
204
                [% IF Koha.Preference('intranetreadinghistory') %]
204
                [% IF Koha.Preference('intranetreadinghistory') %]
205
                    [%IF ( privacy == 2 ) %]
205
                    [%IF ( privacy == 2 ) %]
Lines 249-255 function searchToHold(){ Link Here
249
                </div>
249
                </div>
250
                <div class="modal-footer">
250
                <div class="modal-footer">
251
                    <button class="btn btn-default approve" type="submit"><i class="fa fa-check"></i> Save</button>
251
                    <button class="btn btn-default approve" type="submit"><i class="fa fa-check"></i> Save</button>
252
                    <button class="btn btn-default deny" href="#" class="cancel" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
252
                    <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
253
                </div>
253
                </div>
254
            </form>
254
            </form>
255
        </div>
255
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-41 / +33 lines)
Lines 223-229 function validate1(date) { Link Here
223
 <div class="yui-u first">
223
 <div class="yui-u first">
224
<div id="patron-information" style="padding : .5em;">
224
<div id="patron-information" style="padding : .5em;">
225
225
226
     [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames | html %]&rdquo;[% END %]
226
    [% IF ( othernames ) %]&ldquo;[% othernames | html %]&rdquo;[% END %]
227
227
228
    <div class = "address">
228
    <div class = "address">
229
        [% IF Koha.Preference( 'AddressFormat' ) %]
229
        [% IF Koha.Preference( 'AddressFormat' ) %]
Lines 234-279 function validate1(date) { Link Here
234
    </div>
234
    </div>
235
		    
235
		    
236
	<div class="rows">
236
	<div class="rows">
237
		<ol>
237
    <ol>
238
        [% IF ( I ) %]
238
        [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone | html %]</a></li>[% END %]
239
            [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %]
239
        [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %]
240
            [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro | html %]</li>[% END %]
240
        [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile | html %]</a></li>[% END %]
241
        [% ELSE %]
241
        [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
242
            [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone | html %]</a></li>[% END %]
243
            [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %]
244
            [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile | html %]</a></li>[% END %]
245
        [% END %]
246
247
	[% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
248
    [% UNLESS ( I ) %]
249
        [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email | url %]">[% email | html %]</a></li>[% END %]
242
        [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email | url %]">[% email | html %]</a></li>[% END %]
250
        [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro | url %]">[% emailpro | html %]</a></li>[% END %]
243
        [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro | url %]">[% emailpro | html %]</a></li>[% END %]
251
    [% END %]
244
        [% UNLESS ( I ) %]
252
    [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
245
            [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
253
    [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
246
            [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
254
    [% IF ( sex ) %]<li><span class="label">Gender:</span>
247
            [% IF ( sex ) %]<li><span class="label">Gender:</span>
255
    [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
248
                [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
256
    </li>[% END %][% END %]
249
            </li>[% END %]
257
    [% IF guarantees %]
250
        [% END %]
258
        <li>
251
        [% IF guarantees %]
259
            <span class="label">Guarantees:</span>
252
            <li>
260
            <ul>
253
                <span class="label">Guarantees:</span>
261
                [% FOREACH guarantee IN guarantees %]
254
                <ul>
262
                    <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
255
                    [% FOREACH guarantee IN guarantees %]
256
                        <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
257
                    [% END %]
258
                </ul>
259
            </li>
260
        [% ELSIF guarantor %]
261
            <li>
262
                <span class="label">Guarantor:</span>
263
                [% IF guarantor.borrowernumber %]
264
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
265
                [% ELSE %]
266
                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
263
                [% END %]
267
                [% END %]
264
            </ul>
268
            </li>
265
        </li>
269
        [% END %]
266
    [% ELSIF guarantor %]
270
    </ol>
267
        <li>
268
            <span class="label">Guarantor:</span>
269
            [% IF guarantor.borrowernumber %]
270
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
271
            [% ELSE %]
272
                [% guarantor.firstname | html %] [% guarantor.surname | html %]
273
            [% END %]
274
        </li>
275
    [% END %]
276
</ol>
277
</div>
271
</div>
278
      <div class="action">
272
      <div class="action">
279
        [% IF ( guarantor.borrowernumber ) %]
273
        [% IF ( guarantor.borrowernumber ) %]
Lines 400-406 function validate1(date) { Link Here
400
<ol>
394
<ol>
401
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
395
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
402
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
396
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
403
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
397
    <li><span class="label">Category: </span>[% categoryname %] ([% categorycode %])</li>
404
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
398
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
405
    
399
    
406
    <li><span class="label">Expiration date: </span>
400
    <li><span class="label">Expiration date: </span>
Lines 471-477 function validate1(date) { Link Here
471
 </div>
465
 </div>
472
    <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
466
    <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
473
 
467
 
474
    [% UNLESS ( I ) %]
475
 <div id="patron-alternate-address" style="padding-top: 1em;">
468
 <div id="patron-alternate-address" style="padding-top: 1em;">
476
    <h3>Alternate address</h3>
469
    <h3>Alternate address</h3>
477
470
Lines 489-495 function validate1(date) { Link Here
489
    </div>
482
    </div>
490
</div>
483
</div>
491
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
484
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
492
    [% END %]
493
485
494
 <div id="patron-alternative-contact" style="padding-top: 1em;">
486
 <div id="patron-alternative-contact" style="padding-top: 1em;">
495
 <h3>Alternative contact</h3>
487
 <h3>Alternative contact</h3>
(-)a/members/moremember.pl (-5 / +2 lines)
Lines 332-340 if ( C4::Context->preference("ExportCircHistory") ) { Link Here
332
    $template->param(csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ]);
332
    $template->param(csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ]);
333
}
333
}
334
334
335
# in template <TMPL_IF name="I"> => institutional (A for Adult, C for children)
336
$template->param( $data->{'categorycode'} => 1 );
337
338
# Display the language description instead of the code
335
# Display the language description instead of the code
339
# Note that this is certainly wrong
336
# Note that this is certainly wrong
340
my ( $subtag, $region ) = split '-', $patron->lang;
337
my ( $subtag, $region ) = split '-', $patron->lang;
Lines 346-352 $template->param( Link Here
346
    detailview      => 1,
343
    detailview      => 1,
347
    borrowernumber  => $borrowernumber,
344
    borrowernumber  => $borrowernumber,
348
    othernames      => $data->{'othernames'},
345
    othernames      => $data->{'othernames'},
349
    categoryname    => $data->{'description'},
346
    categoryname    => $patron->category->description,
350
    was_renewed     => scalar $input->param('was_renewed') ? 1 : 0,
347
    was_renewed     => scalar $input->param('was_renewed') ? 1 : 0,
351
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
348
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
352
    totalprice      => sprintf("%.2f", $totalprice),
349
    totalprice      => sprintf("%.2f", $totalprice),
Lines 355-360 $template->param( Link Here
355
    overdues_exist  => $overdues_exist,
352
    overdues_exist  => $overdues_exist,
356
    StaffMember     => $category_type eq 'S',
353
    StaffMember     => $category_type eq 'S',
357
    is_child        => $category_type eq 'C',
354
    is_child        => $category_type eq 'C',
355
    $category_type  => 1, # [% IF ( I ) %] = institutional/organisation
358
    samebranch      => $samebranch,
356
    samebranch      => $samebranch,
359
    quickslip       => $quickslip,
357
    quickslip       => $quickslip,
360
    housebound_role => scalar $patron->housebound_role,
358
    housebound_role => scalar $patron->housebound_role,
361
- 

Return to bug 19129