@@ -, +, @@
---
.../prog/en/modules/catalogue/detail.tt | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -386,7 +386,25 @@
[% END %]
[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %] |
- [% Branches.GetName(item.homebranch) | html %][% item.location | html %] |
+
+ [% Branches.GetName(item.homebranch) | html %]
+
+ [%# 1 - If permanent location is defined %]
+ [%# a - display the description if available, display the code if not %]
+ [%# b - display the current location in parens %]
+ [%# 2 - If permanent location is not defined, but location is defined %]
+ [%# a - display the current location description if available, display the code if not %]
+ [%# 3 - If neither are defined, show nothing %]
+ [% IF item.permanent_location %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %]
+ [% IF item.location AND item.location != item.permanent_location %]
+ ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %])
+ [% END %]
+ [% ELSIF item.location %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %]
+ [% END %]
+
+ |
[% IF ( itemdata_ccode ) %][% item.ccode | html %] | [% END %]
[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %] |
--
|