[%- BLOCK CustomBrowseItemText %] [% IF item.itemformat == 'multiline' %][% item.itemname |html_line_break %][% ELSE %][% IF truncateAt %][% item.itemname |html |truncate(truncateAt)%][% ELSE %][% item.itemname |html %][% END %][% END %] [%- END %] [%- BLOCK CustomBrowseContextItemText %] [% IF item.itemvalue %][% IF truncateAt %][% extraTruncate=item.itemname.length+1 %][% truncateAt=truncateAt-extraTruncate %][% END %][% item.itemname |html %][% "COLON" |string %] [% IF item.itemformat == 'multiline' %][% item.itemvalue |html_line_break %][% ELSE %][% IF truncateAt %][% item.itemvalue |html|truncate(truncateAt) %][% ELSE %][% item.itemvalue |html %][% END %][% END %][% ELSE %][% IF item.itemformat == 'multiline' %][% item.itemname |html_line_break%][% ELSE %][% IF truncateAt %][% item.itemname |html|truncate(truncateAt) %][% ELSE %][% item.itemname |html %][% END %][% END %][% END %] [%- END %] [% BLOCK songinfoItemHRef -%] href="[% webroot %]plugins/CustomBrowse/custombrowse_contextlist.html?noitems=1&contextid=[% item.itemobj.id %]&contexttype=track&contextname=[% item.itemobj.title | uri %]&player=[% playerURI %]" [%- END %] [% BLOCK albumItemHRef -%] href="[% webroot %]plugins/CustomBrowse/custombrowse_contextlist.html?contextid=[% item.itemobj.album.id %]&contexttype=album&contextname=[% item.itemobj.album.title | uri %]&player=[% playerURI %]" [%- END %] [% BLOCK artistsAsHTML.html %] [% UNLESS noby %][% "BY" | string %] [% END %] [%- FILTER null %] [% contributorsHTML = [] %] [% FOREACH contributorTuple IN itemobj.artistsWithAttributes %] [% contributor = contributorTuple.artist %] [% attrs = contributorTuple.attributes | html %] [% target = notarget ? '' : 'target="browser"' %] [% contrib = contributor.name | html %] [% art = artwork ? "&artwork=$artwork" : '' %] [% contributorHTMLFrag = "$contrib" %] [% contributorsHTML.push(contributorHTMLFrag) %] [% END %] [% END -%] [% contributorsHTML.join(', ') %] [%- END %]