@@ -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 %]
[% END %]
- [% IF ( ComponentParts ) %]
+ [% IF ComponentParts && ComponentParts.size %]
[% IF defaulttab == 'components' %]
[% END %]
[% IF ( SYNDETICS_TOC ) %]
@@ -593,7 +593,7 @@