Skip to content

Commit

Permalink
John conroy/remove internet pub citation HMP-272 (#3173)
Browse files Browse the repository at this point in the history
* Remove internet from publication citations

* Add changelog

---------

Co-authored-by: John Conroy <[email protected]>
  • Loading branch information
john-conroy and john-conroy authored Jul 14, 2023
1 parent ad306a5 commit 2957e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-remove-internet-pub-citation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove 'Internet' from publication citations.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function buildNLMCitation({ contributors, title, publication_date, publication_v
const author = contributors.length > 1 ? `${firstAuthorName}, et al` : firstAuthorName;

const year = publication_date.slice(0, 4);
return `${author}. ${title} [Internet]. ${publication_venue}; ${year}.`;
return `${author}. ${title}. ${publication_venue}; ${year}.`;
}

function PublicationCitation({ contributors = [], title, publication_date, publication_venue, doiURL }) {
Expand Down

0 comments on commit 2957e09

Please sign in to comment.