View | Details | Raw Unified | Return to bug 15306
Collapse All | Expand All

(-)a/admin/itemtypes.pl (+2 lines)
Lines 60-69 if ( $op eq 'add_form' ) { Link Here
60
    my $itemtype = Koha::ItemTypes->find($itemtype_code);
60
    my $itemtype = Koha::ItemTypes->find($itemtype_code);
61
    my $imagesets = C4::Koha::getImageSets( checked => ( $itemtype ? $itemtype->imageurl : undef ) );
61
    my $imagesets = C4::Koha::getImageSets( checked => ( $itemtype ? $itemtype->imageurl : undef ) );
62
    my $searchcategory = GetAuthorisedValues("ITEMTYPECAT", ( $itemtype ? $itemtype->searchcategory : '' ) );
62
    my $searchcategory = GetAuthorisedValues("ITEMTYPECAT", ( $itemtype ? $itemtype->searchcategory : '' ) );
63
    my $translated_languages = C4::Languages::getTranslatedLanguages( undef , C4::Context->preference('template') );
63
    $template->param(
64
    $template->param(
64
        itemtype  => $itemtype,
65
        itemtype  => $itemtype,
65
        imagesets => $imagesets,
66
        imagesets => $imagesets,
66
        searchcategory => $searchcategory,
67
        searchcategory => $searchcategory,
68
        can_be_translated => ( scalar(@$translated_languages) > 1 ? 1 : 0 ),
67
    );
69
    );
68
} elsif ( $op eq 'add_validate' ) {
70
} elsif ( $op eq 'add_validate' ) {
69
    my $is_a_modif   = $input->param('is_a_modif');
71
    my $is_a_modif   = $input->param('is_a_modif');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-2 / +3 lines)
Lines 140-146 Item types administration Link Here
140
                <li>
140
                <li>
141
                    <label for="description" class="required">Description: </label>
141
                    <label for="description" class="required">Description: </label>
142
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description |html %]" required="required" /> <span class="required">Required</span>
142
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description |html %]" required="required" /> <span class="required">Required</span>
143
                    <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype %]" title="Translate item type [% itemtype.itemtype %]" rel="gb_page_center[600,500]"><i class="icon-edit"></i> Translate into other languages</a>
143
                    [% IF can_be_translated %]
144
                        <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype %]" title="Translate item type [% itemtype.itemtype %]" rel="gb_page_center[600,500]"><i class="icon-edit"></i> Translate into other languages</a>
145
                    [% END %]
144
                </li>
146
                </li>
145
                <li>
147
                <li>
146
                    <span class="label">Search category</span>
148
                    <span class="label">Search category</span>
147
- 

Return to bug 15306