5 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Course reserves for [% course.course_name | html %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% BLOCK cssinclude %]
13 [% Asset.css("css/datatables.css") | $raw %]
17 [% INCLUDE 'bodytag.inc' bodyid='opac-course-details' %]
18 [% INCLUDE 'masthead.inc' %]
21 <nav aria-label="breadcrumb">
22 <ul class="breadcrumb">
23 <li class="breadcrumb-item">
24 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
26 <li class="breadcrumb-item">
27 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
29 <li class="breadcrumb-item" aria-current="page">
30 Course reserves for <em>[% course.course_name | html %]</em>
35 <div class="container-fluid">
38 <div id="course_reserves" class="maincontent">
40 <h1>Course reserves for <em>[% course.course_name | html %]</em></h1>
43 [% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]</li>[% END %]
44 <li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department, 1 ) | html %]</li>
45 [% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number | html %]</li>[% END %]
46 [% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section | html %]</li>[% END %]
47 [% IF ( course.instructors ) %]
48 <li><span class="label">Instructors:</span>
50 [% FOREACH i IN course.instructors %]
51 <li><div class="instructor">[% i.firstname | html %] [% i.surname | html %]</div></li>
56 [% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note | $raw %]</li>[% END %]
60 [% IF ( course_reserves ) %]
61 <table id="course-items-table" class="table table-bordered table-striped table-condensed">
64 <th class="anti-the">Title</th>
79 [% FOREACH cr IN course_reserves %]
81 <td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td>
82 <td>[% cr.biblio.author | html %]</td>
83 <td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td>
84 <td>[% Branches.GetName( cr.item.holdingbranch ) | html %] <br/> <em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]</em></td>
85 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td>
86 <td>[% cr.item.itemcallnumber | html %]</td>
87 <td>[% cr.item.copynumber | html %]</td>
88 <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
89 <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</td>
90 <td>[% IF ( cr.public_note ) %]
91 [% cr.public_note | $raw %]
92 [% ELSIF ( cr.item.itemnotes ) %]
93 [% cr.item.itemnotes | $raw %]
96 <td>[% IF (cr.item.uri) %]
97 <a href="[% cr.item.uri | url %]">Item URI</a>
98 [% ELSIF (cr.biblioitem.url) %]
99 <a href="[% cr.biblioitem.url | url %]">Record URL</a>
107 <br style="clear:both;" />
108 <div class="alert alert-info">
109 <p>No reserves have been selected for this course.</p>
112 </div> <!-- / #course_reserves -->
113 </div> <!-- / .col -->
114 </div> <!-- / .row -->
115 </div> <!-- / .container-fluid -->
116 </div> <!-- / .main -->
117 [% INCLUDE 'opac-bottom.inc' %]
118 [% BLOCK jsinclude %]
119 [% INCLUDE 'datatables.inc' %]
120 [% INCLUDE 'columns_settings.inc' %]
122 $(document).ready(function() {
123 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %];
124 KohaTable("#course-items-table", {
125 "dom": '<"top"<"table_controls"f>>t',
126 "sorting": [[ 1, "asc" ]],
130 "searchPlaceholder": _("Search course reserves")
132 }, columns_settings );