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>
90 <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %]</td>
91 <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</td>
92 <td>[% IF ( cr.public_note ) %]
93 [% cr.public_note | $raw %]
94 [% ELSIF ( cr.item.itemnotes ) %]
95 [% cr.item.itemnotes | $raw %]
98 <td>[% IF (cr.item.uri) %]
99 <a href="[% cr.item.uri | url %]">Item URI</a>
100 [% ELSIF (cr.biblioitem.url) %]
101 <a href="[% cr.biblioitem.url | url %]">Record URL</a>
109 <br style="clear:both;" />
110 <div class="alert alert-info">
111 <p>No reserves have been selected for this course.</p>
114 </div> <!-- / #course_reserves -->
115 </div> <!-- / .col -->
116 </div> <!-- / .row -->
117 </div> <!-- / .container-fluid -->
118 </div> <!-- / .main -->
119 [% INCLUDE 'opac-bottom.inc' %]
120 [% BLOCK jsinclude %]
121 [% INCLUDE 'datatables.inc' %]
122 [% INCLUDE 'columns_settings.inc' %]
124 $(document).ready(function() {
125 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %];
126 KohaTable("#course-items-table", {
127 "dom": '<"top"<"table_controls"f>>t',
128 "sorting": [[ 1, "asc" ]],
132 "searchPlaceholder": _("Search course reserves")
134 }, columns_settings );