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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (-1 / +1 lines)
Lines 71-77 Link Here
71
                        <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
71
                        <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
72
                        <td>
72
                        <td>
73
                            [% FOREACH i IN c.instructors %]
73
                            [% FOREACH i IN c.instructors %]
74
                                <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
74
                                <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=i no_cardnumber=1 %]</a></div>
75
                            [% END %]
75
                            [% END %]
76
                        </td>
76
                        </td>
77
                        <td>[% c.staff_note | html %]</td>
77
                        <td>[% c.staff_note | html %]</td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-4 / +4 lines)
Lines 131-138 Link Here
131
                        <div id="course_instructors">
131
                        <div id="course_instructors">
132
                            <div id="instructors">
132
                            <div id="instructors">
133
                                [% FOREACH i IN instructors %]
133
                                [% FOREACH i IN instructors %]
134
                                    <div class="instructor_line" id="borrower_[% i.borrowernumber | html %]"
134
                                    <div class="instructor_line" id="borrower_[% i.borrowernumber | html %]">
135
                                        >[% i.surname | html %], [% i.firstname | html %] ( <a href="#" class="removeInstructor"><i class="fa fa-trash-can"></i> Remove </a> )
135
                                        [% INCLUDE 'patron-title.inc' patron=i no_cardnumber=1 %] (<a href="#" class="removeInstructor"><i class="fa fa-trash-can"></i> Remove </a>)
136
                                        <input type="hidden" name="instructors" value="[% i.borrowernumber | html %]" />
136
                                        <input type="hidden" name="instructors" value="[% i.borrowernumber | html %]" />
137
                                    </div>
137
                                    </div>
138
                                [% END %]
138
                                [% END %]
Lines 195-205 Link Here
195
195
196
[% IF ( departments ) %]
196
[% IF ( departments ) %]
197
    [% MACRO jsinclude BLOCK %]
197
    [% MACRO jsinclude BLOCK %]
198
        [% INCLUDE 'js-patron-format.inc' %]
198
        <script>
199
        <script>
199
            $(document).ready(function () {
200
            $(document).ready(function () {
200
                patron_autocomplete($("#find_instructor"), {
201
                patron_autocomplete($("#find_instructor"), {
201
                    "on-select-callback": function (event, ui) {
202
                    "on-select-callback": function (event, ui) {
202
                        AddInstructor(ui.item.surname + ", " + ui.item.firstname, ui.item.patron_id);
203
                        AddInstructor($patron_to_html(ui.item, { display_cardnumber: false }), ui.item.patron_id);
203
                        return false;
204
                        return false;
204
                    },
205
                    },
205
                });
206
                });
206
- 

Return to bug 40699