|
Lines 3-8
Link Here
|
| 3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
| 4 |
[% USE AuthorisedValues %] |
4 |
[% USE AuthorisedValues %] |
| 5 |
[% USE Price %] |
5 |
[% USE Price %] |
|
|
6 |
[% USE ColumnsSettings %] |
| 6 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
| 7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
| 8 |
<title>Koha › Administration › Item types [% IF op == 'add_form' %]› |
9 |
<title>Koha › Administration › Item types [% IF op == 'add_form' %]› |
|
Lines 347-353
Item types administration
Link Here
|
| 347 |
[% IF itemtypes %] |
348 |
[% IF itemtypes %] |
| 348 |
<table id="table_item_type"> |
349 |
<table id="table_item_type"> |
| 349 |
<thead> |
350 |
<thead> |
| 350 |
[% UNLESS Koha.Preference('noItemTypeImages') %]<th>Image</th>[% END %] |
351 |
[% UNLESS Koha.Preference('noItemTypeImages') %]<th class="noExport">Image</th>[% END %] |
| 351 |
<th>Code</th> |
352 |
<th>Code</th> |
| 352 |
<th>Description</th> |
353 |
<th>Description</th> |
| 353 |
<th>Search category</th> |
354 |
<th>Search category</th> |
|
Lines 359-365
Item types administration
Link Here
|
| 359 |
<th>Default replacement cost</th> |
360 |
<th>Default replacement cost</th> |
| 360 |
<th>Processing fee (when lost)</th> |
361 |
<th>Processing fee (when lost)</th> |
| 361 |
<th>Checkin message</th> |
362 |
<th>Checkin message</th> |
| 362 |
<th>Actions</th> |
363 |
<th class="noExport">Actions</th> |
| 363 |
</thead> |
364 |
</thead> |
| 364 |
[% FOREACH itemtype IN itemtypes %] |
365 |
[% FOREACH itemtype IN itemtypes %] |
| 365 |
<tr> |
366 |
<tr> |
|
Lines 437-453
Item types administration
Link Here
|
| 437 |
[% Asset.js("js/admin-menu.js") | $raw %] |
438 |
[% Asset.js("js/admin-menu.js") | $raw %] |
| 438 |
[% INCLUDE 'greybox.inc' %] |
439 |
[% INCLUDE 'greybox.inc' %] |
| 439 |
[% INCLUDE 'datatables.inc' %] |
440 |
[% INCLUDE 'datatables.inc' %] |
|
|
441 |
[% INCLUDE 'columns_settings.inc' %] |
| 440 |
<script> |
442 |
<script> |
| 441 |
$(document).ready(function() { |
443 |
$(document).ready(function() { |
| 442 |
$('#icons').tabs(); |
444 |
$('#icons').tabs(); |
| 443 |
$("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, { |
445 |
var columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
| 444 |
"aoColumnDefs": [ |
446 |
[% IF Koha.Preference('noItemTypeImages') %] |
| 445 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
447 |
columns_settings.shift(); // Remove item type image column from configuration |
| 446 |
], |
448 |
[% END %] |
|
|
449 |
|
| 450 |
$(document).ready(function() { |
| 451 |
KohaTable("table_item_type", { |
| 452 |
"aoColumnDefs": [ |
| 453 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
| 454 |
], |
| 447 |
"aaSorting": [[ 2, "asc" ]], |
455 |
"aaSorting": [[ 2, "asc" ]], |
| 448 |
"iDisplayLength": 10, |
456 |
"iDisplayLength": 10, |
| 449 |
"sPaginationType": "full" |
457 |
"sPaginationType": "full" |
| 450 |
})); |
458 |
}, columns_settings); |
|
|
459 |
}); |
| 460 |
|
| 451 |
$( "#itemtypeentry" ).validate({ |
461 |
$( "#itemtypeentry" ).validate({ |
| 452 |
rules: { |
462 |
rules: { |
| 453 |
itemtype: { required: true }, |
463 |
itemtype: { required: true }, |
| 454 |
- |
|
|