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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +16 lines)
Lines 266-272 Link Here
266
                    <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
266
                    <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
267
                    <td class="homebranch">
267
                    <td class="homebranch">
268
                        [% Branches.GetName(item.homebranch) | html %]
268
                        [% Branches.GetName(item.homebranch) | html %]
269
                        <span class="shelvingloc">[% item.location | html %]</span>
269
                        <span class="shelvingloc">
270
                            [%# 1 - If permanent location is defined %]
271
                            [%#   a - display the description if available, display the code if not %]
272
                            [%#   b - display the current location in parens %]
273
                            [%# 2 - If permanent location is not defined, but location is defined %]
274
                            [%#   a - display the current location description if available, display the code if not %]
275
                            [%# 3 - If neither are defined, show nothing %]
276
                            [% IF item.permanent_location %]
277
                                [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %]
278
                                [% IF item.location AND item.location != item.permanent_location %]
279
                                    ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %])
280
                                [% END %]
281
                            [% ELSIF item.location %]
282
                                [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %]
283
                            [% END %]
284
                        </span>
270
                    </td>
285
                    </td>
271
                    [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
286
                    [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
272
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
287
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
273
- 

Return to bug 18355