LP1895678: Bring course materials into the bootstrap OPAC
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / parts / result / table.tt2
index 7f3ab3c..8395412 100755 (executable)
                                     [% UNLESS rec.mmr_id;
                                             PROCESS "opac/parts/result/copy_counts.tt2";
                                     END; %]
+                                    [% IF ctx.use_courses %]
+                                        [%- courseStrings = [] %]
+                                        [% FOREACH course IN rec.courses %]
+                                            [% courseString = course.name _ ' (' _ course.course_number _ ')' %]
+                                            [% courseStrings.push(courseString); %]
+                                        [% END %]
+                                        [% IF courseStrings.size > 0 %]
+                                            <span><strong>[% l('Associated Courses: ') %]</strong></span>
+                                            <span>[% courseStrings.join(', ') %]</span>
+                                        [% END %]
+                                    [% END %]
                                     [% IF rec.user_circulated %]
                                     <div class="result_item_circulated">
                                     <i class="fas fa-book-reader" aria-hidden="true"></i>