[% SWITCH m.code %]
[% CASE 'error_on_update' %]
An error occurred when updating this item type. Perhaps the value already exists.
[% CASE 'error_on_insert' %]
An error occurred when inserting this item type. Perhaps the value already exists.
[% CASE 'error_on_delete' %]
An error occurred when deleting this item type. Check the logs.
[% CASE 'success_on_update' %]
Item type updated successfully.
[% CASE 'success_on_insert' %]
Item type inserted successfully.
[% CASE 'success_on_delete' %]
Item type deleted successfully.
[% CASE 'already_exists' %]
This item type already exists.
[% CASE 'cannot_be_deleted' %]
Cannot delete this item type.
[% END %]
[% IF op == 'add_form' %]
[% IF itemtype %]
This record is in use. Deletion is not possible.
[% CASE %] [% m.code | html %] [% END %]Modify item type
[% ELSE %]Add item type
[% END %] [% END %] [% IF op == 'delete_confirm' %]Delete item type '[% itemtype.itemtype | html %]'?
Item type | [% itemtype.itemtype | html %] |
---|---|
Description | [% itemtype.translated_description | html %] |
Image | [% SET image_location = itemtype.image_location('intranet') %] [% IF image_location %][% END %] |
Rental charge | [% itemtype.rentalcharge | $Price %] |
Item types administration
[% IF itemtypes %]Image | [% END %]Description | Code | Parent code | Search category | Not for loan | Hide in OPAC | Rental charge | Daily rental charge | Hourly rental charge | Default replacement cost | Processing fee (when lost) | Checkin message | Library limitations | Actions | [% FOREACH itemtype IN itemtypes %]
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[% SET image_location = itemtype.image_location('intranet') %] [% IF image_location %][% ELSE %] [% END %] | [% END %]
[% IF itemtype.parent_type %]
[% IF itemtype.parent.translated_descriptions.size %]
[% itemtype.parent.description | html %] (default) [% ELSE %] [% itemtype.parent.description | html %] [% END %] [% IF itemtype.translated_descriptions.size %] [% itemtype.description | html %] (default) [% FOR description IN itemtype.translated_descriptions %] [% IF description.translation == itemtype.translated_description %] -- [% description.translation | html %] [% ELSE %] -- [% description.translation | html %] ([% description.lang | html %]) [% END %] [% END %] [% ELSE %] -- [% itemtype.description | html %] [% END %] [% ELSE %] [% IF itemtype.translated_descriptions.size %] [% itemtype.description | html %] (default) [% FOR description IN itemtype.translated_descriptions %] [% IF description.translation == itemtype.translated_description %] [% description.translation | html %] [% ELSE %] [% description.translation | html %] ([% description.lang | html %]) [% END %] [% END %] [% ELSE %] [% itemtype.description | html %] [% END %] [% END %] |
[% itemtype.itemtype | html %] | [% itemtype.parent_type | html %] | [% AuthorisedValues.GetByCode( 'ITEMTYPECAT', itemtype.searchcategory ) | html %] | [% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %] | [% IF ( itemtype.hideinopac ) %]Yes[% ELSE %] [% END %] | [% UNLESS ( itemtype.notforloan ) %] [% itemtype.rentalcharge | $Price %] [% END %] | [% UNLESS ( itemtype.notforloan ) %] [% itemtype.rentalcharge_daily | $Price %] [% END %] | [% UNLESS ( itemtype.notforloan ) %] [% itemtype.rentalcharge_hourly | $Price %] [% END %] | [% itemtype.defaultreplacecost | $Price %] | [% itemtype.processfee | $Price %] | [% itemtype.checkinmsg | html_line_break | $raw %] | [% IF itemtype.library_limits %] [% libraries_str = "" %] [% FOREACH library IN itemtype.library_limits %] [%- IF loop.first -%] [% libraries_str = library.branchname _ " (" _ library.branchcode _ ")" %] [% ELSE %] [% libraries_str = libraries_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %] [% END %] [% END %] [% IF itemtype.library_limits.count > 1 %] [% itemtype.library_limits.count | html %] library limitations [% ELSE %] [% itemtype.library_limits.count | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] | Edit Delete |