Lines 6-11
Link Here
|
6 |
[% USE Branches %] |
6 |
[% USE Branches %] |
7 |
[% USE TablesSettings %] |
7 |
[% USE TablesSettings %] |
8 |
[% USE AuthorisedValues %] |
8 |
[% USE AuthorisedValues %] |
|
|
9 |
[% USE ItemTypes %] |
9 |
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %] |
10 |
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %] |
10 |
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %] |
11 |
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %] |
11 |
[% IF Koha.Preference('AmazonAssocTag') %] |
12 |
[% IF Koha.Preference('AmazonAssocTag') %] |
Lines 167-180
Link Here
|
167 |
|
168 |
|
168 |
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %] |
169 |
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %] |
169 |
<span class="results_summary itemtype"><span class="label">Item type: </span> |
170 |
<span class="results_summary itemtype"><span class="label">Item type: </span> |
170 |
[% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] |
171 |
[% IF ( !Koha.Preference('OpacNoItemTypeImages') ) %] |
171 |
<img src="[% imageurl | html %]" alt="" /> |
172 |
[% SET image_url = itemtype.image_url %] |
172 |
[% END %] |
173 |
[% IF image_url %] |
173 |
[% IF ( description ) %] |
174 |
<img src="[% image_url | html %]" alt="" /> |
174 |
<span class="itypetext">[% description | html %]</span> |
175 |
[% END %] |
175 |
[% ELSE %] |
|
|
176 |
<span class="itypetext">[% itemtype | html %]</span> |
177 |
[% END %] |
176 |
[% END %] |
|
|
177 |
<span class="itypetext">[% ItemTypes.t(itemtype.translation_key) | html %]</span> |
178 |
</span> |
178 |
</span> |
179 |
[% END %] |
179 |
[% END %] |
180 |
|
180 |
|
Lines 1237-1248
Link Here
|
1237 |
|
1237 |
|
1238 |
[% IF ( item_level_itypes ) %] |
1238 |
[% IF ( item_level_itypes ) %] |
1239 |
<td class="itype"> |
1239 |
<td class="itype"> |
|
|
1240 |
[% SET itemtype_description = ItemTypes.t(ITEM_RESULT.itemtype.translation_key) %] |
1240 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
1241 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
1241 |
[% IF ( ITEM_RESULT.imageurl ) %] |
1242 |
[% SET image_url = ITEM_RESULT.itemtype.image_url %] |
1242 |
<img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" /> |
1243 |
[% IF image_url %] |
|
|
1244 |
<img src="[% imageurl | html %]" title="[% itemtype_description | html %]" alt="[% itemtype_description | html %]" /> |
1243 |
[% END %] |
1245 |
[% END %] |
1244 |
[% END %] |
1246 |
[% END %] |
1245 |
<span class="itypetext">[% ITEM_RESULT.description | html %]</span> |
1247 |
<span class="itypetext">[% itemtype_description | html %]</span> |
1246 |
</td> |
1248 |
</td> |
1247 |
[% END %] |
1249 |
[% END %] |
1248 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |
1250 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |