<% const idSep = pid ? ', version: ' : '.'; const seriesIdHTML = seriesId ? `${seriesId}${idSep}` : ''; const pidHTML = pid ? `${pid}.` : ''; const idHTML = seriesIdHTML || pidHTML ? ` ${seriesIdHTML}${pidHTML}` : ''; %> (Archived data, <%= idHTML %>)