From 08630cc4e36b3575478c010b8d31e437f8bc4d12 Mon Sep 17 00:00:00 2001 From: An <42045942+atn38@users.noreply.github.com> Date: Fri, 14 May 2021 09:09:06 -0500 Subject: [PATCH] add aria-label attribute to links that open in new tab --- public/pasta.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/pasta.js b/public/pasta.js index 9579fb5..7a60602 100644 --- a/public/pasta.js +++ b/public/pasta.js @@ -41,7 +41,7 @@ function buildHtml(citations) { var date = (citation["pub_year"]) ? " Published " + citation["pub_year"] + "" : ""; // default ESIP formatting has trailing period after DOI var link = (citation["doi"]) ? citation["doi"].slice(0, -1) : "https://portal.edirepository.org/nis/mapbrowse?packageid=" + citation["pid"]; - var title = '' + citation["title"] + ''; + var title = '' + citation["title"] + ''; var row = '

' + title + '
' + authors + date + '

'; @@ -131,7 +131,7 @@ function buildCitationsFromPasta(pastaDocs) { link = ("https://portal.edirepository.org/nis/mapbrowse?packageid=" + doc.getElementsByTagName("packageid")[0].childNodes[0].nodeValue); } - var title = '' + + var title = '' + doc.getElementsByTagName("title")[0].childNodes[0].nodeValue.trim() + ''; var row = '

' + title + '
' + names + date + @@ -539,4 +539,4 @@ window.onload = function () { makeAutocomplete("creator", PASTA_LOOKUP["author"]); makeAutocomplete("taxon", PASTA_LOOKUP["taxonomic"]); } -}; \ No newline at end of file +};