3 [% USE AuthorisedValues %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
14 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
15 [% INCLUDE 'masthead.inc' %]
18 <ul class="breadcrumb">
19 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
20 <li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a> <span class="divider">›</span></li>
21 <li><a href="#">Course reserves for <i>[% course.course_name %]</i></a></li>
24 <div class="container-fluid">
25 <div class="row-fluid">
28 <h2>Course reserves for <i>[% course.course_name %]</i></h2>
31 [% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li>[% END %]
32 <li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li>
33 [% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number %]</li>[% END %]
34 [% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section %]</li>[% END %]
35 [% IF ( course.instructors ) %]
36 <li><span class="label">Instructors:</span>
38 [% FOREACH i IN course.instructors %]
39 <li><div class="instructor">[% i.firstname %] [% i.surname %]</div></li>
44 [% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note %]</li>[% END %]
48 [% IF ( course_reserves ) %]
49 <table id="course-items-table" class="table table-bordered table-striped table-condensed">
52 <th class="anti-the">Title</th>
59 <th class="title-string">Date due</th>
65 [% FOREACH cr IN course_reserves %]
67 <td><a href="opac-detail.pl?biblionumber=[% cr.item.biblionumber %]">[% cr.item.title %]</a></td>
68 <td>[% ItemTypes.GetDescription( cr.item.itype ) %]</td>
69 <td>[% Branches.GetName( cr.item.holdingbranch ) %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]</i></td>
70 <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
71 <td>[% cr.item.itemcallnumber %]</td>
72 <td>[% cr.item.copynumber %]</td>
73 <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
74 <td><span title="[% cr.issue.date_due %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td>
75 <td>[% IF ( cr.public_note ) %]
77 [% ELSIF ( cr.item.itemnotes ) %]
78 [% cr.item.itemnotes %]
86 <br style="clear:both;" />
87 <div class="alert alert-info">
88 <p>No reserves have been selected for this course.</p>
91 </div> <!-- / .span12 -->
92 </div> <!-- / .row-fluid -->
93 </div> <!-- / .container-fluid -->
94 </div> <!-- / .main -->
95 [% INCLUDE 'opac-bottom.inc' %]
97 [% INCLUDE 'datatables.inc' %]
98 <script type="text/javascript">
99 $(document).ready(function() {
100 $("#course-items-table").dataTable($.extend(true, {}, dataTablesDefaults, {
101 "sDom": '<"top"flp>rt<"clear">',
103 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
104 { "sType": "title-string", "aTargets" : [ "title-string" ] }