|
Lines 25-30
Link Here
|
| 25 |
$("#delete_course").click(function(){ |
25 |
$("#delete_course").click(function(){ |
| 26 |
return confirm( _("Are you sure you want to delete this course?") ); |
26 |
return confirm( _("Are you sure you want to delete this course?") ); |
| 27 |
}); |
27 |
}); |
|
|
28 |
$(".disabled").tooltip().on("click", function(e){ |
| 29 |
e.preventDefault(); |
| 30 |
if( $(this).hasClass("checkedout") ){ |
| 31 |
alert(_("This item cannot be removed. It is checked out")); |
| 32 |
} |
| 33 |
if( $(this).hasClass("itemlost") ) { |
| 34 |
alert(_("This item cannot be removed. It is lost")); |
| 35 |
} |
| 36 |
}); |
| 28 |
}); |
37 |
}); |
| 29 |
|
38 |
|
| 30 |
//]]> |
39 |
//]]> |
|
Lines 82-91
Link Here
|
| 82 |
<th>Library</th> |
91 |
<th>Library</th> |
| 83 |
<th>Staff note</th> |
92 |
<th>Staff note</th> |
| 84 |
<th>Public note</th> |
93 |
<th>Public note</th> |
| 85 |
[% IF CAN_user_coursereserves_add_reserves %]<th class="NoSort"> <!-- Edit --></th>[% END %] |
|
|
| 86 |
[% IF CAN_user_coursereserves_delete_reserves %]<th class="NoSort"> <!-- Remove --></th>[% END %] |
| 87 |
<th class="NoSort">Other course reserves</th> |
| 88 |
<th>Link</th> |
94 |
<th>Link</th> |
|
|
95 |
<th class="NoSort">Other course reserves</th> |
| 96 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
| 97 |
<th class="NoSort">Actions</th> |
| 98 |
[% END %] |
| 89 |
</tr> |
99 |
</tr> |
| 90 |
</thead> |
100 |
</thead> |
| 91 |
|
101 |
|
|
Lines 167-188
Link Here
|
| 167 |
[% END %] |
177 |
[% END %] |
| 168 |
</td> |
178 |
</td> |
| 169 |
|
179 |
|
| 170 |
[% IF CAN_user_coursereserves_add_reserves %] |
180 |
<td> |
| 171 |
<td><a href="add_items.pl?course_id=[% course.course_id %]&barcode=[% cr.item.barcode %]&action=lookup&return=[% course.course_id %]">Edit</a></td> |
181 |
[% IF (cr.item.uri) %] |
| 172 |
[% END %] |
182 |
<a href="[% cr.item.uri %]">Item URI</a> |
| 173 |
|
183 |
[% ELSIF (cr.item.url) %] |
| 174 |
[% IF CAN_user_coursereserves_delete_reserves %] |
184 |
<a href="[% cr.item.url %]">Record URL</a> |
| 175 |
<td> |
185 |
[% END %] |
| 176 |
[% IF cr.item.onloan %] |
186 |
</td> |
| 177 |
Checked out |
|
|
| 178 |
[% ELSIF cr.item.itemlost %] |
| 179 |
Item lost |
| 180 |
[% ELSE %] |
| 181 |
<a href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]" class="delete_item" >Remove</a> |
| 182 |
[% END %] |
| 183 |
|
| 184 |
</td> |
| 185 |
[% END %] |
| 186 |
|
187 |
|
| 187 |
<td> |
188 |
<td> |
| 188 |
[% FOREACH c IN cr.courses %] |
189 |
[% FOREACH c IN cr.courses %] |
|
Lines 197-209
Link Here
|
| 197 |
[% END %] |
198 |
[% END %] |
| 198 |
[% END %] |
199 |
[% END %] |
| 199 |
</td> |
200 |
</td> |
| 200 |
<td> |
201 |
|
| 201 |
[% IF (cr.item.uri) %] |
202 |
[% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] |
| 202 |
<a href="[% cr.item.uri %]">Item URI</a> |
203 |
<td class="actions"> |
| 203 |
[% ELSIF (cr.item.url) %] |
204 |
[% IF CAN_user_coursereserves_add_reserves %] |
| 204 |
<a href="[% cr.item.url %]">Record URL</a> |
205 |
<a class="btn btn-mini" href="add_items.pl?course_id=[% course.course_id %]&barcode=[% cr.item.barcode %]&action=lookup&return=[% course.course_id %]"><i class="fa fa-pencil"></i> Edit</a> |
| 205 |
[% END %] |
206 |
[% END %] |
| 206 |
</td> |
207 |
|
|
|
208 |
[% IF CAN_user_coursereserves_delete_reserves %] |
| 209 |
[% IF cr.item.onloan %] |
| 210 |
<a class="btn btn-mini disabled checkedout" href="#" class="delete_item" data-toggle="tooltip" data-placement="left" title="This item is checked out"> |
| 211 |
[% ELSIF cr.item.itemlost %] |
| 212 |
<a class="btn btn-mini disabled itemlost" href="#" class="delete_item" data-toggle="tooltip" data-placement="left" title="This item is lost"> |
| 213 |
[% ELSE %] |
| 214 |
<a class="btn btn-mini" href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]" class="delete_item" > |
| 215 |
[% END %] |
| 216 |
<i class="fa fa-trash"></i> Remove</a> |
| 217 |
[% END %] |
| 218 |
</td> |
| 219 |
[% END %] |
| 220 |
|
| 207 |
</tr> |
221 |
</tr> |
| 208 |
[% END %] |
222 |
[% END %] |
| 209 |
</tbody> |
223 |
</tbody> |
| 210 |
- |
|
|