diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 9cc3367330..ef570de7c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -158,14 +158,16 @@ [% FOREACH header IN item_header_loop %] [% SET attribute = header.attribute %] [% SET can_mod = item.nomod ? "nomod" : "canmod" %] - [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %] - [% IF header.attribute == 'datelastseen' %] + [% IF attribute AND date_fields.grep('^' _ attribute _ '$').size %] + [% IF attribute == 'datelastseen' %] [% item.$attribute | $KohaDates with_hours => 1 %] [% ELSE %] [% item.$attribute | $KohaDates %] [% END %] [% ELSIF ( item.$attribute && ( attribute == 'price' || attribute == 'replacementprice' ) ) %] [% item.$attribute | $Price %] + [% ELSIF item.$attribute && attribute == 'itemcallnumber' %] + [% item.$attribute | html %] [% ELSE %] [% item.$attribute | html %] [% END %]