@@ -, +, @@ --- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 8 ++++---- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -269,7 +269,7 @@ [% END %] [% IF ( MARCNOTES || notes ) %]
  • Descriptions ([% ( MARCNOTES.size || 1 ) | html %])
  • [% END %] -[% IF ( ComponentParts ) %]
  • Components ([% ( ComponentParts.size ) %])
  • [% END %] +[% IF ComponentParts && ComponentParts.size %]
  • Components ([% ComponentParts.size | html %])
  • [% END %] [% IF ( subscriptionsnumber ) %]
  • Subscriptions
  • [% END %] [% IF Koha.Preference('AcquisitionDetails') %]
  • Acquisition details
  • [% END %] [% IF suggestions.count %]
  • Suggestion details
  • [% END %] @@ -675,7 +675,7 @@ Note that permanent location is a code, and location may be an authval. [% END %] -[% IF ComponentParts.size %] +[% IF ComponentParts && ComponentParts.size %]
    @@ -688,7 +688,7 @@ Note that permanent location is a code, and location may be an authval. [% END %]
    [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%] -

    Only [% ComponentParts.size %] results are shown: show all component parts

    +

    Only [% ComponentParts.size | html %] results are shown: show all component parts

    [% END %]
    @@ -1264,7 +1264,7 @@ Note that permanent location is a code, and location may be an authval. [% IF count == 0 %] [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %] $('#bibliodetails').tabs("option", "active", $('#media_tab').index() ); - [% ELSIF ComponentParts %] + [% ELSIF ComponentParts && ComponentParts.size %] $('#bibliodetails').tabs("option", "active", $('#components_tab').index() ); [% END %] [% END %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -402,13 +402,13 @@ [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
  • Title notes ( [% title_notes_count | html %] )
  • [% END %] - [% IF ( ComponentParts ) %] + [% IF ComponentParts && ComponentParts.size %] [% IF defaulttab == 'components' %]
  • [% ELSE %]
  • [% END %] - Components ([% ( ComponentParts.size ) %]) + Components ([% ComponentParts.size | html %])
  • [% END %] [% IF ( SYNDETICS_TOC ) %] @@ -593,7 +593,7 @@
    [% END # / IF MARCNOTES || notes %] - [% IF ComponentParts.size %] + [% IF ComponentParts && ComponentParts.size %]
    @@ -606,7 +606,7 @@ [% END %]
    [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%] -

    Only [% ComponentParts.size %] results are shown: show all component parts

    +

    Only [% ComponentParts.size | html %] results are shown: show all component parts

    [% END %]
    --