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

(-)a/Koha/Database/Columns.pm (+1 lines)
Lines 63-68 sub columns { Link Here
63
            "title"               => __("Salutation"),
63
            "title"               => __("Salutation"),
64
            "surname"             => __("Surname"),
64
            "surname"             => __("Surname"),
65
            "firstname"           => __("First name"),
65
            "firstname"           => __("First name"),
66
            "middle_name"         => __("Middle name"),
66
            "dateofbirth"         => __("Date of birth"),
67
            "dateofbirth"         => __("Date of birth"),
67
            "initials"            => __("Initials"),
68
            "initials"            => __("Initials"),
68
            "othernames"          => __("Other name"),
69
            "othernames"          => __("Other name"),
(-)a/circ/ysearch.pl (-16 / +19 lines)
Lines 59-67 foreach my $p (@parts) { Link Here
59
    push(
59
    push(
60
        @params,
60
        @params,
61
        -or => [
61
        -or => [
62
            surname    => { -like => "%$p%" },
62
            surname     => { -like => "%$p%" },
63
            firstname  => { -like => "%$p%" },
63
            firstname   => { -like => "%$p%" },
64
            cardnumber => { -like => "$p%" },
64
            middle_name => { -like => "%$p%" },
65
            cardnumber  => { -like => "$p%" },
65
        ]
66
        ]
66
    );
67
    );
67
}
68
}
Lines 74-80 my $borrowers_rs = Koha::Patrons->search_limited( Link Here
74
        # Get the first 10 results
75
        # Get the first 10 results
75
        page     => 1,
76
        page     => 1,
76
        rows     => 10,
77
        rows     => 10,
77
        order_by => [ 'surname', 'firstname' ],
78
        order_by => [ 'surname', 'firstname', 'middle_name' ],
78
        prefetch => 'branchcode',
79
        prefetch => 'branchcode',
79
    },
80
    },
80
);
81
);
Lines 82-99 my $borrowers_rs = Koha::Patrons->search_limited( Link Here
82
my @borrowers;
83
my @borrowers;
83
while ( my $b = $borrowers_rs->next ) {
84
while ( my $b = $borrowers_rs->next ) {
84
    push @borrowers,
85
    push @borrowers,
85
      { borrowernumber => $b->borrowernumber,
86
      {
86
        surname        => $b->surname    // '',
87
        borrowernumber => $b->borrowernumber,
87
        firstname      => $b->firstname  // '',
88
        surname        => $b->surname     // '',
88
        cardnumber     => $b->cardnumber // '',
89
        firstname      => $b->firstname   // '',
89
        dateofbirth    => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '',
90
        middle_name    => $b->middle_name // '',
90
        age            => $b->get_age    // '',
91
        cardnumber     => $b->cardnumber  // '',
91
        address        => $b->address    // '',
92
        dateofbirth    => format_sqldatetime( $b->dateofbirth, undef, undef, 1 ) // '',
92
        city           => $b->city       // '',
93
        age        => $b->get_age             // '',
93
        zipcode        => $b->zipcode    // '',
94
        address    => $b->address             // '',
94
        country        => $b->country    // '',
95
        city       => $b->city                // '',
95
        branchcode     => $b->branchcode // '',
96
        zipcode    => $b->zipcode             // '',
96
        branchname     => $b->library->branchname // '',
97
        country    => $b->country             // '',
98
        branchcode => $b->branchcode          // '',
99
        branchname => $b->library->branchname // '',
97
      };
100
      };
98
}
101
}
99
102
(-)a/koha-tmpl/intranet-tmpl/js/autocomplete/patrons.js (-2 / +2 lines)
Lines 12-18 function patron_autocomplete(params) { Link Here
12
            if ( field_to_retrieve == 'borrowernumber' ) {
12
            if ( field_to_retrieve == 'borrowernumber' ) {
13
                field = ui.item.borrowernumber;
13
                field = ui.item.borrowernumber;
14
            }
14
            }
15
            AddPatron( ui.item.firstname + " " + ui.item.surname, field, patron_container, patron_input_name );
15
            AddPatron( ui.item.firstname + " " + ui.item.middle_name + " " + ui.item.surname, field, patron_container, patron_input_name );
16
            input_autocomplete.val('').focus();
16
            input_autocomplete.val('').focus();
17
            return false;
17
            return false;
18
        }
18
        }
Lines 20-26 function patron_autocomplete(params) { Link Here
20
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
20
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
21
        return $( "<li></li>" )
21
        return $( "<li></li>" )
22
        .data( "ui-autocomplete-item", item )
22
        .data( "ui-autocomplete-item", item )
23
        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
23
        .append( "<a>" + item.surname + ", " + item.firstname + " " + item.middle_name + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
24
        .appendTo( ul );
24
        .appendTo( ul );
25
    };
25
    };
26
26
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc (-2 / +6 lines)
Lines 19-26 Link Here
19
            }
19
            }
20
20
21
            var name;
21
            var name;
22
            var firstname = escape_str(patron.firstname);
22
            var firstname   = escape_str(patron.firstname);
23
            var surname   = escape_str(patron.surname);
23
            var surname     = escape_str(patron.surname);
24
25
            if ( patron.middle_name != null && patron.middle_name != '' ) {
26
                firstname += ' ' + escape_str(patron.middle_name);
27
            }
24
28
25
            if ( patron.other_name != null && patron.other_name != '' ) {
29
            if ( patron.other_name != null && patron.other_name != '' ) {
26
                firstname += ' (' + escape_str(patron.other_name) + ')';
30
                firstname += ' (' + escape_str(patron.other_name) + ')';
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-1 / +6 lines)
Lines 87-93 Link Here
87
                            // Display card number in parentheses if it exists
87
                            // Display card number in parentheses if it exists
88
                            cardnumber = " (" + item.cardnumber + ") ";
88
                            cardnumber = " (" + item.cardnumber + ") ";
89
                        }
89
                        }
90
                        var itemString = "<a href=\"" + item.link + "\">" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", " + ( item.firstname ? item.firstname.escapeHtml() : "" ) + cardnumber.escapeHtml() + " <small>";
90
                        var itemString = "<a href=\"" + item.link + "\">" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", "
91
                            + ( item.firstname ? item.firstname.escapeHtml() : "" )
92
                            + ( item.middle_name ? " " + item.middle_name.escapeHtml() : "" )
93
                            + cardnumber.escapeHtml()
94
                            + " <small>";
91
95
92
                        if( item.branchcode == loggedInLibrary ){
96
                        if( item.branchcode == loggedInLibrary ){
93
                            loggedInClass = "ac-currentlibrary";
97
                            loggedInClass = "ac-currentlibrary";
Lines 150-155 Link Here
150
                .append(
154
                .append(
151
                    "<a href=\"" + item.link + "\">" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", "
155
                    "<a href=\"" + item.link + "\">" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", "
152
                        + ( item.firstname ? item.firstname.escapeHtml() : "" )
156
                        + ( item.firstname ? item.firstname.escapeHtml() : "" )
157
                        + ( item.middle_name ? " " + item.middle_name.escapeHtml() : "" )
153
                        + cardnumber.escapeHtml()
158
                        + cardnumber.escapeHtml()
154
                        + " <small>"
159
                        + " <small>"
155
                            + ( item.dateofbirth ? item.dateofbirth.escapeHtml() : "" ) + " "
160
                            + ( item.dateofbirth ? item.dateofbirth.escapeHtml() : "" ) + " "
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc (-1 / +1 lines)
Lines 23-29 Link Here
23
    <div id="filters">
23
    <div id="filters">
24
        <p><label for="searchfieldstype">Search fields:</label>
24
        <p><label for="searchfieldstype">Search fields:</label>
25
            <select name="searchfieldstype" id="searchfieldstype">
25
            <select name="searchfieldstype" id="searchfieldstype">
26
              [% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' %]
26
              [% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' %]
27
              [% default_fields = [ standard, 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
27
              [% default_fields = [ standard, 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
28
              [% search_options = default_fields.merge(standard.split(',')).unique %]
28
              [% search_options = default_fields.merge(standard.split(',')).unique %]
29
              [% FOREACH s_o IN search_options %]
29
              [% FOREACH s_o IN search_options %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-4 / +4 lines)
Lines 60-66 Link Here
60
                        <li>
60
                        <li>
61
                            <label for="searchfieldstype_filter">Search field:</label>
61
                            <label for="searchfieldstype_filter">Search field:</label>
62
                            <select name="searchfieldstype" id="searchfieldstype_filter">
62
                            <select name="searchfieldstype" id="searchfieldstype_filter">
63
                                [% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' %]
63
                                [% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' %]
64
                                [% default_fields = [ standard, 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
64
                                [% default_fields = [ standard, 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
65
                                [% search_options = default_fields.merge(standard.split(',')).unique %]
65
                                [% search_options = default_fields.merge(standard.split(',')).unique %]
66
                                [% FOREACH s_o IN search_options %]
66
                                [% FOREACH s_o IN search_options %]
Lines 317-323 Link Here
317
                    let search_type = $("#searchtype_filter").val() || "contain";
317
                    let search_type = $("#searchtype_filter").val() || "contain";
318
                    let search_fields = $("#searchfieldstype_filter").val();
318
                    let search_fields = $("#searchfieldstype_filter").val();
319
                    if ( !search_fields ) {
319
                    if ( !search_fields ) {
320
                        search_fields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' | html %]";
320
                        search_fields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' | html %]";
321
                    }
321
                    }
322
322
323
                    let subquery_and = [];
323
                    let subquery_and = [];
Lines 458-464 Link Here
458
                            }
458
                            }
459
                            [% CASE 'name-address' %]
459
                            [% CASE 'name-address' %]
460
                            {
460
                            {
461
                                "data": "me.surname:me.firstname:me.othernames:me.street_number:me.address:me.address2:me.city:me.state:me.postal_code:me.country",
461
                                "data": "me.surname:me.firstname:me.middle_name:me.othernames:me.street_number:me.address:me.address2:me.city:me.state:me.postal_code:me.country",
462
                                "searchable": true,
462
                                "searchable": true,
463
                                "orderable": true,
463
                                "orderable": true,
464
                                "render": function( data, type, row, meta ) {
464
                                "render": function( data, type, row, meta ) {
Lines 508-514 Link Here
508
                            }
508
                            }
509
                            [% CASE 'name' %]
509
                            [% CASE 'name' %]
510
                            {
510
                            {
511
                                "data": "me.surname:me.firstname:me.othernames",
511
                                "data": "me.surname:me.firstname:me.middle_name:me.othernames",
512
                                "searchable": true,
512
                                "searchable": true,
513
                                "orderable": true,
513
                                "orderable": true,
514
                                "render": function( data, type, row, meta ) {
514
                                "render": function( data, type, row, meta ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc (-2 / +5 lines)
Lines 7-12 Link Here
7
    [%- SET data.surname        = patron.surname -%]
7
    [%- SET data.surname        = patron.surname -%]
8
    [%- SET data.othernames     = patron.othernames -%]
8
    [%- SET data.othernames     = patron.othernames -%]
9
    [%- SET data.firstname      = patron.firstname -%]
9
    [%- SET data.firstname      = patron.firstname -%]
10
    [%- SET data.middle_name    = patron.middle_name -%]
10
    [%- SET data.cardnumber     = patron.cardnumber -%]
11
    [%- SET data.cardnumber     = patron.cardnumber -%]
11
    [%- SET data.borrowernumber = patron.borrowernumber -%]
12
    [%- SET data.borrowernumber = patron.borrowernumber -%]
12
    [%- SET data.title          = patron.title -%]
13
    [%- SET data.title          = patron.title -%]
Lines 15-20 Link Here
15
    [%- SET data.surname        = borrower.surname -%]
16
    [%- SET data.surname        = borrower.surname -%]
16
    [%- SET data.othernames     = borrower.othernames -%]
17
    [%- SET data.othernames     = borrower.othernames -%]
17
    [%- SET data.firstname      = borrower.firstname -%]
18
    [%- SET data.firstname      = borrower.firstname -%]
19
    [%- SET data.middle_name    = borrower.middle_name -%]
18
    [%- SET data.cardnumber     = borrower.cardnumber -%]
20
    [%- SET data.cardnumber     = borrower.cardnumber -%]
19
    [%- SET data.borrowernumber = borrower.borrowernumber -%]
21
    [%- SET data.borrowernumber = borrower.borrowernumber -%]
20
    [%- SET data.title          = borrower.title -%]
22
    [%- SET data.title          = borrower.title -%]
Lines 23-28 Link Here
23
    [%- SET data.surname        = surname -%]
25
    [%- SET data.surname        = surname -%]
24
    [%- SET data.othernames     = othernames -%]
26
    [%- SET data.othernames     = othernames -%]
25
    [%- SET data.firstname      = firstname -%]
27
    [%- SET data.firstname      = firstname -%]
28
    [%- SET data.middle_name    = middle_name -%]
26
    [%- SET data.cardnumber     = cardnumber -%]
29
    [%- SET data.cardnumber     = cardnumber -%]
27
    [%- SET data.borrowernumber = borrowernumber -%]
30
    [%- SET data.borrowernumber = borrowernumber -%]
28
    [%- SET data.title          = title -%]
31
    [%- SET data.title          = title -%]
Lines 61-69 Link Here
61
    [%- IF data.category_type == 'I' -%]
64
    [%- IF data.category_type == 'I' -%]
62
        [%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%]
65
        [%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%]
63
    [%- ELSIF invert_name -%]
66
    [%- ELSIF invert_name -%]
64
        [% data.title | $raw %][%- data.surname | html %][% IF ( data.firstname ) %], [% data.firstname | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
67
        [% data.title | $raw %][%- data.surname | html %][% IF ( data.firstname ) %], [% data.firstname | html %][% END %][% IF data.middle_name %] [% data.middle_name | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
65
    [%- ELSE -%]
68
    [%- ELSE -%]
66
        [% data.title | $raw %][%- data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%]
69
        [% data.title | $raw %][%- data.firstname | html %][% IF data.middle_name %] [% data.middle_name | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%]
67
    [%- END -%]
70
    [%- END -%]
68
    [%- IF display_cardnumber AND data.cardnumber %] ([% data.cardnumber | html %])[% END -%]
71
    [%- IF display_cardnumber AND data.cardnumber %] ([% data.cardnumber | html %])[% END -%]
69
[%- ELSIF display_cardnumber -%]
72
[%- ELSIF display_cardnumber -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc (+1 lines)
Lines 5-10 Link Here
5
     [%- CASE 'cardnumber' -%]<span>Card number</span>
5
     [%- CASE 'cardnumber' -%]<span>Card number</span>
6
     [%- CASE 'surname' -%]<span>Surname</span>
6
     [%- CASE 'surname' -%]<span>Surname</span>
7
     [%- CASE 'firstname' -%]<span>First name</span>
7
     [%- CASE 'firstname' -%]<span>First name</span>
8
     [%- CASE 'middle_name' -%]<span>Middle name</span>
8
     [%- CASE 'title' -%]<span>Salutation</span>
9
     [%- CASE 'title' -%]<span>Salutation</span>
9
     [%- CASE 'othernames' -%]<span>Other name</span>
10
     [%- CASE 'othernames' -%]<span>Other name</span>
10
     [%- CASE 'initials' -%]<span>Initials</span>
11
     [%- CASE 'initials' -%]<span>Initials</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +1 lines)
Lines 48-54 Patrons: Link Here
48
         - "Comma separated list defining the default fields to be used during a patron search using the \"standard\" option:"
48
         - "Comma separated list defining the default fields to be used during a patron search using the \"standard\" option:"
49
         - pref: DefaultPatronSearchFields
49
         - pref: DefaultPatronSearchFields
50
           class: multi
50
           class: multi
51
         - "If empty Koha will default to \"firstname,surname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page."
51
         - "If empty Koha will default to \"firstname,middle_name,surname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page."
52
     -
52
     -
53
         - "Show the following fields from the items database table as columns on the statistics tab on the patron record: "
53
         - "Show the following fields from the items database table as columns on the statistics tab on the patron record: "
54
         - pref: StatisticsFields
54
         - pref: StatisticsFields
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +16 lines)
Lines 267-273 legend:hover { Link Here
267
                            [% END %]
267
                            [% END %]
268
268
269
                            [% IF ( step_1 ) %]
269
                            [% IF ( step_1 ) %]
270
                                [% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
270
                                [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex %]
271
                                    <fieldset class="rows" id="memberentry_identity">
271
                                    <fieldset class="rows" id="memberentry_identity">
272
                                        <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
272
                                        <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
273
                                        <ol>
273
                                        <ol>
Lines 341-346 legend:hover { Link Here
341
                                                        [% END %]
341
                                                        [% END %]
342
                                                    </li>
342
                                                    </li>
343
                                                [% END #/UNLESS nofirstname %]
343
                                                [% END #/UNLESS nofirstname %]
344
                                                [% UNLESS nomiddle_name %]
345
                                                    <li>
346
                                                        [% IF ( mandatorymiddle_name ) %]
347
                                                            <label for="middle_name" class="required">
348
                                                        [% ELSE %]
349
                                                            <label for="middle_name">
350
                                                        [% END %]
351
                                                            Middle name:
352
                                                        </label>
353
                                                        <input type="text" id="middle_name" name="middle_name" size="20"  value="[% borrower_data.middle_name | html UNLESS opduplicate %]" />
354
                                                        [% IF ( mandatorymiddle_name ) %]
355
                                                            <span class="required">Required</span>
356
                                                        [% END %]
357
                                                    </li>
358
                                                [% END #/UNLESS nomiddle_name %]
344
                                                [% UNLESS nodateofbirth %]
359
                                                [% UNLESS nodateofbirth %]
345
                                                    <li>
360
                                                    <li>
346
                                                        [% IF ( mandatorydateofbirth ) %]
361
                                                        [% IF ( mandatorydateofbirth ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (+1 lines)
Lines 19-24 Link Here
19
[% CASE 'branchcode'          %]<span>Home library (branchcode)</span>
19
[% CASE 'branchcode'          %]<span>Home library (branchcode)</span>
20
[% CASE 'surname'             %]<span>Surname</span>
20
[% CASE 'surname'             %]<span>Surname</span>
21
[% CASE 'firstname'           %]<span>First name</span>
21
[% CASE 'firstname'           %]<span>First name</span>
22
[% CASE 'middle_name'         %]<span>Middle name</span>
22
[% CASE 'title'               %]<span>Title</span>
23
[% CASE 'title'               %]<span>Title</span>
23
[% CASE 'othernames'          %]<span>Other names</span>
24
[% CASE 'othernames'          %]<span>Other names</span>
24
[% CASE 'initials'            %]<span>Initials</span>
25
[% CASE 'initials'            %]<span>Initials</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-6 / +1 lines)
Lines 95-106 Link Here
95
                            [% INCLUDE 'patron_messages.inc' %]
95
                            [% INCLUDE 'patron_messages.inc' %]
96
                        </div>
96
                        </div>
97
97
98
                        <h1>
98
                        <h1>[% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>
99
                            [% UNLESS ( I ) %]
100
                                [% patron.title | html %] [% patron.firstname | html %]
101
                            [% END %]
102
                            [% patron.surname | html %] ([% patron.cardnumber | html %])
103
                        </h1>
104
                        <div class="col-sm-6">
99
                        <div class="col-sm-6">
105
100
106
                            <div id="patron-information" class="patroninfo-section">
101
                            <div id="patron-information" class="patroninfo-section">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc (-1 / +1 lines)
Lines 4-8 Link Here
4
    [%- IF patron.title -%]
4
    [%- IF patron.title -%]
5
        <span class="patron-title">[% patron.title | html %]</span>
5
        <span class="patron-title">[% patron.title | html %]</span>
6
    [%- END -%]
6
    [%- END -%]
7
    [% patron.firstname | html %] [% patron.surname | html %]
7
    [% patron.firstname | html %] [% patron.middle_name | html %] [% patron.surname | html %]
8
[%- END -%]
8
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-4 / +12 lines)
Lines 176-182 Link Here
176
                                            Guaranteed by
176
                                            Guaranteed by
177
                                            [% FOREACH gr IN patron.guarantor_relationships %]
177
                                            [% FOREACH gr IN patron.guarantor_relationships %]
178
                                                [% SET g = gr.guarantor %]
178
                                                [% SET g = gr.guarantor %]
179
                                                [% g.firstname | html %] [% g.surname | html %]
179
                                                [% g.firstname | html %] [% g.middle_name | html %] [% g.surname | html %]
180
                                                [%- IF ! loop.last %], [% END %]
180
                                                [%- IF ! loop.last %], [% END %]
181
                                            [% END %]
181
                                            [% END %]
182
                                        </span>
182
                                        </span>
Lines 193-199 Link Here
193
193
194
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
194
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
195
195
196
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
196
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
197
                    [% IF mandatory.defined( field ) %]
197
                    [% IF mandatory.defined( field ) %]
198
                        [% SET required.$field = 'required' %]
198
                        [% SET required.$field = 'required' %]
199
                    [% END %]
199
                    [% END %]
Lines 300-306 Link Here
300
                    [% END # / defined 'branchcode' %]
300
                    [% END # / defined 'branchcode' %]
301
301
302
                    [%# Following on one line for translatability %]
302
                    [%# Following on one line for translatability %]
303
                    [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') && hidden.defined('sex') %]
303
                    [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('middle_name') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') && hidden.defined('sex') %]
304
                        <div class="row">
304
                        <div class="row">
305
                            <div class="col">
305
                            <div class="col">
306
                                <fieldset class="rows" id="memberentry_identity">
306
                                <fieldset class="rows" id="memberentry_identity">
Lines 343-348 Link Here
343
                                            </li>
343
                                            </li>
344
                                        [% END %]
344
                                        [% END %]
345
345
346
                                        [% UNLESS hidden.defined('middle_name') %]
347
                                            <li>
348
                                                <label for="borrower_middle_name" class="[% required.middle_name | html %]">Middle name:</label>
349
350
                                                <input type="text" id="borrower_middle_name" name="borrower_middle_name" value="[% borrower.middle_name | html %]" class="[% required.middle_name | html %]" />
351
                                                <div class="required_label [% required.middle_name | html %]">Required</div>
352
                                            </li>
353
                                        [% END %]
354
346
                                        [% UNLESS hidden.defined('dateofbirth') %]
355
                                        [% UNLESS hidden.defined('dateofbirth') %]
347
                                            <li>
356
                                            <li>
348
                                                <label for="borrower_dateofbirth" class="[% required.dateofbirth | html %]">Date of birth:</label>
357
                                                <label for="borrower_dateofbirth" class="[% required.dateofbirth | html %]">Date of birth:</label>
349
- 

Return to bug 21978