%
const originHTML = origin ? `${origin.replace(/\.$/, '')}. ` : '';
const pubHTML = year_of_publishing ? `` : '';
const dataID = pid ? ` data-id="${pid}"` : '';
let titleHTML = title ? `${title}. ` : '';
let journalHTML = journal ? `${journal}. ` : '';
let volumeHTML = volume ? `Vol. ${volume}. ` : '';
let pageHTML = page ? `pp. ${page}. ` : '';
let seriesIdHTML = seriesId || '';
if (seriesId) {
const idSep = pid ? ', version: ' : '.';
if (seriesId_url) {
seriesIdHTML = `${seriesId}${idSep}`;
} else {
seriesIdHTML = `${seriesId}${idSep}`;
}
}
let pidHTML = pid || source_id || '';
if (pid) {
if (pid_url) {
pidHTML = `${pid}.`;
} else {
pidHTML = `${pid}.`;
}
}
const idHTML = seriesIdHTML || pidHTML ? `${seriesIdHTML}${pidHTML}` : '';
%>
<%= originHTML + pubHTML + titleHTML + journalHTML + volumeHTML + pageHTML + idHTML %>
<%if(citationMetadata){%>
Cites Data:
<%}%>