View | Details | Raw Unified | Return to bug 32146
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-208 / +213 lines)
Lines 79-316 Link Here
79
            </div><!-- /toolbar -->
79
            </div><!-- /toolbar -->
80
            [% END %]
80
            [% END %]
81
81
82
            <div class="rows">
82
            <div class="page-section">
83
              <ol>
83
84
                <li><span class="label">Course name</span> [% course.course_name | html %]</li>
84
                <div class="rows">
85
                <li><span class="label">[% tp('Semester', 'Term') | html %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) | html %]</li>
85
                <ol>
86
                <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) | html %]</li>
86
                    <li><span class="label">Course name</span> [% course.course_name | html %]</li>
87
                <li><span class="label">Course number</span> [% course.course_number | html %]</li>
87
                    <li><span class="label">[% tp('Semester', 'Term') | html %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) | html %]</li>
88
                <li><span class="label">Section</span> [% course.section | html %]</li>
88
                    <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) | html %]</li>
89
                <li>
89
                    <li><span class="label">Course number</span> [% course.course_number | html %]</li>
90
                    <span class="label">Instructors</span>
90
                    <li><span class="label">Section</span> [% course.section | html %]</li>
91
                    <div id="instructors">
91
                    <li>
92
                        [% FOREACH i IN course.instructors %]
92
                        <span class="label">Instructors</span>
93
                            <div class="instructor_line">
93
                        <div id="instructors">
94
                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a>
94
                            [% FOREACH i IN course.instructors %]
95
                            </div>
95
                                <div class="instructor_line">
96
                        [% END %]
96
                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a>
97
                    </div>
97
                                </div>
98
                </li>
98
                            [% END %]
99
                <li><span class="label">Staff note</span> [% course.staff_note | html %]</li>
99
                        </div>
100
                <li><span class="label">Public note</span> [% course.public_note | $raw %]</li>
100
                    </li>
101
                <li><span class="label">Student count</span> [% course.students_count | html %]</li>
101
                    <li><span class="label">Staff note</span> [% course.staff_note | html %]</li>
102
                <li><span class="label">Status</span> [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</li>
102
                    <li><span class="label">Public note</span> [% course.public_note | $raw %]</li>
103
              </ol>
103
                    <li><span class="label">Student count</span> [% course.students_count | html %]</li>
104
            </div>
104
                    <li><span class="label">Status</span> [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</li>
105
                </ol>
106
                </div>
107
            </div> <!-- /.page-section -->
105
108
106
            [% IF course_reserves %]
109
            [% IF course_reserves %]
107
            <table id="course_reserves_table">
110
                <div class="page-section">
108
                <thead>
111
                    <table id="course_reserves_table">
109
                    <tr>
112
                        <thead>
110
                        <th class="anti-the">Title</th>
113
                            <tr>
111
                        <th>Author</th>
114
                                <th class="anti-the">Title</th>
112
                        <th>Barcode</th>
115
                                <th>Author</th>
113
                        <th>Call number</th>
116
                                <th>Barcode</th>
114
                        [% IF item_level_itypes %]<th>Item type</th>[% END %]
117
                                <th>Call number</th>
115
                        <th>Collection</th>
118
                                [% IF item_level_itypes %]<th>Item type</th>[% END %]
116
                        <th>Location</th>
119
                                <th>Collection</th>
117
                        <th>Home library</th>
120
                                <th>Location</th>
118
                        <th>Holding library</th>
121
                                <th>Home library</th>
119
                        <th>Staff note</th>
122
                                <th>Holding library</th>
120
                        <th>Public note</th>
123
                                <th>Staff note</th>
121
                        <th>Link</th>
124
                                <th>Public note</th>
122
                        <th class="NoSort">Other course reserves</th>
125
                                <th>Link</th>
123
                        <th>Status</th>
126
                                <th class="NoSort">Other course reserves</th>
124
                        [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
127
                                <th>Status</th>
125
                            <th class="NoSort noExport">Actions</th>
128
                                [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
126
                        [% END %]
129
                                    <th class="NoSort noExport">Actions</th>
127
                    </tr>
130
                                [% END %]
128
                </thead>
131
                            </tr>
132
                        </thead>
129
133
130
                <tbody>
134
                        <tbody>
131
                    [% FOREACH cr IN course_reserves %]
135
                            [% FOREACH cr IN course_reserves %]
132
                        <tr>
136
                                <tr>
133
                            <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=cr.biblio %]</a></td>
137
                                    <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=cr.biblio %]</a></td>
134
                            <td>[% cr.biblio.author | html %]</td>
138
                                    <td>[% cr.biblio.author | html %]</td>
135
139
136
                            [% IF cr.item %]
140
                                    [% IF cr.item %]
137
                                <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber | uri %]&amp;biblionumber=[% cr.biblio.biblionumber | uri %]&amp;bi=[% cr.biblioitem.biblioitemnumber | uri %]">[% cr.item.barcode | html %]</a></td>
141
                                        <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber | uri %]&amp;biblionumber=[% cr.biblio.biblionumber | uri %]&amp;bi=[% cr.biblioitem.biblioitemnumber | uri %]">[% cr.item.barcode | html %]</a></td>
138
142
139
143
140
144
141
                                <td>[% cr.item.itemcallnumber | html %]</td>
145
                                        <td>[% cr.item.itemcallnumber | html %]</td>
142
                                [% IF item_level_itypes %]
146
                                        [% IF item_level_itypes %]
143
                                <td>
147
                                        <td>
144
                                    [% IF cr.course_item.itype_enabled %]
148
                                            [% IF cr.course_item.itype_enabled %]
145
                                        [% IF cr.course_item.enabled == 'yes' %]
149
                                                [% IF cr.course_item.enabled == 'yes' %]
146
                                            <strong>[% ItemTypes.GetDescription( cr.item.effective_itemtype ) | html %]</strong>
150
                                                    <strong>[% ItemTypes.GetDescription( cr.item.effective_itemtype ) | html %]</strong>
147
                                            ([% ItemTypes.GetDescription( cr.course_item.itype_storage ) | html %])
151
                                                    ([% ItemTypes.GetDescription( cr.course_item.itype_storage ) | html %])
148
                                        [% ELSE %]
152
                                                [% ELSE %]
149
                                            [% ItemTypes.GetDescription( cr.course_item.itype ) | html %]
153
                                                    [% ItemTypes.GetDescription( cr.course_item.itype ) | html %]
150
                                            (<strong>[% ItemTypes.GetDescription( cr.item.effective_itemtype) | html %]</strong>)
154
                                                    (<strong>[% ItemTypes.GetDescription( cr.item.effective_itemtype) | html %]</strong>)
151
                                        [% END %]
155
                                                [% END %]
152
                                    [% ELSE %]
156
                                            [% ELSE %]
153
                                         <em>Unchanged</em>
157
                                                <em>Unchanged</em>
154
                                         [% IF cr.item.itype %]
158
                                                [% IF cr.item.itype %]
155
                                             ([% ItemTypes.GetDescription( cr.item.itype ) | html %])
159
                                                    ([% ItemTypes.GetDescription( cr.item.itype ) | html %])
156
                                         [% END %]
160
                                                [% END %]
157
                                    [% END %]
158
                                </td>
159
                                [% END %]
160
                                <td>
161
                                     [% IF cr.course_item.ccode_enabled %]
162
                                         [% IF cr.course_item.enabled == 'yes' %]
163
                                         <strong>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %]</strong>
164
                                            [% IF cr.item.ccode %]
165
                                                ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.course_item.ccode_storage ) | html %])
166
                                            [% END %]
167
                                         [% ELSE %]
168
                                            [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.course_item.ccode ) | html %]
169
                                            [% IF cr.item.ccode %]
170
                                                (<strong>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %]</strong>)
171
                                            [% END %]
161
                                            [% END %]
172
                                         [% END %]
162
                                        </td>
173
                                         [% ELSE %]
163
                                        [% END %]
174
                                             <em>Unchanged</em>
164
                                        <td>
175
                                             [% IF cr.item.ccode %]
165
                                            [% IF cr.course_item.ccode_enabled %]
176
                                                 ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %])
166
                                                [% IF cr.course_item.enabled == 'yes' %]
177
                                             [% END %]
167
                                                <strong>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %]</strong>
178
                                         [% END %]
168
                                                    [% IF cr.item.ccode %]
179
                                    </td>
169
                                                        ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.course_item.ccode_storage ) | html %])
180
                                    <td>
170
                                                    [% END %]
181
                                        [% IF cr.course_item.location_enabled %]
171
                                                [% ELSE %]
182
                                            [% IF cr.course_item.enabled == 'yes' %]
172
                                                    [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.course_item.ccode ) | html %]
183
                                                <strong>[% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %]</strong>
173
                                                    [% IF cr.item.ccode %]
174
                                                        (<strong>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %]</strong>)
175
                                                    [% END %]
176
                                                [% END %]
177
                                                [% ELSE %]
178
                                                    <em>Unchanged</em>
179
                                                    [% IF cr.item.ccode %]
180
                                                        ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode ) | html %])
181
                                                    [% END %]
182
                                                [% END %]
183
                                            </td>
184
                                            <td>
185
                                                [% IF cr.course_item.location_enabled %]
186
                                                    [% IF cr.course_item.enabled == 'yes' %]
187
                                                        <strong>[% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %]</strong>
188
                                                        [% IF cr.item.permanent_location %]
189
                                                            ([% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location_storage ) | html %])
190
                                                        [% END %]
191
                                                [% ELSE %]
192
                                                    [% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) | html %]
193
                                                    [% IF cr.item.permanent_location %]
194
                                                        (<strong>[% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %]</strong>)
195
                                                    [% END %]
196
                                                [% END %]
197
                                            [% ELSE %]
198
                                                <em>Unchanged</em>
184
                                                [% IF cr.item.permanent_location %]
199
                                                [% IF cr.item.permanent_location %]
185
                                                    ([% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location_storage ) | html %])
200
                                                    ([% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %])
186
                                                [% END %]
201
                                                [% END %]
187
                                        [% ELSE %]
188
                                            [% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) | html %]
189
                                            [% IF cr.item.permanent_location %]
190
                                                (<strong>[% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %]</strong>)
191
                                            [% END %]
202
                                            [% END %]
192
                                        [% END %]
203
                                        </td>
193
                                    [% ELSE %]
204
                                        <td>
194
                                        <em>Unchanged</em>
205
                                            [% IF cr.course_item.homebranch_enabled %]
195
                                        [% IF cr.item.permanent_location %]
206
                                                [% IF cr.course_item.enabled == 'yes' %]
196
                                            ([% AuthorisedValues.GetByCode( 'LOC', cr.item.permanent_location ) | html %])
207
                                                    <strong>[% Branches.GetName( cr.item.homebranch ) | html %]</strong>
197
                                        [% END %]
208
                                                    [% IF cr.item.homebranch %]
198
                                    [% END %]
209
                                                        ([% Branches.GetName( cr.course_item.homebranch_storage ) | html %])
199
                                </td>
210
                                                    [% END %]
200
                                <td>
211
                                                [% ELSE %]
201
                                    [% IF cr.course_item.homebranch_enabled %]
212
                                                    [% Branches.GetName( cr.course_item.homebranch ) | html %]
202
                                        [% IF cr.course_item.enabled == 'yes' %]
213
                                                    [% IF cr.item.homebranch %]
203
                                            <strong>[% Branches.GetName( cr.item.homebranch ) | html %]</strong>
214
                                                        (<strong>[% Branches.GetName( cr.item.homebranch ) | html %]</strong>)
204
                                            [% IF cr.item.homebranch %]
215
                                                    [% END %]
205
                                                ([% Branches.GetName( cr.course_item.homebranch_storage ) | html %])
216
                                                [% END %]
217
                                            [% ELSE %]
218
                                                <em>Unchanged</em>
219
                                                [% IF cr.item.homebranch %]
220
                                                    ([% Branches.GetName( cr.item.homebranch ) | html %])
221
                                                [% END %]
206
                                            [% END %]
222
                                            [% END %]
207
                                        [% ELSE %]
223
                                        </td>
208
                                            [% Branches.GetName( cr.course_item.homebranch ) | html %]
224
                                        <td>
209
                                            [% IF cr.item.homebranch %]
225
                                            [% IF cr.course_item.holdingbranch_enabled %]
210
                                                (<strong>[% Branches.GetName( cr.item.homebranch ) | html %]</strong>)
226
                                                [% IF cr.course_item.enabled == 'yes' %]
227
                                                    <strong>[% Branches.GetName( cr.item.holdingbranch ) | html %]</strong>
228
                                                    [% IF cr.item.holdingbranch %]
229
                                                        ([% Branches.GetName( cr.course_item.holdingbranch_storage ) | html %])
230
                                                    [% END %]
231
                                                [% ELSE %]
232
                                                    [% Branches.GetName( cr.course_item.holdingbranch ) | html %]
233
                                                    [% IF cr.item.holdingbranch %]
234
                                                        (<strong>[% Branches.GetName( cr.item.holdingbranch ) | html %]</strong>)
235
                                                    [% END %]
236
                                                [% END %]
237
                                            [% ELSE %]
238
                                                <em>Unchanged</em>
239
                                                [% IF cr.item.holdingbranch %]
240
                                                    ([% Branches.GetName( cr.item.holdingbranch ) | html %])
241
                                                [% END %]
211
                                            [% END %]
242
                                            [% END %]
212
                                        [% END %]
243
                                        </td>
213
                                    [% ELSE %]
244
                                    [% ELSE # record-level course reserve %]
214
                                        <em>Unchanged</em>
245
                                        <td>
215
                                        [% IF cr.item.homebranch %]
246
                                            <div class="biblio-level-info">Item information is not available for record-level course reserve</div>
216
                                            ([% Branches.GetName( cr.item.homebranch ) | html %])
247
                                        </td>
217
                                        [% END %]
248
                                        <td><!-- Call number --></td>
249
                                        <td><!-- Item type --></td>
250
                                        <td><!-- Collection --></td>
251
                                        <td><!-- Location --></td>
252
                                        <td><!-- Home library --></td>
253
                                        <td><!-- Holding library --></td>
218
                                    [% END %]
254
                                    [% END %]
219
                                </td>
255
220
                                <td>
256
                                    <td>[% IF (cr.staff_note) %]
221
                                    [% IF cr.course_item.holdingbranch_enabled %]
257
                                            [% cr.staff_note | html %]
222
                                        [% IF cr.course_item.enabled == 'yes' %]
258
                                        [% ELSIF (cr.item.itemnotes_nonpublic) %]
223
                                            <strong>[% Branches.GetName( cr.item.holdingbranch ) | html %]</strong>
259
                                            [% cr.item.itemnotes_nonpublic | html %]
224
                                            [% IF cr.item.holdingbranch %]
225
                                                ([% Branches.GetName( cr.course_item.holdingbranch_storage ) | html %])
226
                                            [% END %]
227
                                        [% ELSE %]
228
                                            [% Branches.GetName( cr.course_item.holdingbranch ) | html %]
229
                                            [% IF cr.item.holdingbranch %]
230
                                                (<strong>[% Branches.GetName( cr.item.holdingbranch ) | html %]</strong>)
231
                                            [% END %]
232
                                        [% END %]
260
                                        [% END %]
233
                                    [% ELSE %]
261
                                    </td>
234
                                        <em>Unchanged</em>
262
                                    <td>[% IF (cr.public_note) %]
235
                                        [% IF cr.item.holdingbranch %]
263
                                            [% cr.public_note | $raw %]
236
                                            ([% Branches.GetName( cr.item.holdingbranch ) | html %])
264
                                        [% ELSIF (cr.item.itemnotes) %]
265
                                            [% cr.item.itemnotes | $raw %]
237
                                        [% END %]
266
                                        [% END %]
238
                                    [% END %]
267
                                    </td>
239
                                </td>
240
                            [% ELSE # record-level course reserve %]
241
                                <td>
242
                                    <div class="biblio-level-info">Item information is not available for record-level course reserve</div>
243
                                </td>
244
                                <td><!-- Call number --></td>
245
                                <td><!-- Item type --></td>
246
                                <td><!-- Collection --></td>
247
                                <td><!-- Location --></td>
248
                                <td><!-- Home library --></td>
249
                                <td><!-- Holding library --></td>
250
                            [% END %]
251
268
252
                            <td>[% IF (cr.staff_note) %]
269
                                    <td>
253
                                    [% cr.staff_note | html %]
270
                                        [% IF (cr.item.uri) %]
254
                                [% ELSIF (cr.item.itemnotes_nonpublic) %]
271
                                            <a href="[% cr.item.uri | url %]">Item URI</a>
255
                                    [% cr.item.itemnotes_nonpublic | html %]
272
                                        [% ELSIF (cr.biblioitem.url) %]
256
                                [% END %]
273
                                            <a href="[% cr.biblioitem.url | url %]">Record URL</a>
257
                            </td>
274
                                        [% END %]
258
                            <td>[% IF (cr.public_note) %]
275
                                    </td>
259
                                    [% cr.public_note | $raw %]
260
                                [% ELSIF (cr.item.itemnotes) %]
261
                                    [% cr.item.itemnotes | $raw %]
262
                                [% END %]
263
                            </td>
264
276
265
                            <td>
277
                                    <td>
266
                                [% IF (cr.item.uri) %]
278
                                        [% FOREACH c IN cr.courses %]
267
                                    <a href="[% cr.item.uri | url %]">Item URI</a>
279
                                            [% UNLESS cr.course_id == c.course_id %]
268
                                [% ELSIF (cr.biblioitem.url) %]
280
                                                <p>
269
                                    <a href="[% cr.biblioitem.url | url %]">Record URL</a>
281
                                                    <a href="course-details.pl?course_id=[% c.course_id | uri %]">
270
                                [% END %]
282
                                                        [% c.course_name | html %]
271
                            </td>
283
                                                        [% IF c.section %] [% c.section | html %] [% END %]
284
                                                        [% IF c.term %] [% AuthorisedValues.GetByCode( 'TERM', c.term ) | html %] [% END %]
285
                                                    </a>
286
                                                </p>
287
                                            [% END %]
288
                                        [% END %]
289
                                    </td>
272
290
273
                            <td>
291
                                    <td class="status">
274
                                [% FOREACH c IN cr.courses %]
292
                                        <span>
275
                                    [% UNLESS cr.course_id == c.course_id %]
293
                                        [% IF cr.item.onloan %]
276
                                        <p>
294
                                            <span>Checked out</span>
277
                                            <a href="course-details.pl?course_id=[% c.course_id | uri %]">
295
                                        [% ELSE %]
278
                                                [% c.course_name | html %]
296
                                            <span>Available</span>
279
                                                [% IF c.section %] [% c.section | html %] [% END %]
297
                                        [% END %]
280
                                                [% IF c.term %] [% AuthorisedValues.GetByCode( 'TERM', c.term ) | html %] [% END %]
298
                                        </span>
281
                                            </a>
299
                                    </td>
282
                                        </p>
283
                                    [% END %]
284
                                [% END %]
285
                            </td>
286
300
287
                            <td class="status">
301
                                    [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
288
                                <span>
302
                                        <td class="actions">
289
                                [% IF cr.item.onloan %]
303
                                            [% IF CAN_user_coursereserves_add_reserves %]
290
                                    <span>Checked out</span>
304
                                                <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id | html %]&amp;itemnumber=[% cr.item.itemnumber | html %]&amp;biblionumber=[% cr.biblio.biblionumber | html %]&amp;action=lookup&amp;return=[% course.course_id | html %]&amp;is_edit=1"><i class="fa fa-pencil"></i> Edit</a>
291
                                [% ELSE %]
305
                                            [% END %]
292
                                    <span>Available</span>
293
                                [% END %]
294
                                </span>
295
                            </td>
296
306
297
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
307
                                            [% IF CAN_user_coursereserves_delete_reserves %]
298
                                <td class="actions">
308
                                                <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id | html %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id | html %]">
299
                                    [% IF CAN_user_coursereserves_add_reserves %]
309
                                                <i class="fa fa-trash"></i> Remove</a>
300
                                        <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id | html %]&amp;itemnumber=[% cr.item.itemnumber | html %]&amp;biblionumber=[% cr.biblio.biblionumber | html %]&amp;action=lookup&amp;return=[% course.course_id | html %]&amp;is_edit=1"><i class="fa fa-pencil"></i> Edit</a>
310
                                            [% END %]
311
                                        </td>
301
                                    [% END %]
312
                                    [% END %]
302
313
303
                                    [% IF CAN_user_coursereserves_delete_reserves %]
314
                                </tr>
304
                                        <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id | html %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id | html %]">
305
                                        <i class="fa fa-trash"></i> Remove</a>
306
                                    [% END %]
307
                                </td>
308
                            [% END %]
315
                            [% END %]
309
316
                        </tbody>
310
                        </tr>
317
                    </table>
311
                    [% END %]
318
                </div> <!-- /.page-section -->
312
                </tbody>
313
            </table>
314
            [% END %]
319
            [% END %]
315
        </div>
320
        </div>
316
    </div>
321
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (-42 / +42 lines)
Lines 45-93 Link Here
45
                    [% END %]
45
                    [% END %]
46
46
47
                    <h1>Courses</h1>
47
                    <h1>Courses</h1>
48
                    <table id="course_reserves_table">
48
                    <div class="page-section">
49
                        <thead>
49
                        <table id="course_reserves_table">
50
                            <tr>
50
                            <thead>
51
                                <th>Name</th>
52
                                <th>Dept.</th>
53
                                <th>Course #</th>
54
                                <th>Section</th>
55
                                <th>[% tp('Semester', 'Term') | html %]</th>
56
                                <th>Instructors</th>
57
                                <th>Staff note</th>
58
                                <th>Public note</th>
59
                                <th># of students</th>
60
                                <th>Enabled</th>
61
                            </tr>
62
                        </thead>
63
64
                        <tbody>
65
                            [% FOREACH c IN courses %]
66
                                <tr>
51
                                <tr>
67
                                    <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
52
                                    <th>Name</th>
68
                                    <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
53
                                    <th>Dept.</th>
69
                                    <td>[% c.course_number | html %]</td>
54
                                    <th>Course #</th>
70
                                    <td>[% c.section | html %]</td>
55
                                    <th>Section</th>
71
                                    <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
56
                                    <th>[% tp('Semester', 'Term') | html %]</th>
72
                                    <td>
57
                                    <th>Instructors</th>
73
                                        [% FOREACH i IN c.instructors %]
58
                                    <th>Staff note</th>
74
                                            <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
59
                                    <th>Public note</th>
75
                                        [% END %]
60
                                    <th># of students</th>
76
                                    </td>
61
                                    <th>Enabled</th>
77
                                    <td>[% c.staff_note | html %]</td>
62
                                </tr>
78
                                    <td>[% c.public_note | $raw %]</td>
63
                            </thead>
79
                                    <td>[% c.students_count | html %]</td>
80
                                    <td>
81
                                        [% IF c.enabled == 'yes' %]
82
                                            Yes
83
                                        [% ELSE %]
84
                                            No
85
                                        [% END %]
86
                                    </td>
87
                            [% END %]
88
                        </tbody>
89
                    </table>
90
64
65
                            <tbody>
66
                                [% FOREACH c IN courses %]
67
                                    <tr>
68
                                        <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
69
                                        <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
70
                                        <td>[% c.course_number | html %]</td>
71
                                        <td>[% c.section | html %]</td>
72
                                        <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
73
                                        <td>
74
                                            [% FOREACH i IN c.instructors %]
75
                                                <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
76
                                            [% END %]
77
                                        </td>
78
                                        <td>[% c.staff_note | html %]</td>
79
                                        <td>[% c.public_note | $raw %]</td>
80
                                        <td>[% c.students_count | html %]</td>
81
                                        <td>
82
                                            [% IF c.enabled == 'yes' %]
83
                                                Yes
84
                                            [% ELSE %]
85
                                                No
86
                                            [% END %]
87
                                        </td>
88
                                [% END %]
89
                            </tbody>
90
                        </table>
91
                    </div> <!-- /.page-section -->
91
            </div>
92
            </div>
92
        </div>
93
        </div>
93
94
94
- 

Return to bug 32146