1 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Course reserves › New course</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <script type="text/javascript">
10 $(document).ready(function(){
11 $("a.delete_item").click(function(){
12 return confirm( _("Are you sure you want to delete this item?"));
15 $("#delete_course").click(function(){
16 return confirm( _("Are you sure you want to delete this course?") );
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'cat-search.inc' %]
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> › Course details for <i>[% course.course_name %]</i></div>
32 <div id="doc2" class="yui-t7">
37 [% IF CAN_user_coursereserves_add_reserves %]<li><a class="btn" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]">Add reserves</a></li>[% END %]
38 [% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]">Edit course</a></li>[% END %]
39 [% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del">Delete course</a></li>[% END %]
41 </div><!-- /toolbar -->
45 <tr><th>Course name</th><td>[% course.course_name %]</td></tr>
46 <tr><th>Term</th><td>[% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</td></tr>
47 <tr><th>Department</th><td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</td></tr>
48 <tr><th>Course number</th><td>[% course.course_number %]</td></tr>
49 <tr><th>Section</th><td>[% course.section %]</td></tr>
50 <tr><th>Instructors</th><td>[% FOREACH i IN course.instructors %]<div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>[% END %]</td></tr>
51 <tr><th>Staff note</th><td>[% course.staff_note %]</td></tr>
52 <tr><th>Public note</th><td>[% course.public_note %]</td></tr>
53 <tr><th>Students count</th><td>[% course.students_count %]</td></tr>
54 <tr><th>Status</th><td>[% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</td></tr>
58 [% IF course_reserves %]
65 [% IF item_level_itypes %]<th>Item type</th>[% END %]
71 [% IF CAN_user_coursereserves_add_reserves %]<th> <!-- Edit --></th>[% END %]
72 [% IF CAN_user_coursereserves_delete_reserves %]<th> <!-- Remove --></th>[% END %]
73 <th>Other course reserves</th>
78 [% FOREACH cr IN course_reserves %]
80 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.item.biblionumber %]">[% cr.item.title %]</a></td>
81 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber %]&biblionumber=[% cr.item.biblionumber %]&bi=[% cr.item.biblioitemnumber %]">[% cr.item.barcode %]</a></td>
82 <td>[% cr.item.itemcallnumber %]</td>
83 [% IF item_level_itypes %]
85 [% IF cr.course_item.itype %]
86 [% IF cr.course_item.enabled == 'yes' %]
87 [% ItemTypes.GetDescription( cr.item.itype ) %]
89 [% ItemTypes.GetDescription( cr.course_item.itype ) %]
93 [% IF cr.item.itype %]
94 ([% ItemTypes.GetDescription( cr.item.itype ) %])
100 [% IF cr.course_item.ccode %]
101 [% IF cr.course_item.enabled == 'yes' %]
102 [% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]
104 [% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) %]
108 [% IF cr.item.ccode %]
109 ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %])
114 [% IF cr.course_item.location %]
115 [% IF cr.course_item.enabled == 'yes' %]
116 [% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]
118 [% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) %]
122 [% IF cr.item.location %]
123 ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %])
128 [% IF cr.course_item.holdingbranch %]
129 [% IF cr.course_item.enabled == 'yes' %]
130 [% Branches.GetName( cr.item.holdingbranch ) %]
132 [% Branches.GetName( cr.course_item.holdingbranch ) %]
136 [% IF cr.item.holdingbranch %]
137 ([% Branches.GetName( cr.item.holdingbranch ) %])
141 <td>[% cr.staff_note %]</td>
142 <td>[% cr.public_note %]</td>
144 [% IF CAN_user_coursereserves_add_reserves %]
145 <td><a href="add_items.pl?course_id=[% course.course_id %]&barcode=[% cr.item.barcode %]&action=lookup">Edit</a></td>
148 [% IF CAN_user_coursereserves_delete_reserves %]
150 [% IF cr.item.onloan %]
152 [% ELSIF cr.item.itemlost %]
155 <a href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]" class="delete_item" >Remove</a>
162 [% FOREACH course IN cr.courses %]
163 [% UNLESS cr.course_id == course.course_id %]
165 <a href="course-details.pl?course_id=[% course.course_id %]">
166 [% course.course_name %]
167 [% IF course.section %] [% course.section %] [% END %]
168 [% IF course.term %] [% AuthorisedValues.GetByCode( 'TERM', course.term ) %] [% END %]
184 [% INCLUDE 'intranet-bottom.inc' %]