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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-1 / +1 lines)
Lines 65-71 Link Here
65
        [% ELSE %]
65
        [% ELSE %]
66
            <option value="[% itemtype.itemtype | html %]">
66
            <option value="[% itemtype.itemtype | html %]">
67
        [% END %]
67
        [% END %]
68
            [% ItemTypes.t(itemtype.description) | html %]
68
            [% ItemTypes.t(itemtype.translation_key) | html %]
69
        </option>
69
        </option>
70
    [% END %]
70
    [% END %]
71
[% END %]
71
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-1 / +1 lines)
Lines 441-447 Item types &rsaquo; Administration &rsaquo; Koha Link Here
441
                <th scope="row">Item type</th>
441
                <th scope="row">Item type</th>
442
                <td>[% itemtype.itemtype | html %]</td>
442
                <td>[% itemtype.itemtype | html %]</td>
443
            </tr>
443
            </tr>
444
            <tr><th scope="row">Description</th><td>[% ItemTypes.t(itemtype.description) | html %]</td></tr>
444
            <tr><th scope="row">Description</th><td>[% ItemTypes.t(itemtype.translation_key) | html %]</td></tr>
445
            [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
445
            [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
446
                <tr>
446
                <tr>
447
                    <th scope="row">Image</th>
447
                    <th scope="row">Image</th>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-6 / +6 lines)
Lines 398-411 Link Here
398
                                [% NEXT IF itemtypeloo.parent_type %]
398
                                [% NEXT IF itemtypeloo.parent_type %]
399
                                [% SET children = itemtypeloo.children %]
399
                                [% SET children = itemtypeloo.children %]
400
                                [% IF children.count %]
400
                                [% IF children.count %]
401
                                    <optgroup label="[% ItemTypes.t(itemtypeloo.description) | html %]">
401
                                    <optgroup label="[% ItemTypes.t(itemtypeloo.translation_key) | html %]">
402
                                        <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.description) | html %] (All)</option>
402
                                        <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.translation_key) | html %] (All)</option>
403
                                        [% FOREACH child IN children %]
403
                                        [% FOREACH child IN children %]
404
                                            <option value="[% child.itemtype | html %]">[% ItemTypes.t(child.description) | html %]</option>
404
                                            <option value="[% child.itemtype | html %]">[% ItemTypes.t(child.translation_key) | html %]</option>
405
                                        [% END %]
405
                                        [% END %]
406
                                    </optgroup>
406
                                    </optgroup>
407
                                [% ELSE %]
407
                                [% ELSE %]
408
                                    <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.description) | html %]</option>
408
                                    <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.translation_key) | html %]</option>
409
                                [% END %]
409
                                [% END %]
410
                            [% END %]
410
                            [% END %]
411
                        </select>
411
                        </select>
Lines 1094-1100 Link Here
1094
                    [% IF holdallowed || hold_fulfillment_policy || returnbranch %]
1094
                    [% IF holdallowed || hold_fulfillment_policy || returnbranch %]
1095
                        <tr>
1095
                        <tr>
1096
                            <td>
1096
                            <td>
1097
                                [% ItemTypes.t(i.description) | html %]
1097
                                [% ItemTypes.t(i.translation_key) | html %]
1098
                            </td>
1098
                            </td>
1099
                            <td>
1099
                            <td>
1100
                                [% IF holdallowed == 'from_any_library' %]
1100
                                [% IF holdallowed == 'from_any_library' %]
Lines 1139-1145 Link Here
1139
                    <td>
1139
                    <td>
1140
                        <select name="itemtype">
1140
                        <select name="itemtype">
1141
                        [% FOREACH itemtypeloo IN itemtypeloop %]
1141
                        [% FOREACH itemtypeloo IN itemtypeloop %]
1142
                            <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.description) | html %]</option>
1142
                            <option value="[% itemtypeloo.itemtype | html %]">[% ItemTypes.t(itemtypeloo.translation_key) | html %]</option>
1143
                        [% END %]
1143
                        [% END %]
1144
                        </select>
1144
                        </select>
1145
                    </td>
1145
                    </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-1 / +1 lines)
Lines 199-205 Link Here
199
            [% END %]
199
            [% END %]
200
                &nbsp;
200
                &nbsp;
201
        [% END %]
201
        [% END %]
202
        [% ItemTypes.t(itemtypeloo.description) | html %]
202
        [% ItemTypes.t(itemtypeloo.translation_key) | html %]
203
            </label>
203
            </label>
204
        </td>
204
        </td>
205
        [% IF ( loop.last ) %]
205
        [% IF ( loop.last ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +2 lines)
Lines 371-379 Link Here
371
                    [% IF ( item_level_itypes ) %]
371
                    [% IF ( item_level_itypes ) %]
372
                        <td class="itype">
372
                        <td class="itype">
373
                            [% IF !noItemTypeImages && item.imageurl %]
373
                            [% IF !noItemTypeImages && item.imageurl %]
374
                                <img src="[% item.imageurl | html %]" alt="[% ItemTypes.t(item.description) | html %]" title="[% ItemTypes.t(item.description) | html %]" />
374
                                <img src="[% item.imageurl | html %]" alt="[% ItemTypes.t(item.translation_key) | html %]" title="[% ItemTypes.t(item.translation_key) | html %]" />
375
                            [% END %]
375
                            [% END %]
376
                            <span class="itypedesc">[% ItemTypes.t(item.description) | html %]</span>
376
                            <span class="itypedesc">[% ItemTypes.t(item.translation_key) | html %]</span>
377
                        </td>
377
                        </td>
378
                    [% END %]
378
                    [% END %]
379
                    <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
379
                    <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt (-2 / +2 lines)
Lines 80-88 Link Here
80
                            <option value=""></option>
80
                            <option value=""></option>
81
                            [% FOREACH it IN itypes %]
81
                            [% FOREACH it IN itypes %]
82
                                [% IF it.itemtype == course_item.itype %]
82
                                [% IF it.itemtype == course_item.itype %]
83
                                    <option value="[% it.itemtype | html %]" selected="selected">[% ItemTypes.t(it.description) | html %]</option>
83
                                    <option value="[% it.itemtype | html %]" selected="selected">[% ItemTypes.t(it.translation_key) | html %]</option>
84
                                [% ELSE %]
84
                                [% ELSE %]
85
                                    <option value="[% it.itemtype | html %]">[% ItemTypes.t(it.description) | html %]</option>
85
                                    <option value="[% it.itemtype | html %]">[% ItemTypes.t(it.translation_key) | html %]</option>
86
                                [% END %]
86
                                [% END %]
87
                            [% END %]
87
                            [% END %]
88
                        </select>
88
                        </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt (-1 / +1 lines)
Lines 56-62 Link Here
56
                                <option value=""></option>
56
                                <option value=""></option>
57
57
58
                                [% FOREACH it IN ItemTypes.Get() %]
58
                                [% FOREACH it IN ItemTypes.Get() %]
59
                                    <option value="[% it.itemtype | html %]">[% ItemTypes.t(it.description) | html %]</option>
59
                                    <option value="[% it.itemtype | html %]">[% ItemTypes.t(it.translation_key) | html %]</option>
60
                                [% END %]
60
                                [% END %]
61
                            </select>
61
                            </select>
62
                        </li>
62
                        </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt (-1 / +1 lines)
Lines 219-225 Link Here
219
                    <select name="Filter" id="itemtypes">
219
                    <select name="Filter" id="itemtypes">
220
                        <option value="">All item types</option>
220
                        <option value="">All item types</option>
221
                        [% FOREACH itemtype IN itemtypes %]
221
                        [% FOREACH itemtype IN itemtypes %]
222
                        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
222
                        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
223
                        [% END %]
223
                        [% END %]
224
                    </select>
224
                    </select>
225
                </td>
225
                </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt (-1 / +1 lines)
Lines 144-150 Link Here
144
			<li> 
144
			<li> 
145
                <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
145
                <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
146
    [% FOREACH itemtype IN itemtypes %]
146
    [% FOREACH itemtype IN itemtypes %]
147
        <option value="[% itemtype.itemtype | html %]" >[% ItemTypes.t(itemtype.description) | html %] </option>
147
        <option value="[% itemtype.itemtype | html %]" >[% ItemTypes.t(itemtype.translation_key) | html %] </option>
148
     [% END %] 
148
     [% END %] 
149
    </select>
149
    </select>
150
			</li>
150
			</li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt (-1 / +1 lines)
Lines 121-127 Link Here
121
      <li> 
121
      <li> 
122
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
122
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
123
    [% FOREACH itemtype IN itemtypes %]
123
    [% FOREACH itemtype IN itemtypes %]
124
        <option value="[% itemtype.itemtype | html %]" >[% ItemTypes.t(itemtype.description) | html %] </option>
124
        <option value="[% itemtype.itemtype | html %]" >[% ItemTypes.t(itemtype.translation_key) | html %] </option>
125
     [% END %] 
125
     [% END %] 
126
    </select>
126
    </select>
127
      </li>
127
      </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt (-1 / +1 lines)
Lines 113-119 Link Here
113
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
113
        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
114
        <option value="">Any item type</option>
114
        <option value="">Any item type</option>
115
    [% FOREACH itemtype IN itemtypes %]
115
    [% FOREACH itemtype IN itemtypes %]
116
        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
116
        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
117
     [% END %] 
117
     [% END %] 
118
    </select>
118
    </select>
119
    </li>
119
    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-1 / +1 lines)
Lines 135-141 Link Here
135
				<td><select name="Filter" id="[% item_itype | html %]">
135
				<td><select name="Filter" id="[% item_itype | html %]">
136
					<option value=""> </option>
136
					<option value=""> </option>
137
                    [% FOREACH itemtype IN itemtypes %]
137
                    [% FOREACH itemtype IN itemtypes %]
138
                        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
138
                        <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
139
                    [% END %]
139
                    [% END %]
140
					</select>
140
					</select>
141
				</td>
141
				</td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt (-1 / +1 lines)
Lines 171-177 Link Here
171
                    <select name="Filter" id="itemtypes">
171
                    <select name="Filter" id="itemtypes">
172
                        <option value=""></option>
172
                        <option value=""></option>
173
                        [% FOREACH itemtype IN itemtypes %]
173
                        [% FOREACH itemtype IN itemtypes %]
174
                        <option value="[%- itemtype.itemtype | html -%]">[%- ItemTypes.t(itemtype.description) | html -%]</option>
174
                        <option value="[%- itemtype.itemtype | html -%]">[%- ItemTypes.t(itemtype.translation_key) | html -%]</option>
175
                        [% END %]
175
                        [% END %]
176
                    </select>
176
                    </select>
177
                </td>
177
                </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-1 / +1 lines)
Lines 197-203 Link Here
197
           <td><select name="Filter" id="itemtype">
197
           <td><select name="Filter" id="itemtype">
198
               <option value=""> </option>
198
               <option value=""> </option>
199
               [% FOREACH itemtype IN itemtypes %]
199
               [% FOREACH itemtype IN itemtypes %]
200
                 <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
200
                 <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
201
               [% END %]
201
               [% END %]
202
               </select>
202
               </select>
203
             </td> 
203
             </td> 
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt (-1 / +1 lines)
Lines 155-161 Link Here
155
    <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
155
    <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter">
156
                <option value="">All</option>
156
                <option value="">All</option>
157
                [% FOREACH itemtype IN itemtypes %]
157
                [% FOREACH itemtype IN itemtypes %]
158
                    <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
158
                    <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
159
                [% END %]
159
                [% END %]
160
            </select></li>
160
            </select></li>
161
161
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-1 / +1 lines)
Lines 199-205 Link Here
199
           <td><select name="filter_items.itype" id="itype">
199
           <td><select name="filter_items.itype" id="itype">
200
               <option value=""> </option>
200
               <option value=""> </option>
201
               [% FOREACH itemtype IN itemtypes %]
201
               [% FOREACH itemtype IN itemtypes %]
202
                 <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
202
                 <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
203
               [% END %]
203
               [% END %]
204
               </select>
204
               </select>
205
             </td> 
205
             </td> 
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt (-1 / +1 lines)
Lines 119-125 Link Here
119
                                    <select id="itemtype" name="itemtype">
119
                                    <select id="itemtype" name="itemtype">
120
                                        <option value="">No change</option>
120
                                        <option value="">No change</option>
121
                                        [% FOREACH itemtype IN ItemTypes.Get() %]
121
                                        [% FOREACH itemtype IN ItemTypes.Get() %]
122
                                            <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
122
                                            <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
123
                                        [% END %]
123
                                        [% END %]
124
                                    </select>
124
                                    </select>
125
                                </li>
125
                                </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-bib-search.tt (-1 / +1 lines)
Lines 26-32 Link Here
26
                <option value="">All</option>
26
                <option value="">All</option>
27
                [%- FOREACH itemtypeloo IN itemtypeloop %]
27
                [%- FOREACH itemtypeloo IN itemtypeloop %]
28
                <option value="[% itemtypeloo.code | html %]">
28
                <option value="[% itemtypeloo.code | html %]">
29
                    [% ItemTypes.t(itemtypeloo.description) | html %]
29
                    [% ItemTypes.t(itemtypeloo.translation_key) | html %]
30
                </option>
30
                </option>
31
                [%- END %]
31
                [%- END %]
32
            </select>
32
            </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-1 / +1 lines)
Lines 81-87 Link Here
81
            <select name="itemtype" id="itemtype">
81
            <select name="itemtype" id="itemtype">
82
                <option value="">-- All --</option>
82
                <option value="">-- All --</option>
83
                [% FOREACH itemtype IN itemtypes %]
83
                [% FOREACH itemtype IN itemtypes %]
84
                    <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.description) | html %]</option>
84
                    <option value="[% itemtype.itemtype | html %]">[% ItemTypes.t(itemtype.translation_key) | html %]</option>
85
                [% END %]
85
                [% END %]
86
            </select>
86
            </select>
87
        </li>
87
        </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 / +1 lines)
Lines 260-266 Link Here
260
                </td>
260
                </td>
261
            [% END %]
261
            [% END %]
262
			[% UNLESS ( item_level_itypes ) %]<td>
262
			[% UNLESS ( item_level_itypes ) %]<td>
263
                [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% ItemTypes.t(itemsloo.description) | html %]" title="[% ItemTypes.t(itemsloo.description) | html %]" />[% END %][% ItemTypes.t(itemsloo.description) | html %]
263
                [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% ItemTypes.t(itemsloo.translation_key) | html %]" title="[% ItemTypes.t(itemsloo.translation_key) | html %]" />[% END %][% ItemTypes.t(itemsloo.translation_key) | html %]
264
			</td>[% END %]
264
			</td>[% END %]
265
			<td>
265
			<td>
266
                [% IF ( itemsloo.XSLTBloc ) %]
266
                [% IF ( itemsloo.XSLTBloc ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-topissues.inc (-1 / +1 lines)
Lines 38-44 Link Here
38
                                [% ELSE %]
38
                                [% ELSE %]
39
                                    <option value="[% itemtype.itemtype | html %]">
39
                                    <option value="[% itemtype.itemtype | html %]">
40
                                [% END %]
40
                                [% END %]
41
                                    [% ItemTypes.t(itemtype.description) | html %]
41
                                    [% ItemTypes.t(itemtype.translation_key) | html %]
42
                                </option>
42
                                </option>
43
                            [% END %]
43
                            [% END %]
44
                        </select>
44
                        </select>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-1 / +1 lines)
Lines 161-167 Link Here
161
                                                    [% END %]
161
                                                    [% END %]
162
                                                [% END %]
162
                                                [% END %]
163
                                                <span class="tdlabel">Item type:</span>
163
                                                <span class="tdlabel">Item type:</span>
164
                                                [% ItemTypes.t(issue.description) | html %]</td>
164
                                                [% ItemTypes.t(issue.translation_key) | html %]</td>
165
                                                <td>
165
                                                <td>
166
                                                <span class="tdlabel">Call number:</span>
166
                                                <span class="tdlabel">Call number:</span>
167
                                                [% issue.itemcallnumber | html %]
167
                                                [% issue.itemcallnumber | html %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +2 lines)
Lines 224-230 Link Here
224
                                                <li class="itype">
224
                                                <li class="itype">
225
                                                    <span class="label">Item type: </span>
225
                                                    <span class="label">Item type: </span>
226
                                                    [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl | html %]" alt="" />[% END %]
226
                                                    [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl | html %]" alt="" />[% END %]
227
                                                    [% ItemTypes.t(bibitemloo.description) | html %]
227
                                                    [% ItemTypes.t(bibitemloo.translation_key) | html %]
228
                                                </li>
228
                                                </li>
229
                                            [% END %]
229
                                            [% END %]
230
230
Lines 406-412 Link Here
406
                                                                            <img src="[% itemLoo.imageurl | html %]" alt="" />
406
                                                                            <img src="[% itemLoo.imageurl | html %]" alt="" />
407
                                                                        [% END %]
407
                                                                        [% END %]
408
                                                                    [% END %]
408
                                                                    [% END %]
409
                                                                    [% ItemTypes.t(itemLoo.description) | html %]
409
                                                                    [% ItemTypes.t(itemLoo.translation_key) | html %]
410
                                                                </td>
410
                                                                </td>
411
                                                            [% END %]
411
                                                            [% END %]
412
412
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-3 / +2 lines)
Lines 384-392 Link Here
384
                                                    [% UNLESS ( item_level_itypes ) %]
384
                                                    [% UNLESS ( item_level_itypes ) %]
385
                                                        <td>
385
                                                        <td>
386
                                                            [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
386
                                                            [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
387
                                                                <img src="[% itemsloo.imageurl | html %]" alt="[% ItemTypes.t(itemsloo.description) | html %]" title="[% ItemTypes.t(itemsloo.description) | html %]" />
387
                                                                <img src="[% itemsloo.imageurl | html %]" alt="[% ItemTypes.t(itemsloo.translation_key) | html %]" title="[% ItemTypes.t(itemsloo.translation_key) | html %]" />
388
                                                            [% END %]
388
                                                            [% END %]
389
                                                            [% ItemTypes.t(itemsloo.description) | html %]
389
                                                            [% ItemTypes.t(itemsloo.translation_key) | html %]
390
                                                        </td>
390
                                                        </td>
391
                                                    [% END %]
391
                                                    [% END %]
392
                                                    <td>
392
                                                    <td>
393
- 

Return to bug 24975