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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +2 lines)
Lines 420-429 Link Here
420
                        [%# If permanent location is defined, show description or code and             %]
420
                        [%# If permanent location is defined, show description or code and             %]
421
                        [%# display current location in parentheses. If not, display current location. %]
421
                        [%# display current location in parentheses. If not, display current location. %]
422
                        [%# Note that permanent location is a code, and location may be an authval.    %]
422
                        [%# Note that permanent location is a code, and location may be an authval.    %]
423
                                [% IF item.permanent_location %]
423
                            [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %]
424
                            [% IF item.permanent_location %]
424
                                [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
425
                                [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
425
                                [% permloc_authval | html %]
426
                                [% permloc_authval | html %]
426
                                [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %]
427
                                [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %]
427
                                [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %]
428
                                    ([% item_location | html %])
428
                                    ([% item_location | html %])
429
                                [% END %]
429
                                [% END %]
430
- 

Return to bug 34086