|
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 360-366
Item types administration
Link Here
|
| 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>Library limitations</th> |
363 |
<th>Library limitations</th> |
| 363 |
<th>Actions</th> |
364 |
<th class="noExport">Actions</th> |
| 364 |
</thead> |
365 |
</thead> |
| 365 |
[% FOREACH itemtype IN itemtypes %] |
366 |
[% FOREACH itemtype IN itemtypes %] |
| 366 |
<tr> |
367 |
<tr> |
|
Lines 454-470
Item types administration
Link Here
|
| 454 |
[% Asset.js("js/admin-menu.js") | $raw %] |
455 |
[% Asset.js("js/admin-menu.js") | $raw %] |
| 455 |
[% INCLUDE 'greybox.inc' %] |
456 |
[% INCLUDE 'greybox.inc' %] |
| 456 |
[% INCLUDE 'datatables.inc' %] |
457 |
[% INCLUDE 'datatables.inc' %] |
|
|
458 |
[% INCLUDE 'columns_settings.inc' %] |
| 457 |
<script> |
459 |
<script> |
| 458 |
$(document).ready(function() { |
460 |
$(document).ready(function() { |
| 459 |
$('#icons').tabs(); |
461 |
$('#icons').tabs(); |
| 460 |
$("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, { |
462 |
var columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
| 461 |
"aoColumnDefs": [ |
463 |
[% IF Koha.Preference('noItemTypeImages') %] |
| 462 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
464 |
columns_settings.shift(); // Remove item type image column from configuration |
| 463 |
], |
465 |
[% END %] |
|
|
466 |
|
| 467 |
$(document).ready(function() { |
| 468 |
KohaTable("table_item_type", { |
| 469 |
"aoColumnDefs": [ |
| 470 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
| 471 |
], |
| 464 |
"aaSorting": [[ 2, "asc" ]], |
472 |
"aaSorting": [[ 2, "asc" ]], |
| 465 |
"iDisplayLength": 10, |
473 |
"iDisplayLength": 10, |
| 466 |
"sPaginationType": "full" |
474 |
"sPaginationType": "full" |
| 467 |
})); |
475 |
}, columns_settings); |
|
|
476 |
}); |
| 477 |
|
| 468 |
$( "#itemtypeentry" ).validate({ |
478 |
$( "#itemtypeentry" ).validate({ |
| 469 |
rules: { |
479 |
rules: { |
| 470 |
itemtype: { required: true }, |
480 |
itemtype: { required: true }, |
| 471 |
- |
|
|