Lines 1-10
Link Here
|
|
|
1 |
[% PROCESS 'i18n.inc' %] |
1 |
[% USE Asset %] |
2 |
[% USE Asset %] |
2 |
[% USE AuthorisedValues %] |
3 |
[% USE AuthorisedValues %] |
3 |
[% USE ItemTypes %] |
4 |
[% USE ItemTypes %] |
4 |
[% USE Branches %] |
5 |
[% USE Branches %] |
5 |
[% SET footerjs = 1 %] |
6 |
[% SET footerjs = 1 %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
<title>Koha › Course reserves › Course details for [% course.course_name %]</title> |
8 |
<title>[% t('Koha › Course reserves › Course details for') %] [% course.course_name %]</title> |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
|
10 |
|
10 |
[% Asset.css("css/datatables.css") %] |
11 |
[% Asset.css("css/datatables.css") %] |
Lines 15-21
Link Here
|
15 |
[% INCLUDE 'header.inc' %] |
16 |
[% INCLUDE 'header.inc' %] |
16 |
[% INCLUDE 'cat-search.inc' %] |
17 |
[% INCLUDE 'cat-search.inc' %] |
17 |
|
18 |
|
18 |
<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> |
19 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a> [% t('› Course details for') %] <i>[% course.course_name %]</i></div> |
19 |
|
20 |
|
20 |
<div class="main container-fluid"> |
21 |
<div class="main container-fluid"> |
21 |
<div class="row"> |
22 |
<div class="row"> |
Lines 24-74
Link Here
|
24 |
[% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %] |
25 |
[% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %] |
25 |
<div id="toolbar"> |
26 |
<div id="toolbar"> |
26 |
[% IF CAN_user_coursereserves_add_reserves %] |
27 |
[% IF CAN_user_coursereserves_add_reserves %] |
27 |
<a class="btn btn-default btn-sm" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="fa fa-plus"></i> Add reserves</a> |
28 |
<a class="btn btn-default btn-sm" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="fa fa-plus"></i> [% t('Add reserves') %]</a> |
28 |
[% END %] |
29 |
[% END %] |
29 |
[% IF ( CAN_user_coursereserves_manage_courses ) %] |
30 |
[% IF ( CAN_user_coursereserves_manage_courses ) %] |
30 |
<a class="btn btn-default btn-sm" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="fa fa-pencil"></i> Edit course</a> |
31 |
<a class="btn btn-default btn-sm" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="fa fa-pencil"></i> [% t('Edit course') %]</a> |
31 |
[% END %] |
32 |
[% END %] |
32 |
[% IF ( CAN_user_coursereserves_manage_courses ) %] |
33 |
[% IF ( CAN_user_coursereserves_manage_courses ) %] |
33 |
<a class="btn btn-default btn-sm" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del"><i class="fa fa-trash"></i> Delete course</a> |
34 |
<a class="btn btn-default btn-sm" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del"><i class="fa fa-trash"></i> [% t('Delete course') %]</a> |
34 |
[% END %] |
35 |
[% END %] |
35 |
</div><!-- /toolbar --> |
36 |
</div><!-- /toolbar --> |
36 |
[% END %] |
37 |
[% END %] |
37 |
|
38 |
|
38 |
<div class="rows"> |
39 |
<div class="rows"> |
39 |
<ol> |
40 |
<ol> |
40 |
<li><span class="label">Course name</span> [% course.course_name %]</li> |
41 |
<li><span class="label">[% t('Course name') %]</span> [% course.course_name %]</li> |
41 |
<li><span class="label">Term</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li> |
42 |
<li><span class="label">[% t('Term') %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li> |
42 |
<li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li> |
43 |
<li><span class="label">[% t('Department') %]</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li> |
43 |
<li><span class="label">Course number</span> [% course.course_number %]</li> |
44 |
<li><span class="label">[% t('Course number') %]</span> [% course.course_number %]</li> |
44 |
<li><span class="label">Section</span> [% course.section %]</li> |
45 |
<li><span class="label">[% t('Section') %]</span> [% course.section %]</li> |
45 |
<li><span class="label">Instructors</span> [% 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 %]</li> |
46 |
<li><span class="label">[% t('Instructors') %]</span> [% 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 %]</li> |
46 |
<li><span class="label">Staff note</span> [% course.staff_note %]</li> |
47 |
<li><span class="label">[% t('Staff note') %]</span> [% course.staff_note %]</li> |
47 |
<li><span class="label">Public note</span> [% course.public_note %]</li> |
48 |
<li><span class="label">[% t('Public note') %]</span> [% course.public_note %]</li> |
48 |
<li><span class="label">Student count</span> [% course.students_count %]</li> |
49 |
<li><span class="label">[% t('Student count') %]</span> [% course.students_count %]</li> |
49 |
<li><span class="label">Status</span> [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</li> |
50 |
<li><span class="label">[% t('Status') %]</span> [% IF course.enabled == 'yes' %][% t('Active') %][% ELSE %][% t('Inactive') %][% END %]</li> |
50 |
</ol> |
51 |
</ol> |
51 |
</div> |
52 |
</div> |
52 |
|
53 |
|
53 |
[% IF course_reserves %] |
54 |
[% IF course_reserves %] |
54 |
<table id="course_reserves_table"> |
55 |
<table id="course_reserves_table"> |
55 |
<caption>Reserves</caption> |
56 |
<caption>[% t('Reserves') %]</caption> |
56 |
<thead> |
57 |
<thead> |
57 |
<tr> |
58 |
<tr> |
58 |
<th class="antithe">Title</th> |
59 |
<th class="antithe">[% t('Title') %]</th> |
59 |
<th>Author</th> |
60 |
<th>[% t('Author') %]</th> |
60 |
<th>Barcode</th> |
61 |
<th>[% t('Barcode') %]</th> |
61 |
<th>Call number</th> |
62 |
<th>[% t('Call number') %]</th> |
62 |
[% IF item_level_itypes %]<th>Item type</th>[% END %] |
63 |
[% IF item_level_itypes %]<th>[% t('Item type') %]</th>[% END %] |
63 |
<th>Collection</th> |
64 |
<th>[% t('Collection') %]</th> |
64 |
<th>Location</th> |
65 |
<th>[% t('Location') %]</th> |
65 |
<th>Library</th> |
66 |
<th>[% t('Library') %]</th> |
66 |
<th>Staff note</th> |
67 |
<th>[% t('Staff note') %]</th> |
67 |
<th>Public note</th> |
68 |
<th>[% t('Public note') %]</th> |
68 |
<th>Link</th> |
69 |
<th>[% t('Link') %]</th> |
69 |
<th class="NoSort">Other course reserves</th> |
70 |
<th class="NoSort">[% t('Other course reserves') %]</th> |
70 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
71 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
71 |
<th class="NoSort">Actions</th> |
72 |
<th class="NoSort">[% t('Actions') %]</th> |
72 |
[% END %] |
73 |
[% END %] |
73 |
</tr> |
74 |
</tr> |
74 |
</thead> |
75 |
</thead> |
Lines 78-84
Link Here
|
78 |
<tr> |
79 |
<tr> |
79 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber %]">[% cr.biblio.title %]</a></td> |
80 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber %]">[% cr.biblio.title %]</a></td> |
80 |
<td>[% cr.biblio.author %]</td> |
81 |
<td>[% cr.biblio.author %]</td> |
81 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber %]&biblionumber=[% cr.biblio.biblionumber %]&bi=[% cr.biblioitem.biblioitemnumber %]">[% cr.item.barcode %]</a></td> |
82 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber %]&biblionumber=[% cr.biblio.biblionumber %]&bi=[% cr.biblioitem.biblioitemnumber %]">[% cr.item.barcode %]</a></td> |
82 |
<td>[% cr.item.itemcallnumber %]</td> |
83 |
<td>[% cr.item.itemcallnumber %]</td> |
83 |
[% IF item_level_itypes %] |
84 |
[% IF item_level_itypes %] |
84 |
<td> |
85 |
<td> |
Lines 89-95
Link Here
|
89 |
[% ItemTypes.GetDescription( cr.course_item.itype ) %] |
90 |
[% ItemTypes.GetDescription( cr.course_item.itype ) %] |
90 |
[% END %] |
91 |
[% END %] |
91 |
[% ELSE %] |
92 |
[% ELSE %] |
92 |
<i>Unchanged</i> |
93 |
<i>[% t('Unchanged') %]</i> |
93 |
[% IF cr.item.itype %] |
94 |
[% IF cr.item.itype %] |
94 |
([% ItemTypes.GetDescription( cr.item.itype ) %]) |
95 |
([% ItemTypes.GetDescription( cr.item.itype ) %]) |
95 |
[% END %] |
96 |
[% END %] |
Lines 104-110
Link Here
|
104 |
[% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) %] |
105 |
[% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) %] |
105 |
[% END %] |
106 |
[% END %] |
106 |
[% ELSE %] |
107 |
[% ELSE %] |
107 |
<i>Unchanged</i> |
108 |
<i>[% t('Unchanged') %]</i> |
108 |
[% IF cr.item.ccode %] |
109 |
[% IF cr.item.ccode %] |
109 |
([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]) |
110 |
([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]) |
110 |
[% END %] |
111 |
[% END %] |
Lines 118-124
Link Here
|
118 |
[% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) %] |
119 |
[% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) %] |
119 |
[% END %] |
120 |
[% END %] |
120 |
[% ELSE %] |
121 |
[% ELSE %] |
121 |
<i>Unchanged</i> |
122 |
<i>[% t('Unchanged') %]</i> |
122 |
[% IF cr.item.location %] |
123 |
[% IF cr.item.location %] |
123 |
([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]) |
124 |
([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]) |
124 |
[% END %] |
125 |
[% END %] |
Lines 132-138
Link Here
|
132 |
[% Branches.GetName( cr.course_item.holdingbranch ) %] |
133 |
[% Branches.GetName( cr.course_item.holdingbranch ) %] |
133 |
[% END %] |
134 |
[% END %] |
134 |
[% ELSE %] |
135 |
[% ELSE %] |
135 |
<i>Unchanged</i> |
136 |
<i>[% t('Unchanged') %]</i> |
136 |
[% IF cr.item.holdingbranch %] |
137 |
[% IF cr.item.holdingbranch %] |
137 |
([% Branches.GetName( cr.item.holdingbranch ) %]) |
138 |
([% Branches.GetName( cr.item.holdingbranch ) %]) |
138 |
[% END %] |
139 |
[% END %] |
Lines 153-161
Link Here
|
153 |
|
154 |
|
154 |
<td> |
155 |
<td> |
155 |
[% IF (cr.item.uri) %] |
156 |
[% IF (cr.item.uri) %] |
156 |
<a href="[% cr.item.uri %]">Item URI</a> |
157 |
<a href="[% cr.item.uri %]">[% t('Item URI') %]</a> |
157 |
[% ELSIF (cr.biblioitem.url) %] |
158 |
[% ELSIF (cr.biblioitem.url) %] |
158 |
<a href="[% cr.biblioitem.url %]">Record URL</a> |
159 |
<a href="[% cr.biblioitem.url %]">[% t('Record URL') %]</a> |
159 |
[% END %] |
160 |
[% END %] |
160 |
</td> |
161 |
</td> |
161 |
|
162 |
|
Lines 176-191
Link Here
|
176 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
177 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
177 |
<td class="actions"> |
178 |
<td class="actions"> |
178 |
[% IF CAN_user_coursereserves_add_reserves %] |
179 |
[% IF CAN_user_coursereserves_add_reserves %] |
179 |
<a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id %]&itemnumber=[% cr.item.itemnumber %]&action=lookup&return=[% course.course_id %]"><i class="fa fa-pencil"></i> Edit</a> |
180 |
<a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id %]&itemnumber=[% cr.item.itemnumber %]&action=lookup&return=[% course.course_id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a> |
180 |
[% END %] |
181 |
[% END %] |
181 |
|
182 |
|
182 |
[% IF CAN_user_coursereserves_delete_reserves %] |
183 |
[% IF CAN_user_coursereserves_delete_reserves %] |
183 |
[% IF cr.item.onloan %] |
184 |
[% IF cr.item.onloan %] |
184 |
<a class="btn btn-default btn-xs disabled checkedout delete_item" href="#" data-toggle="tooltip" data-placement="left" title="This item is checked out"> |
185 |
<a class="btn btn-default btn-xs disabled checkedout delete_item" href="#" data-toggle="tooltip" data-placement="left" title="[% t('This item is checked out') %]"> |
185 |
[% ELSE %] |
186 |
[% ELSE %] |
186 |
<a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]"> |
187 |
<a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]"> |
187 |
[% END %] |
188 |
[% END %] |
188 |
<i class="fa fa-trash"></i> Remove</a> |
189 |
<i class="fa fa-trash"></i> [% t('Remove') %]</a> |
189 |
[% END %] |
190 |
[% END %] |
190 |
</td> |
191 |
</td> |
191 |
[% END %] |
192 |
[% END %] |