Lines 116-121
Item types administration
Link Here
|
116 |
</li> |
116 |
</li> |
117 |
[% END %] |
117 |
[% END %] |
118 |
<li> |
118 |
<li> |
|
|
119 |
<label for="parent_type">Parent item type: </label> |
120 |
[% IF !is_a_parent && parent_types %] |
121 |
<select name="parent_type" id="parent_type"> |
122 |
<option value="">None</option> |
123 |
[% FOREACH pt IN parent_types %] |
124 |
[% IF parent_type == pt.itemtype %] |
125 |
<option value="[% pt.itemtype | html %]" selected="selected">[% pt.description | html %]</option> |
126 |
[% ELSE %] |
127 |
<option value="[% pt.itemtype | html %]">[% pt.description | html %]</option> |
128 |
[% END %] |
129 |
[% END %] |
130 |
</select> |
131 |
[% ELSIF is_a_parent %] |
132 |
<input type="text" id="parent_type" value="[% parent_type | html %]" name="parent_type" size="10" maxlength="10" disabled/> |
133 |
<p>Is a parent to another type, cannot have a parent</p> |
134 |
[% ELSE %] |
135 |
<input type="text" id="parent_type" value="[% parent_type | html %]" name="parent_type" size="10" maxlength="10" disabled/> |
136 |
<p>No available parent types</p> |
137 |
[% END %] |
138 |
</li> |
139 |
<li> |
119 |
<label for="description" class="required">Description: </label> |
140 |
<label for="description" class="required">Description: </label> |
120 |
<input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span> |
141 |
<input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span> |
121 |
[% IF can_be_translated %] |
142 |
[% IF can_be_translated %] |
Lines 351-358
Item types administration
Link Here
|
351 |
<table id="table_item_type"> |
372 |
<table id="table_item_type"> |
352 |
<thead> |
373 |
<thead> |
353 |
[% UNLESS Koha.Preference('noItemTypeImages') %]<th class="noExport">Image</th>[% END %] |
374 |
[% UNLESS Koha.Preference('noItemTypeImages') %]<th class="noExport">Image</th>[% END %] |
354 |
<th>Code</th> |
|
|
355 |
<th>Description</th> |
375 |
<th>Description</th> |
|
|
376 |
<th>Code</th> |
377 |
<th>Parent code</th> |
356 |
<th>Search category</th> |
378 |
<th>Search category</th> |
357 |
<th>Not for loan</th> |
379 |
<th>Not for loan</th> |
358 |
<th>Hide in OPAC</th> |
380 |
<th>Hide in OPAC</th> |
Lines 374-397
Item types administration
Link Here
|
374 |
</td> |
396 |
</td> |
375 |
[% END %] |
397 |
[% END %] |
376 |
<td> |
398 |
<td> |
|
|
399 |
[% IF itemtype.parent_type %] |
400 |
[% IF itemtype.parent.translated_descriptions.size %] |
401 |
[% itemtype.parent.description | html %] (default)<br/> |
402 |
[% ELSE %] |
403 |
[% itemtype.parent.description | html %] |
404 |
[% END %] |
405 |
</br> |
406 |
[% IF itemtype.translated_descriptions.size %] |
407 |
[% itemtype.description | html %] (default)<br/> |
408 |
[% FOR description IN itemtype.translated_descriptions %] |
409 |
[% IF description.translation == itemtype.translated_description %] |
410 |
-- <b>[% description.translation | html %]</b> |
411 |
[% ELSE %] |
412 |
-- [% description.translation | html %] ([% description.lang | html %]) |
413 |
[% END %] |
414 |
<br/> |
415 |
[% END %] |
416 |
[% ELSE %] |
417 |
-- [% itemtype.description | html %] |
418 |
[% END %] |
419 |
[% ELSE %] |
420 |
[% IF itemtype.translated_descriptions.size %] |
421 |
[% itemtype.description | html %] (default)<br/> |
422 |
[% FOR description IN itemtype.translated_descriptions %] |
423 |
[% IF description.translation == itemtype.translated_description %] |
424 |
<b>[% description.translation | html %]</b> |
425 |
[% ELSE %] |
426 |
[% description.translation | html %] ([% description.lang | html %]) |
427 |
[% END %] |
428 |
<br/> |
429 |
[% END %] |
430 |
[% ELSE %] |
431 |
[% itemtype.description | html %] |
432 |
[% END %] |
433 |
[% END %] |
434 |
</td> |
435 |
<td> |
377 |
<a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=[% itemtype.itemtype | uri %]"> |
436 |
<a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=[% itemtype.itemtype | uri %]"> |
378 |
[% itemtype.itemtype | html %] |
437 |
[% itemtype.itemtype | html %] |
379 |
</a> |
438 |
</a> |
380 |
</td> |
439 |
</td> |
381 |
<td> |
440 |
<td> |
382 |
[% IF itemtype.translated_descriptions.size %] |
441 |
[% itemtype.parent_type | html %] |
383 |
[% itemtype.description | html %] (default)<br/> |
|
|
384 |
[% FOR description IN itemtype.translated_descriptions %] |
385 |
[% IF description.translation == itemtype.translated_description %] |
386 |
<b>[% description.translation | html %]</b> |
387 |
[% ELSE %] |
388 |
[% description.translation | html %] ([% description.lang | html %]) |
389 |
[% END %] |
390 |
<br/> |
391 |
[% END %] |
392 |
[% ELSE %] |
393 |
[% itemtype.description | html %] |
394 |
[% END %] |
395 |
</td> |
442 |
</td> |
396 |
<td>[% itemtype.searchcategory | html %]</td> |
443 |
<td>[% itemtype.searchcategory | html %]</td> |
397 |
<td>[% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %]</td> |
444 |
<td>[% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %]</td> |
Lines 475-481
Item types administration
Link Here
|
475 |
"aoColumnDefs": [ |
522 |
"aoColumnDefs": [ |
476 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
523 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
477 |
], |
524 |
], |
478 |
"aaSorting": [[ 2, "asc" ]], |
525 |
"aaSorting": [[ 1, "asc" ]], |
479 |
"iDisplayLength": 10, |
526 |
"iDisplayLength": 10, |
480 |
"sPaginationType": "full" |
527 |
"sPaginationType": "full" |
481 |
}, columns_settings); |
528 |
}, columns_settings); |
482 |
- |
|
|