5 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Course reserves for [% course.course_name | html %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% BLOCK cssinclude %]
14 [% Asset.css("css/datatables.css") | $raw %]
18 [% INCLUDE 'bodytag.inc' bodyid='opac-course-details' %]
19 [% INCLUDE 'masthead.inc' %]
22 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
23 <ol class="breadcrumb">
24 <li class="breadcrumb-item">
25 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
27 <li class="breadcrumb-item">
28 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
30 <li class="breadcrumb-item active">
31 <a href="#" aria-current="page">Course reserves for <em>[% course.course_name | html %]</em></a>
34 </nav> <!-- /#breadcrumbs -->
36 <div class="container-fluid">
39 <div id="course_reserves" class="maincontent">
41 <h1>Course reserves for <em>[% course.course_name | html %]</em></h1>
44 [% IF ( course.term ) %]<li><span class="label">[% tp('Semester', 'Term:') | html %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]</li>[% END %]
45 <li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department, 1 ) | html %]</li>
46 [% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number | html %]</li>[% END %]
47 [% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section | html %]</li>[% END %]
48 [% IF ( course.instructors ) %]
49 <li><span class="label">Instructors:</span>
51 [% FOREACH i IN course.instructors %]
52 <li><div class="instructor">[% i.firstname | html %] [% i.surname | html %]</div></li>
57 [% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note | $raw %]</li>[% END %]
61 [% IF ( course_reserves ) %]
62 <table id="course-items-table" class="table table-bordered table-striped table-condensed">
63 <caption class="sr-only">Courses</caption>
66 <th class="anti-the">Title</th>
81 [% FOREACH cr IN course_reserves %]
83 <td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td>
84 <td>[% cr.biblio.author | html %]</td>
85 <td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td>
86 <td>[% Branches.GetName( cr.item.holdingbranch ) | html %] <br/> <em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]</em></td>
87 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td>
88 <td>[% cr.item.itemcallnumber | html %]</td>
89 <td>[% cr.item.copynumber | html %]</td>
92 [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %]
95 <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</td>
96 <td>[% IF ( cr.public_note ) %]
97 [% cr.public_note | $raw %]
98 [% ELSIF ( cr.item.itemnotes ) %]
99 [% cr.item.itemnotes | $raw %]
102 <td>[% IF (cr.item.uri) %]
103 <a href="[% cr.item.uri | url %]">Item URI</a>
104 [% ELSIF (cr.biblioitem.url) %]
105 <a href="[% cr.biblioitem.url | url %]">Record URL</a>
113 <br style="clear:both;" />
114 <div class="alert alert-info">
115 <p>No reserves have been selected for this course.</p>
118 </div> <!-- / #course_reserves -->
119 </div> <!-- / .col -->
120 </div> <!-- / .row -->
121 </div> <!-- / .container-fluid -->
122 </div> <!-- / .main -->
123 [% INCLUDE 'opac-bottom.inc' %]
124 [% BLOCK jsinclude %]
125 [% INCLUDE 'datatables.inc' %]
126 [% INCLUDE 'columns_settings.inc' %]
128 $(document).ready(function() {
129 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %];
130 KohaTable("#course-items-table", {
131 "dom": '<"top"<"table_controls"f>>t',
132 "sorting": [[ 1, "asc" ]],
136 "searchPlaceholder": _("Search course reserves")
138 }, columns_settings );