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

(-)a/Koha/Illrequest.pm (-1 / +2 lines)
Lines 1006-1012 sub TO_JSON { Link Here
1006
            $object->{patron} = {
1006
            $object->{patron} = {
1007
                firstname  => $patron->firstname,
1007
                firstname  => $patron->firstname,
1008
                surname    => $patron->surname,
1008
                surname    => $patron->surname,
1009
                cardnumber => $patron->cardnumber
1009
                cardnumber => $patron->cardnumber,
1010
                userid     => $patron->userid
1010
            };
1011
            };
1011
        }
1012
        }
1012
        # Augment the request response with metadata details if appropriate
1013
        # Augment the request response with metadata details if appropriate
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-7 / +21 lines)
Lines 45-50 Link Here
45
            'metadata_Author',
45
            'metadata_Author',
46
            'metadata_Title',
46
            'metadata_Title',
47
            'borrowername',
47
            'borrowername',
48
            'borroweruserid',
48
            'biblio_id',
49
            'biblio_id',
49
            'library',
50
            'library',
50
            'status',
51
            'status',
Lines 106-113 Link Here
106
            return value;
107
            return value;
107
        };
108
        };
108
109
109
        // Our 'render' function for borrowerlink
110
        // Our 'render' function for patron name
110
        var createPatronLink = function(data, type, row) {
111
        var createPatronName = function(data, type, row) {
111
            return '<a title="' + _("View borrower details") + '" ' +
112
            return '<a title="' + _("View borrower details") + '" ' +
112
                'href="/cgi-bin/koha/members/moremember.pl?' +
113
                'href="/cgi-bin/koha/members/moremember.pl?' +
113
                'borrowernumber='+row.borrowernumber+'">' +
114
                'borrowernumber='+row.borrowernumber+'">' +
Lines 115-120 Link Here
115
                '</a>';
116
                '</a>';
116
        };
117
        };
117
118
119
        // Our 'render' function for patron userid
120
        var createPatronUserID = function(data, type, row) {
121
            return '<a title="' + _("View borrower details") + '" ' +
122
                'href="/cgi-bin/koha/members/moremember.pl?' +
123
                'borrowernumber='+row.borrowernumber+'">' +
124
                row.patron_userid +
125
                '</a>';
126
        };
127
118
        // Our 'render' function for the library name
128
        // Our 'render' function for the library name
119
        var createLibrary = function(data, type, row) {
129
        var createLibrary = function(data, type, row) {
120
            return row.library.branchname;
130
            return row.library.branchname;
Lines 173-180 Link Here
173
                func: createActionLink
183
                func: createActionLink
174
            },
184
            },
175
            borrowername: {
185
            borrowername: {
176
                name: _("Patron"),
186
                name: _("Patron name"),
177
                func: createPatronLink
187
                func: createPatronName
188
            },
189
            borroweruserid: {
190
                name: _("Patron username"),
191
                func: createPatronUserID
178
            },
192
            },
179
            illrequest_id: {
193
            illrequest_id: {
180
                name: _("Request number"),
194
                name: _("Request number"),
Lines 512-518 Link Here
512
                                    <span class="label borrowernumber">Patron:</span>
526
                                    <span class="label borrowernumber">Patron:</span>
513
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
527
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
514
                                    <a href="[% borrowerlink %]" title="View borrower details">
528
                                    <a href="[% borrowerlink %]" title="View borrower details">
515
                                    [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" %]
529
                                    [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "] [" _ request.patron.userid _ "]" %]
516
                                    </a>
530
                                    </a>
517
                                </div>
531
                                </div>
518
532
Lines 588-594 Link Here
588
                                <tr id="illview-header">
602
                                <tr id="illview-header">
589
                                    <th>Author</th>
603
                                    <th>Author</th>
590
                                    <th>Title</th>
604
                                    <th>Title</th>
591
                                    <th>Patron</th>
605
                                    <th>Patron name</th>
606
                                    <th>Patron username</th>
592
                                    <th>Biblio ID</th>
607
                                    <th>Biblio ID</th>
593
                                    <th>Library</th>
608
                                    <th>Library</th>
594
                                    <th>Status</th>
609
                                    <th>Status</th>
595
- 

Return to bug 20883